bfojcapell: using new default locale and function name

(merged from branches/gsoc)


git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@41908 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2007-09-15 02:08:42 +00:00
parent 71cb143070
commit 7ee0ec6158
3 changed files with 19 additions and 19 deletions

View File

@ -161,9 +161,9 @@ abstract class LeftAndMain extends Controller {
// array[2]: The controller class for this menu, used to check permisssions. If blank, it's assumed that this is public, and always shown to // array[2]: The controller class for this menu, used to check permisssions. If blank, it's assumed that this is public, and always shown to
// users who have the rights to access some other part of the admin area. // users who have the rights to access some other part of the admin area.
$menuSrc = array( $menuSrc = array(
_(__FILE__,'HELLO',"Site content",100,"Menu title") => array("content", "admin/", "CMSMain"), _t ( 'LeftAndMain.HELLO', "Site content",100,"Menu title") => array("content", "admin/", "CMSMain"),
_(__FILE__,'FILESIMAGES',"Files & Images",100) => array("files", "admin/assets/", "AssetAdmin"), _t('LeftAndMain.FILESIMAGES',"Files & Images",100) => array("files", "admin/assets/", "AssetAdmin"),
_("LeftAndMain",'NEWSLETTERS',"Newsletters") => array("newsletter", "admin/newsletter/", "NewsletterAdmin"), _t('LeftAndMain.NEWSLETTERS',"Newsletters") => array("newsletter", "admin/newsletter/", "NewsletterAdmin"),
"Reports" => array("report", "admin/reports/", "ReportAdmin"), "Reports" => array("report", "admin/reports/", "ReportAdmin"),
"Security" => array("security", "admin/security/", "SecurityAdmin"), "Security" => array("security", "admin/security/", "SecurityAdmin"),
"Comments" => array("comments", "admin/comments/", "CommentAdmin"), "Comments" => array("comments", "admin/comments/", "CommentAdmin"),

View File

@ -1,16 +0,0 @@
<?php
global $lang;
$lang['en']['LeftAndMain']['HELLO'] = array(
'Site content',
100,
'Menu title'
);
$lang['en']['LeftAndMain']['FILESIMAGES'] = array(
'Files & Images',
100
);
$lang['en']['LeftAndMain']['NEWSLETTERS'] = 'Newsletters';
?>

16
lang/en_US.php Executable file
View File

@ -0,0 +1,16 @@
<?php
global $lang;
$lang['en_US']['LeftAndMain']['HELLO'] = array(
'Site content',
100,
'Menu title'
);
$lang['en_US']['LeftAndMain']['FILESIMAGES'] = array(
'Files & Images',
100
);
$lang['en_US']['LeftAndMain']['NEWSLETTERS'] = 'Newsletters';
?>