From 3b592122fd4616762421b655937efafbe50ba615 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sun, 26 Aug 2012 23:07:20 +0200 Subject: [PATCH] i18n for "select an anchor" string (see #7798) --- javascript/HtmlEditorField.js | 6 +++++- javascript/lang/en_US.js | 1 + lang/en.yml | 1 + templates/AssetUploadField.ss | 2 +- templates/HtmlEditorField_UploadField.ss | 2 +- 5 files changed, 9 insertions(+), 3 deletions(-) diff --git a/javascript/HtmlEditorField.js b/javascript/HtmlEditorField.js index 5c19463fd..d99cdcdde 100644 --- a/javascript/HtmlEditorField.js +++ b/javascript/HtmlEditorField.js @@ -599,7 +599,11 @@ ss.editorWrappers['default'] = ss.editorWrappers.tinyMCE; } selector.empty(); - selector.append($('')); + selector.append($( + '' + )); for (var j = 0; j < anchors.length; j++) { selector.append($('')); } diff --git a/javascript/lang/en_US.js b/javascript/lang/en_US.js index ec022a545..5432118e0 100644 --- a/javascript/lang/en_US.js +++ b/javascript/lang/en_US.js @@ -18,6 +18,7 @@ if(typeof(ss) == 'undefined' || typeof(ss.i18n) == 'undefined') { 'FILEIFRAMEFIELD.CONFIRMDELETE': 'Are you sure you want to delete this file?', 'LeftAndMain.IncompatBrowserWarning': 'Your browser is not compatible with the CMS interface. Please use Internet Explorer 7+, Google Chrome 10+ or Mozilla Firefox 3.5+.', 'GRIDFIELD.ERRORINTRANSACTION': 'An error occured while fetching data from the server\n Please try again later.', + 'HtmlEditorField.SelectAnchor': 'Select an anchor', 'UploadField.ConfirmDelete': 'Are you sure you want to remove this file from the server filesystem?', 'UploadField.PHP_MAXFILESIZE': 'File exceeds upload_max_filesize (php.ini directive)', 'UploadField.HTML_MAXFILESIZE': 'File exceeds MAX_FILE_SIZE (HTML form directive)', diff --git a/lang/en.yml b/lang/en.yml index b297716bb..bbc07d7b2 100644 --- a/lang/en.yml +++ b/lang/en.yml @@ -25,6 +25,7 @@ en: FROMCOMPUTER: 'Choose files from your computer' FROMCOMPUTERINFO: 'Upload from your computer' TOTAL: Total + TOUPLOAD: 'Choose files to upload...' UPLOADINPROGRESS: 'Please wait… upload in progress' UPLOADOR: OR BBCodeParser: diff --git a/templates/AssetUploadField.ss b/templates/AssetUploadField.ss index 6d7dc0746..70f270438 100644 --- a/templates/AssetUploadField.ss +++ b/templates/AssetUploadField.ss @@ -9,7 +9,7 @@
diff --git a/templates/HtmlEditorField_UploadField.ss b/templates/HtmlEditorField_UploadField.ss index 9f6a0d043..6eefe6e34 100644 --- a/templates/HtmlEditorField_UploadField.ss +++ b/templates/HtmlEditorField_UploadField.ss @@ -9,7 +9,7 @@