BUGFIX Fixed Folder singular/plural name i18n by overloading the statics inherited from File class

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@92555 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2009-11-21 02:32:40 +00:00
parent 1afe18a268
commit 16f69c3080
2 changed files with 6 additions and 2 deletions

View File

@ -6,6 +6,10 @@
*/
class Folder extends File {
static $singular_name = "Folder";
static $plural_name = "Folders";
/*
* Find the given folder or create it, recursively.
*

View File

@ -265,12 +265,12 @@ $lang['en_US']['Folder']['FILENAME'] = 'Filename';
$lang['en_US']['Folder']['FILESTAB'] = 'Files';
$lang['en_US']['Folder']['LASTEDITED'] = 'Last Updated';
$lang['en_US']['Folder']['PLURALNAME'] = array(
'Files',
'Folders',
50,
'Pural name of the object, used in dropdowns and to generally identify a collection of this object in the interface'
);
$lang['en_US']['Folder']['SINGULARNAME'] = array(
'File',
'Folder',
50,
'Singular name of the object, used in dropdowns and to generally identify a single object in the interface'
);