From d0b419c5a952092959f80f796be4b8f152063eda Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Mon, 19 Sep 2011 14:40:01 +0200 Subject: [PATCH] ENHANCEMENT Showing class names in ClassDropDown in not en_US (fixes #6325, thanks dhensby) --- code/model/SiteTree.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/model/SiteTree.php b/code/model/SiteTree.php index 0b2bd652..ce8f546c 100644 --- a/code/model/SiteTree.php +++ b/code/model/SiteTree.php @@ -2303,7 +2303,7 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid // title and the actual classname might not be obvious, so we add it in parantheses // Example: class "RedirectorPage" has the title "Weiterleitung" in German, // so it shows up as "Weiterleitung (RedirectorPage)" - if(i18n::get_locale() != 'en_US') { + if(i18n::get_lang_from_locale(i18n::get_locale()) != 'en') { $result[$class] = $result[$class] . " ({$class})"; } }