From 926571a2bfd56045ad6fc58bff8e7b7280927fd9 Mon Sep 17 00:00:00 2001 From: Lukas Erni Date: Wed, 17 Jun 2020 16:28:23 +0200 Subject: [PATCH] https://github.com/silverstripe/silverstripe-cms/issues/2557 - remove FQN if lang != EN on SiteType dropdown in page-settings --- code/Model/SiteTree.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/code/Model/SiteTree.php b/code/Model/SiteTree.php index d50688f3..98437b2c 100755 --- a/code/Model/SiteTree.php +++ b/code/Model/SiteTree.php @@ -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