From 3cc6485c14bd8eb88b512131fa62f21e1d731228 Mon Sep 17 00:00:00 2001 From: Matt Peel Date: Tue, 21 May 2013 14:57:29 +1200 Subject: [PATCH] Add default params to _t() calls to ensure if a translation isn't found, it falls back to a useful English string --- javascript/CMSMain.Tree.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/javascript/CMSMain.Tree.js b/javascript/CMSMain.Tree.js index 73b41c5c..fb1b634f 100644 --- a/javascript/CMSMain.Tree.js +++ b/javascript/CMSMain.Tree.js @@ -29,7 +29,7 @@ var menuitems = { 'edit': { - 'label': ss.i18n._t('Tree.EditPage'), + 'label': ss.i18n._t('Tree.EditPage', 'Edit page', 100, 'Used in the context menu when right-clicking on a page node in the CMS tree'), 'action': function(obj) { $('.cms-container').entwine('.ss').loadPanel(ss.i18n.sprintf( self.data('urlEditpage'), obj.data('id') @@ -40,7 +40,7 @@ // Test if there are any allowed Children and thus the possibility of adding some if(allowedChildren.hasOwnProperty('allowedchildren-0')) { menuitems['addsubpage'] = { - 'label': ss.i18n._t('Tree.AddSubPage'), + 'label': ss.i18n._t('Tree.AddSubPage', 'Add page under this page', 100, 'Used in the context menu when right-clicking on a page node in the CMS tree'), 'submenu': allowedChildren }; }