From d8acf97911d47395ff5d5427025b4ccb67b9add9 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Wed, 5 Nov 2008 14:38:59 +0000 Subject: [PATCH] MINOR JS translations in LeftAndMain git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@65292 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- javascript/LeftAndMain_right.js | 2 +- javascript/lang/de_DE.js | 3 ++- javascript/lang/en_US.js | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/javascript/LeftAndMain_right.js b/javascript/LeftAndMain_right.js index 45fff5fe..67ddda2c 100755 --- a/javascript/LeftAndMain_right.js +++ b/javascript/LeftAndMain_right.js @@ -39,7 +39,7 @@ CMSForm.prototype = { */ closeIfSetTo: function(id) { if(this.elements.ID && this.elements.ID.value == id) { - this.innerHTML = "

This page was deleted. To edit a page, select it from the left.

"; + this.innerHTML = "

" + ss.i18n._t('LeftAndMain.PAGEWASDELETED') + "

"; // Note: TinyMCE coupling if((typeof tinymce != 'undefined') && tinymce.EditorManager) { tinymce.EditorManager.editors = {}; diff --git a/javascript/lang/de_DE.js b/javascript/lang/de_DE.js index b5a88fda..a6a788ea 100644 --- a/javascript/lang/de_DE.js +++ b/javascript/lang/de_DE.js @@ -21,6 +21,7 @@ if(typeof(ss) == 'undefined' || typeof(ss.i18n) == 'undefined') { 'CMSMAIN.SAVING' : 'Sichern...', 'ModelAdmin.SAVED': "Gespeichert", 'ModelAdmin.REALLYDELETE': "Wirklich löschen?", - 'ModelAdmin.DELETED': "Gelöscht" + 'ModelAdmin.DELETED': "Gelöscht", + 'LeftAndMain.PAGEWASDELETED': "Diese Seite wurde gelöscht." }); } \ No newline at end of file diff --git a/javascript/lang/en_US.js b/javascript/lang/en_US.js index fcd7cdcd..c3ea7a83 100644 --- a/javascript/lang/en_US.js +++ b/javascript/lang/en_US.js @@ -21,6 +21,7 @@ if(typeof(ss) == 'undefined' || typeof(ss.i18n) == 'undefined') { 'CMSMAIN.SAVING' : 'saving...', 'ModelAdmin.SAVED': "Saved", 'ModelAdmin.REALLYDELETE': "Do you really want to delete?", - 'ModelAdmin.DELETED': "Deleted" + 'ModelAdmin.DELETED': "Deleted", + 'LeftAndMain.PAGEWASDELETED': "This page was deleted. To edit a page, select it from the left." }); } \ No newline at end of file