
/*
 * Languages for annotation Javascript
 */

/*
 * Fetch a localized string
 * This is a function so that it can be replaced with another source of strings if desired
 * (e.g. in a database).  The application uses short English-language strings as keys, so
 * that if the language source is lacking the key can be returned instead.
 */
function getLocalized( s )
{
	return LocalizedAnnotationStrings[ s ];
}

LocalizedAnnotationStrings = {

	
	'public annotation' : 'This annotation is public.',
	
	'private annotation' : 'This annotation is private.',
		
	'delete annotation button' : 'Delete this annotation.',
	
	'annotation link button' : 'Link to another document.',
	
	'annotation link label' : 'Select a document to link to.',
	
	'delete annotation link button' : 'Remove this link.',
	
	'annotation expand edit button' : 'Click to display margin note editor',
	
	'annotation collapse edit button' : 'Click to display margin note drop-down list',
	
	
	
	'action annotate button' : 'Annotate...',
	
	'action insert before button' : 'Insert before...',
	
	'action insert after button' : 'Insert after...',
	
	'action replace button' : 'Replace...',
	
	'action delete button' : 'Delete',
	
	
	
	'browser support of W3C range required for annotation creation' : 'Your browser does not support the W3C range standard, so you cannot create annotations.',
	
	'select text to annotate' : 'You must select some text to annotate.',
	
	'invalid selection' : 'Selection range is not valid.',
	
	'corrupt XML from service' : 'An attempt to retrieve annotations from the server returned corrupt XML data.',
	
	'note too long' : 'Annotations are limited to 500 character.',
	
	'quote too long' : 'The passage you have attempted to highlight is too long.  It may not exceed 1000 characters.',
	
	'zero length quote' : 'You must select some text to annotate.',
	
	'quote not found' : 'The highlighted passage could not be found',
	
	'create overlapping edits' : 'You may not create overlapping edits.',
	
	'blank quote and note' : 'You must enter some note text',
	
	
	
	'warn delete' : 'Delete this annotation?',
	
		
	
	'name' : 'Marginalia Plugin',
	
	'description' : 'This plugin adds the capability for readers to highlight and annotate passages in articles.',
	
	'descriptionDisabled' : 'This plugin adds the capability for readers to highlight and annotate passages in articles. <strong>Marginalia is not currently installed; please install it in {$marginaliaPath}.</strong>',
	

	
	'note note label' : '',
	
	'note insert label' : 'Insert:',
	
	'note replace label' : 'Replace:',
	
	'note delete label' : 'Delete',
	

	'lang' : 'en'
};

