Owen Leonard
374f59f3cd
This patch updates the TinyMCE editor to the latest version (5.0.16) and adds a translatable include file which will allow the TinyMCE interface to show the same translation as Koha. The configuration of the editor has been updated according to the new version's requirements, keeping all the tools available we had before and adding emoji support. To test, apply the patch and enable the UseWYSIWYGinSystemPreferences system preference. TESTING THE UPGRADED EDITOR - Go to Administration -> System preferences -> OPAC. - Multiple instances of the TinyMCE editor should appear on the page: opaccredits, OpacCustomSearch, OpacLoginInstructions, etc. - Test adding and editing content to one or more of these editors. Confirm that the various editor tools work correctly. - Verify that changing the contents of any editor (including via paste) enables the corresponding "Save all X preferences" button. - Test the news editor under Tools -> News. - Test the library "OPAC info" editor in libraries administration: Administration -> Libraries -> Edit library -> OPAC info. TESTING TRANSLATABILITY - Update a translation: > cd misc/translator > perl translate update fr-FR - Open the corresponding .po file for the staff client, e.g. misc/translator/po/fr-FR-staff-prog.po - Locate strings pulled from includes/str/tinymce_i18n.inc for translation, e.g.: #. SCRIPT #: intranet-tmpl/prog/en/includes/str/tinymce_i18n.inc:1 #, fuzzy msgid "File" msgstr "Fichier :" - Edit the "msgstr" string however you want (it's just for testing) and remove the "fuzzy" line. - Install the updated translation: > perl translate install fr-FR - Go to Administration -> System preferences -> OPAC. - In each instance of the TinyMCE editor, the first menu item should have as its label the translation "msgstr" string you edited. - Check that the "About" page shows updated information about the TinyMCE version, 5.0.16. Signed-off-by: Michal Denar <black23@gmail.com> Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
400 lines
No EOL
18 KiB
SourcePawn
400 lines
No EOL
18 KiB
SourcePawn
<script>
|
|
/* tinymce considers 'en' to be the default translation.
|
|
Translating this file will allow us to load the correct language
|
|
along with the template */
|
|
tinymce.addI18n('en', {
|
|
"Action": _("Action"),
|
|
"Activity": _("Activity"),
|
|
"Add to Dictionary": _("Add to Dictionary"),
|
|
"Address": _("Address"),
|
|
"Advanced": _("Advanced"),
|
|
"Align center": _("Align center"),
|
|
"Align left": _("Align left"),
|
|
"Align right": _("Align right"),
|
|
"Align": _("Align"),
|
|
"Alignment": _("Alignment"),
|
|
"alignment": _("alignment"),
|
|
"All": _("All"),
|
|
"Alternative source URL": _("Alternative source URL"),
|
|
"Alternative source": _("Alternative source"),
|
|
"Anchor": _("Anchor"),
|
|
"Anchor...": _("Anchor..."),
|
|
"Anchors": _("Anchors"),
|
|
"Animals and Nature": _("Animals and Nature"),
|
|
"Apply": _("Apply"),
|
|
"Arrows": _("Arrows"),
|
|
"austral sign": _("austral sign"),
|
|
"Author": _("Author"),
|
|
"B": _("B"),
|
|
"Back": _("Back"),
|
|
"Background color": _("Background color"),
|
|
"Black": _("Black"),
|
|
"Block": _("Block"),
|
|
"Blockquote": _("Blockquote"),
|
|
"Blocks": _("Blocks"),
|
|
"Blue": _("Blue"),
|
|
"Body": _("Body"),
|
|
"Bold": _("Bold"),
|
|
"Border color": _("Border color"),
|
|
"Border style": _("Border style"),
|
|
"Border width": _("Border width"),
|
|
"Border": _("Border"),
|
|
"Bottom": _("Bottom"),
|
|
"Brightness": _("Brightness"),
|
|
"Browse for an image": _("Browse for an image"),
|
|
"Bullet list": _("Bullet list"),
|
|
"Cancel": _("Cancel"),
|
|
"Caption": _("Caption"),
|
|
"cedi sign": _("cedi sign"),
|
|
"Cell padding": _("Cell padding"),
|
|
"Cell properties": _("Cell properties"),
|
|
"Cell spacing": _("Cell spacing"),
|
|
"Cell type": _("Cell type"),
|
|
"Cell": _("Cell"),
|
|
"Center": _("Center"),
|
|
"Characters (no spaces)": _("Characters (no spaces)"),
|
|
"Characters": _("Characters"),
|
|
"Circle": _("Circle"),
|
|
"Class": _("Class"),
|
|
"Clear formatting": _("Clear formatting"),
|
|
"Close": _("Close"),
|
|
"Code sample": _("Code sample"),
|
|
"Code sample...": _("Code sample..."),
|
|
"Code": _("Code"),
|
|
"colon sign": _("colon sign"),
|
|
"Color levels": _("Color levels"),
|
|
"Color Picker": _("Color Picker"),
|
|
"Color swatch": _("Color swatch"),
|
|
"Color": _("Color"),
|
|
"Cols": _("Cols"),
|
|
"Column group": _("Column group"),
|
|
"Column": _("Column"),
|
|
"comments": _("comments"),
|
|
"Constrain proportions": _("Constrain proportions"),
|
|
"Contrast": _("Contrast"),
|
|
"Copy row": _("Copy row"),
|
|
"Copy": _("Copy"),
|
|
"Could not find the specified string.": _("Could not find the specified string."),
|
|
"Could not load emoticons": _("Could not load emoticons"),
|
|
"Crop": _("Crop"),
|
|
"cruzeiro sign": _("cruzeiro sign"),
|
|
"currency sign": _("currency sign"),
|
|
"Currency": _("Currency"),
|
|
"Current window": _("Current window"),
|
|
"Custom color": _("Custom color"),
|
|
"Custom...": _("Custom..."),
|
|
"Cut row": _("Cut row"),
|
|
"Cut": _("Cut"),
|
|
"Dark Gray": _("Dark Gray"),
|
|
"Dark Green": _("Dark Green"),
|
|
"Dark Orange": _("Dark Orange"),
|
|
"Dark Red": _("Dark Red"),
|
|
"Dark Turquoise": _("Dark Turquoise"),
|
|
"Dark Yellow": _("Dark Yellow"),
|
|
"Date\/time": _("Date\/time"),
|
|
"Decrease indent": _("Decrease indent"),
|
|
"Default": _("Default"),
|
|
"Delete column": _("Delete column"),
|
|
"Delete row": _("Delete row"),
|
|
"Delete table": _("Delete table"),
|
|
"Description": _("Description"),
|
|
"Dimensions": _("Dimensions"),
|
|
"Disc": _("Disc"),
|
|
"Div": _("Div"),
|
|
"Document properties": _("Document properties"),
|
|
"dollar sign": _("dollar sign"),
|
|
"dong sign": _("dong sign"),
|
|
"drachma sign": _("drachma sign"),
|
|
"Drop an image here": _("Drop an image here"),
|
|
"Edit image": _("Edit image"),
|
|
"Edit": _("Edit"),
|
|
"Embed": _("Embed"),
|
|
"Emoticons": _("Emoticons"),
|
|
"Emoticons...": _("Emoticons..."),
|
|
"Encoding": _("Encoding"),
|
|
"Error": _("Error"),
|
|
"Error: _(Form submit field collision.": _("Error: _(Form submit field collision."),
|
|
"Error: _(No form element found.": _("Error: _(No form element found."),
|
|
"euro-currency sign": _("euro-currency sign"),
|
|
"example": _("example"),
|
|
"Extended Latin": _("Extended Latin"),
|
|
"Failed to initialize plugin: _({ 0 }": _("Failed to initialize plugin: _({ 0 }"),
|
|
"Failed to initialize plugin: _({0}": _("Failed to initialize plugin: _({0}"),
|
|
"Failed to load plugin url: _({ 0 }": _("Failed to load plugin url: _({ 0 }"),
|
|
"Failed to load plugin url: _({0}": _("Failed to load plugin url: _({0}"),
|
|
"Failed to load plugin: _({ 0 } from url { 1 }": _("Failed to load plugin: _({ 0 } from url { 1 }"),
|
|
"Failed to load plugin: _({0} from url {1}": _("Failed to load plugin: _({0} from url {1}"),
|
|
"Failed to upload image: _({ 0 }": _("Failed to upload image: _({ 0 }"),
|
|
"Failed to upload image: _({0}": _("Failed to upload image: _({0}"),
|
|
"File": _("File"),
|
|
"Find (if searchreplace plugin activated)": _("Find (if searchreplace plugin activated)"),
|
|
"Find and replace": _("Find and replace"),
|
|
"Find and replace...": _("Find and replace..."),
|
|
"Find whole words only": _("Find whole words only"),
|
|
"Find": _("Find"),
|
|
"Finish": _("Finish"),
|
|
"Flags": _("Flags"),
|
|
"Flip horizontally": _("Flip horizontally"),
|
|
"Flip vertically": _("Flip vertically"),
|
|
"Focus to contextual toolbar": _("Focus to contextual toolbar"),
|
|
"Focus to element path": _("Focus to element path"),
|
|
"Focus to menubar": _("Focus to menubar"),
|
|
"Focus to toolbar": _("Focus to toolbar"),
|
|
"Font Sizes": _("Font Sizes"),
|
|
"Fonts": _("Fonts"),
|
|
"Food and Drink": _("Food and Drink"),
|
|
"Footer": _("Footer"),
|
|
"Format": _("Format"),
|
|
"Formats": _("Formats"),
|
|
"formatting": _("formatting"),
|
|
"french franc sign": _("french franc sign"),
|
|
"Fullscreen": _("Fullscreen"),
|
|
"G": _("G"),
|
|
"Gamma": _("Gamma"),
|
|
"General": _("General"),
|
|
"german penny symbol": _("german penny symbol"),
|
|
"Gray": _("Gray"),
|
|
"Green": _("Green"),
|
|
"guarani sign": _("guarani sign"),
|
|
"H Align": _("H Align"),
|
|
"Handy Shortcuts": _("Handy Shortcuts"),
|
|
"Header 1": _("Header 1"),
|
|
"Header 2": _("Header 2"),
|
|
"Header 3": _("Header 3"),
|
|
"Header 4": _("Header 4"),
|
|
"Header 5": _("Header 5"),
|
|
"Header 6": _("Header 6"),
|
|
"Header cell": _("Header cell"),
|
|
"Header": _("Header"),
|
|
"Headers": _("Headers"),
|
|
"Heading 1": _("Heading 1"),
|
|
"Heading 2": _("Heading 2"),
|
|
"Heading 3": _("Heading 3"),
|
|
"Heading 4": _("Heading 4"),
|
|
"Heading 5": _("Heading 5"),
|
|
"Heading 6": _("Heading 6"),
|
|
"Headings": _("Headings"),
|
|
"Height": _("Height"),
|
|
"Help": _("Help"),
|
|
"history": _("history"),
|
|
"Horizontal line": _("Horizontal line"),
|
|
"Horizontal space": _("Horizontal space"),
|
|
"hryvnia sign": _("hryvnia sign"),
|
|
"Id should start with a letter, followed only by letters, numbers, dashes, dots, colons or underscores.": _("Id should start with a letter, followed only by letters, numbers, dashes, dots, colons or underscores."),
|
|
"Id": _("Id"),
|
|
"Ignore all": _("Ignore all"),
|
|
"Ignore": _("Ignore"),
|
|
"Image description": _("Image description"),
|
|
"Image list": _("Image list"),
|
|
"Image options": _("Image options"),
|
|
"Image title": _("Image title"),
|
|
"Image": _("Image"),
|
|
"Image...": _("Image..."),
|
|
"Increase indent": _("Increase indent"),
|
|
"indentation": _("indentation"),
|
|
"indian rupee sign": _("indian rupee sign"),
|
|
"Inline": _("Inline"),
|
|
"Insert column after": _("Insert column after"),
|
|
"Insert column before": _("Insert column before"),
|
|
"Insert date\/time": _("Insert date\/time"),
|
|
"Insert image": _("Insert image"),
|
|
"Insert link (if link plugin activated)": _("Insert link (if link plugin activated)"),
|
|
"Insert link": _("Insert link"),
|
|
"Insert row after": _("Insert row after"),
|
|
"Insert row before": _("Insert row before"),
|
|
"Insert table": _("Insert table"),
|
|
"Insert template": _("Insert template"),
|
|
"Insert template...": _("Insert template..."),
|
|
"Insert video": _("Insert video"),
|
|
"Insert": _("Insert"),
|
|
"Insert\/Edit code sample": _("Insert\/Edit code sample"),
|
|
"Insert\/edit image": _("Insert\/edit image"),
|
|
"Insert\/Edit Link": _("Insert\/Edit Link"),
|
|
"Insert\/edit link": _("Insert\/edit link"),
|
|
"Insert\/edit media": _("Insert\/edit media"),
|
|
"Insert\/edit video": _("Insert\/edit video"),
|
|
"Invert": _("Invert"),
|
|
"Italic": _("Italic"),
|
|
"Justify": _("Justify"),
|
|
"Keywords": _("Keywords"),
|
|
"kip sign": _("kip sign"),
|
|
"Language": _("Language"),
|
|
"Learn more...": _("Learn more..."),
|
|
"Left to right": _("Left to right"),
|
|
"Left": _("Left"),
|
|
"Light Gray": _("Light Gray"),
|
|
"Link list": _("Link list"),
|
|
"Link": _("Link"),
|
|
"Link...": _("Link..."),
|
|
"lira sign": _("lira sign"),
|
|
"livre tournois sign": _("livre tournois sign"),
|
|
"Loading emoticons...": _("Loading emoticons..."),
|
|
"Lower Alpha": _("Lower Alpha"),
|
|
"Lower Greek": _("Lower Greek"),
|
|
"Lower Roman": _("Lower Roman"),
|
|
"manat sign": _("manat sign"),
|
|
"Match case": _("Match case"),
|
|
"Mathematical": _("Mathematical"),
|
|
"Media poster (Image URL)": _("Media poster (Image URL)"),
|
|
"Media": _("Media"),
|
|
"Media...": _("Media..."),
|
|
"Medium Blue": _("Medium Blue"),
|
|
"Medium Gray": _("Medium Gray"),
|
|
"Medium Purple": _("Medium Purple"),
|
|
"Merge cells": _("Merge cells"),
|
|
"Metadata and Document Properties": _("Metadata and Document Properties"),
|
|
"Middle": _("Middle"),
|
|
"Midnight Blue": _("Midnight Blue"),
|
|
"mill sign": _("mill sign"),
|
|
"naira sign": _("naira sign"),
|
|
"Name": _("Name"),
|
|
"Navy Blue": _("Navy Blue"),
|
|
"New document": _("New document"),
|
|
"new sheqel sign": _("new sheqel sign"),
|
|
"New window": _("New window"),
|
|
"Next": _("Next"),
|
|
"No color": _("No color"),
|
|
"Nonbreaking space": _("Nonbreaking space"),
|
|
"None": _("None"),
|
|
"nordic mark sign": _("nordic mark sign"),
|
|
"Numbered list": _("Numbered list"),
|
|
"Objects": _("Objects"),
|
|
"Ok": _("Ok"),
|
|
"Open help dialog": _("Open help dialog"),
|
|
"Open link in...": _("Open link in..."),
|
|
"OR": _("OR"),
|
|
"Orange": _("Orange"),
|
|
"Orientation": _("Orientation"),
|
|
"Page break": _("Page break"),
|
|
"Paragraph": _("Paragraph"),
|
|
"Paste as text": _("Paste as text"),
|
|
"Paste is now in plain text mode. Contents will now be pasted as plain text until you toggle this option off.": _("Paste is now in plain text mode. Contents will now be pasted as plain text until you toggle this option off."),
|
|
"Paste or type a link": _("Paste or type a link"),
|
|
"Paste row after": _("Paste row after"),
|
|
"Paste row before": _("Paste row before"),
|
|
"Paste your embed code below:": _("Paste your embed code below:"),
|
|
"Paste": _("Paste"),
|
|
"People": _("People"),
|
|
"permanent pen": _("permanent pen"),
|
|
"peseta sign": _("peseta sign"),
|
|
"peso sign": _("peso sign"),
|
|
"Plugins installed ({0}):": _("Plugins installed ({0}):"),
|
|
"Plugins": _("Plugins"),
|
|
"Poster": _("Poster"),
|
|
"Powered by {0}": _("Powered by {0}"),
|
|
"Pre": _("Pre"),
|
|
"Preformatted": _("Preformatted"),
|
|
"Premium plugins:": _("Premium plugins:"),
|
|
"Prev": _("Prev"),
|
|
"Preview": _("Preview"),
|
|
"Previous": _("Previous"),
|
|
"Print": _("Print"),
|
|
"Print...": _("Print..."),
|
|
"Purple": _("Purple"),
|
|
"Quotations": _("Quotations"),
|
|
"R": _("R"),
|
|
"Red": _("Red"),
|
|
"Redo": _("Redo"),
|
|
"Remove color": _("Remove color"),
|
|
"Remove link": _("Remove link"),
|
|
"Replace all": _("Replace all"),
|
|
"Replace with": _("Replace with"),
|
|
"Replace": _("Replace"),
|
|
"Resize": _("Resize"),
|
|
"Restore last draft": _("Restore last draft"),
|
|
"Rich Text Area. Press ALT-0 for help.": _("Rich Text Area. Press ALT-0 for help."),
|
|
"Rich Text Area. Press ALT-F9 for menu. Press ALT-F10 for toolbar. Press ALT-0 for help": _("Rich Text Area. Press ALT-F9 for menu. Press ALT-F10 for toolbar. Press ALT-0 for help"),
|
|
"Right to left": _("Right to left"),
|
|
"Right": _("Right"),
|
|
"Robots": _("Robots"),
|
|
"Rotate clockwise": _("Rotate clockwise"),
|
|
"Rotate counterclockwise": _("Rotate counterclockwise"),
|
|
"Row group": _("Row group"),
|
|
"Row properties": _("Row properties"),
|
|
"Row type": _("Row type"),
|
|
"Row": _("Row"),
|
|
"Rows": _("Rows"),
|
|
"ruble sign": _("ruble sign"),
|
|
"rupee sign": _("rupee sign"),
|
|
"Save (if save plugin activated)": _("Save (if save plugin activated)"),
|
|
"Save": _("Save"),
|
|
"Scope": _("Scope"),
|
|
"Search": _("Search"),
|
|
"Select all": _("Select all"),
|
|
"Sharpen": _("Sharpen"),
|
|
"Shortcut": _("Shortcut"),
|
|
"Show blocks": _("Show blocks"),
|
|
"Show caption": _("Show caption"),
|
|
"Show invisible characters": _("Show invisible characters"),
|
|
"Source code": _("Source code"),
|
|
"Source": _("Source"),
|
|
"Special character": _("Special character"),
|
|
"Special characters...": _("Special characters..."),
|
|
"Spell check": _("Spell check"),
|
|
"Spellcheck": _("Spellcheck"),
|
|
"spesmilo sign": _("spesmilo sign"),
|
|
"Split cell": _("Split cell"),
|
|
"Square": _("Square"),
|
|
"Strikethrough": _("Strikethrough"),
|
|
"Style": _("Style"),
|
|
"styles": _("styles"),
|
|
"Subscript": _("Subscript"),
|
|
"Superscript": _("Superscript"),
|
|
"Switch to or from fullscreen mode": _("Switch to or from fullscreen mode"),
|
|
"Symbols": _("Symbols"),
|
|
"System Font": _("System Font"),
|
|
"Table of Contents": _("Table of Contents"),
|
|
"Table properties": _("Table properties"),
|
|
"Table": _("Table"),
|
|
"Target": _("Target"),
|
|
"Template": _("Template"),
|
|
"Templates": _("Templates"),
|
|
"tenge sign": _("tenge sign"),
|
|
"Text color": _("Text color"),
|
|
"Text to display": _("Text to display"),
|
|
"Text": _("Text"),
|
|
"The URL you entered seems to be an email address. Do you want to add the required mailto: _(prefix?": _("The URL you entered seems to be an email address. Do you want to add the required mailto: _(prefix?"),
|
|
"The URL you entered seems to be an external link. Do you want to add the required http:\/\/ prefix?": _("The URL you entered seems to be an external link. Do you want to add the required http:\/\/ prefix?"),
|
|
"Title": _("Title"),
|
|
"To open the popup, press Shift+Enter": _("To open the popup, press Shift+Enter"),
|
|
"Tools": _("Tools"),
|
|
"Top": _("Top"),
|
|
"Travel and Places": _("Travel and Places"),
|
|
"tugrik sign": _("tugrik sign"),
|
|
"turkish lira sign": _("turkish lira sign"),
|
|
"Turquoise": _("Turquoise"),
|
|
"Underline": _("Underline"),
|
|
"Undo": _("Undo"),
|
|
"Update": _("Update"),
|
|
"Upload": _("Upload"),
|
|
"Upper Alpha": _("Upper Alpha"),
|
|
"Upper Roman": _("Upper Roman"),
|
|
"Url": _("Url"),
|
|
"User Defined": _("User Defined"),
|
|
"V Align": _("V Align"),
|
|
"Valid": _("Valid"),
|
|
"Vertical space": _("Vertical space"),
|
|
"View": _("View"),
|
|
"Visual aids": _("Visual aids"),
|
|
"Warn": _("Warn"),
|
|
"White": _("White"),
|
|
"Whole words": _("Whole words"),
|
|
"Width": _("Width"),
|
|
"won sign": _("won sign"),
|
|
"Word count": _("Word count"),
|
|
"Words: _({ 0 }": _("Words: _({ 0 }"),
|
|
"Words: _({0}": _("Words: _({0}"),
|
|
"Yellow": _("Yellow"),
|
|
"yen character": _("yen character"),
|
|
"yen\/yuan character variant one": _("yen\/yuan character variant one"),
|
|
"You are using {0}": _("You are using {0}"),
|
|
"You have unsaved changes are you sure you want to navigate away?": _("You have unsaved changes are you sure you want to navigate away?"),
|
|
"Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X\/C\/V keyboard shortcuts instead.": _("Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X\/C\/V keyboard shortcuts instead."),
|
|
"yuan character": _("yuan character"),
|
|
"yuan character, in hong kong and taiwan": _("yuan character, in hong kong and taiwan"),
|
|
"Zoom in": _("Zoom in"),
|
|
"Zoom out": _("Zoom out"),
|
|
"{ 0 } words ": _("{ 0 } words "),
|
|
"{0} words": _("{0} words"),
|
|
});
|
|
</script> |