https://github.com/silverstripe/silverstripe-cms/issues/2557 - remove FQN if lang != EN on SiteType dropdown in page-settings

This commit is contained in:
Lukas Erni 2020-06-17 16:28:23 +02:00
parent 4009e37847
commit 926571a2bf
1 changed files with 0 additions and 7 deletions

View File

@ -2628,13 +2628,6 @@ class SiteTree extends DataObject implements PermissionProvider, i18nEntityProvi
$currentClass = $class;
$result[$class] = $pageTypeName;
// If we're in translation mode, the link between the translated pagetype 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::getData()->langFromLocale(i18n::get_locale()) != 'en') {
$result[$class] = $result[$class] . " ({$class})";
}
}
// sort alphabetically, and put current on top