mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Merge pull request #2558 from lerni/no-fqn-on-sitetype-dropdown
#2557 removs FQN if lang != EN on SiteType dropdown in page-settings
This commit is contained in:
commit
2f235ab5a3
@ -2628,13 +2628,6 @@ class SiteTree extends DataObject implements PermissionProvider, i18nEntityProvi
|
|||||||
|
|
||||||
$currentClass = $class;
|
$currentClass = $class;
|
||||||
$result[$class] = $pageTypeName;
|
$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
|
// sort alphabetically, and put current on top
|
||||||
|
Loading…
Reference in New Issue
Block a user