ENHANCEMENT Showing class names in ClassDropDown in not en_US (fixes #6325, thanks dhensby)

This commit is contained in:
Ingo Schommer 2011-09-19 14:40:01 +02:00
parent 5de2ba5628
commit d0b419c5a9
1 changed files with 1 additions and 1 deletions

View File

@ -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})";
}
}