Permalink
Browse files

BUGFIX Fixed Folder singular/plural name i18n by overloading the stat…

…ics inherited from File class

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@92555 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
chillu committed Nov 21, 2009
1 parent 1afe18a commit 16f69c3080b9feb80ab8a7a66e29791cb78d6a9d
Showing with 6 additions and 2 deletions.
  1. +4 −0 filesystem/Folder.php
  2. +2 −2 lang/en_US.php
View
@@ -5,6 +5,10 @@
* @subpackage filesystem
*/
class Folder extends File {
+
+ static $singular_name = "Folder";
+
+ static $plural_name = "Folders";
/*
* Find the given folder or create it, recursively.
View
@@ -265,12 +265,12 @@
$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'
);

0 comments on commit 16f69c3

Please sign in to comment.