Skip to content
This repository
Browse code

i18n for "select an anchor" string (see #7798)

  • Loading branch information...
commit 3b592122fd4616762421b655937efafbe50ba615 1 parent 674b52b
Ingo Schommer authored August 26, 2012
6  javascript/HtmlEditorField.js
@@ -599,7 +599,11 @@ ss.editorWrappers['default'] = ss.editorWrappers.tinyMCE;
599 599
 				}
600 600
 
601 601
 				selector.empty();
602  
-				selector.append($('<option value="" selected="1">Select an anchor</option>'));
  602
+				selector.append($(
  603
+					'<option value="" selected="1">' +
  604
+					ss.i18n._t('HtmlEditorField.SelectAnchor') +
  605
+					'</option>'
  606
+				));
603 607
 				for (var j = 0; j < anchors.length; j++) {
604 608
 					selector.append($('<option value="'+anchors[j]+'">'+anchors[j]+'</option>'));
605 609
 				}
1  javascript/lang/en_US.js
@@ -18,6 +18,7 @@ if(typeof(ss) == 'undefined' || typeof(ss.i18n) == 'undefined') {
18 18
 		'FILEIFRAMEFIELD.CONFIRMDELETE': 'Are you sure you want to delete this file?',
19 19
 		'LeftAndMain.IncompatBrowserWarning': 'Your browser is not compatible with the CMS interface. Please use Internet Explorer 7+, Google Chrome 10+ or Mozilla Firefox 3.5+.',
20 20
 		'GRIDFIELD.ERRORINTRANSACTION': 'An error occured while fetching data from the server\n Please try again later.',
  21
+		'HtmlEditorField.SelectAnchor': 'Select an anchor',
21 22
 		'UploadField.ConfirmDelete': 'Are you sure you want to remove this file from the server filesystem?',
22 23
 		'UploadField.PHP_MAXFILESIZE': 'File exceeds upload_max_filesize (php.ini directive)',
23 24
 		'UploadField.HTML_MAXFILESIZE': 'File exceeds MAX_FILE_SIZE (HTML form directive)',
1  lang/en.yml
@@ -25,6 +25,7 @@ en:
25 25
     FROMCOMPUTER: 'Choose files from your computer'
26 26
     FROMCOMPUTERINFO: 'Upload from your computer'
27 27
     TOTAL: Total
  28
+    TOUPLOAD: 'Choose files to upload...'
28 29
     UPLOADINPROGRESS: 'Please wait… upload in progress'
29 30
     UPLOADOR: OR
30 31
   BBCodeParser:
2  templates/AssetUploadField.ss
@@ -9,7 +9,7 @@
9 9
 
10 10
 	<div class="ss-uploadfield-item-info">
11 11
 		<label class="ss-uploadfield-fromcomputer ss-ui-button ss-ui-action-constructive" title="<% _t('AssetUploadField.FROMCOMPUTERINFO', 'Upload from your computer') %>" data-icon="drive-upload">
12  
-			<% _t('AssetUploadField.TOUPLOAD', 'Choose file(s) to upload...') %>
  12
+			<% _t('AssetUploadField.TOUPLOAD', 'Choose files to upload...') %>
13 13
 			<input id="$id" name="$getName" class="$extraClass ss-uploadfield-fromcomputer-fileinput" data-config="$configString" type="file"<% if $multiple %> multiple="multiple"<% end_if %> title="<% _t('AssetUploadField.FROMCOMPUTER', 'Choose files from your computer') %>" />
14 14
 		</label>
15 15
 		
2  templates/HtmlEditorField_UploadField.ss
@@ -9,7 +9,7 @@
9 9
 
10 10
 	<div class="ss-uploadfield-item-info">
11 11
 		<label class="ss-uploadfield-fromcomputer ss-ui-button ss-ui-action-constructive" title="<% _t('AssetUploadField.FROMCOMPUTERINFO', 'Upload from your computer') %>" data-icon="drive-upload">
12  
-			<% _t('AssetUploadField.TOUPLOAD', 'Choose file(s) to upload...') %>
  12
+			<% _t('AssetUploadField.TOUPLOAD', 'Choose files to upload...') %>
13 13
 			<input id="$id" name="$getName" class="$extraClass ss-uploadfield-fromcomputer-fileinput" data-config="$configString" type="file"<% if $multiple %> multiple="multiple"<% end_if %> title="<% _t('AssetUploadField.FROMCOMPUTER', 'Choose files from your computer') %>" />
14 14
 		</label>
15 15
 

0 notes on commit 3b59212

Please sign in to comment.
Something went wrong with that request. Please try again.