From af0519b1986b477db8ca16de9e1387a5d1be3f30 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Fri, 6 Mar 2009 03:10:41 +0000 Subject: [PATCH] BUGFIX: Include i18n where necessary. 2nd part of r72563 git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@72564 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/LeftAndMain.php | 2 +- code/SecurityAdmin.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/code/LeftAndMain.php b/code/LeftAndMain.php index fa9d8cbd..16ed83a8 100644 --- a/code/LeftAndMain.php +++ b/code/LeftAndMain.php @@ -181,7 +181,7 @@ class LeftAndMain extends Controller { Requirements::javascript(THIRDPARTY_DIR . '/loader.js'); Requirements::javascript(THIRDPARTY_DIR . '/hover.js'); Requirements::javascript(THIRDPARTY_DIR . '/layout_helpers.js'); - Requirements::javascript(SAPPHIRE_DIR . "/javascript/i18n.js"); + Requirements::add_i18n_javascript(SAPPHIRE_DIR . '/javascript/lang'); Requirements::javascript(THIRDPARTY_DIR . '/scriptaculous/effects.js'); Requirements::javascript(THIRDPARTY_DIR . '/scriptaculous/dragdrop.js'); diff --git a/code/SecurityAdmin.php b/code/SecurityAdmin.php index 9e9cad83..3abbfba4 100644 --- a/code/SecurityAdmin.php +++ b/code/SecurityAdmin.php @@ -34,6 +34,7 @@ class SecurityAdmin extends LeftAndMain implements PermissionProvider { Requirements::javascript(THIRDPARTY_DIR . "/scriptaculous/controls.js"); // needed for MemberTableField (Requirements not determined before Ajax-Call) + Requirements::add_i18n_javascript(SAPPHIRE_DIR . '/javascript/lang'); Requirements::javascript(SAPPHIRE_DIR . "/javascript/TableListField.js"); Requirements::javascript(SAPPHIRE_DIR . "/javascript/TableField.js"); Requirements::javascript(SAPPHIRE_DIR . "/javascript/ComplexTableField.js");