Skip to content
Browse files

ENHANCEMENT Showing class names in ClassDropDown in not en_US (fixes …

…#6325, thanks dhensby)
  • Loading branch information...
1 parent 5de2ba5 commit d0b419c5a952092959f80f796be4b8f152063eda @chillu chillu committed Sep 19, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 code/model/SiteTree.php
View
2 code/model/SiteTree.php
@@ -2303,7 +2303,7 @@ protected function getClassDropdown() {
// 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})";
}
}

0 comments on commit d0b419c

Please sign in to comment.
Something went wrong with that request. Please try again.