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");