mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
ENHANCEMENT Showing class names in ClassDropDown in not en_US (fixes #6325, thanks dhensby)
This commit is contained in:
parent
5de2ba5628
commit
d0b419c5a9
@ -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})";
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user