From 1a59bf50d1db6878b821e26ca84d460efb815000 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Tue, 17 Jan 2023 14:42:40 +1300 Subject: [PATCH] ENH Remove unused Translatable code --- src/Core/Extensible.php | 2 +- src/ORM/DataQuery.php | 2 +- src/ORM/FieldType/DBLocale.php | 2 +- src/i18n/i18n.php | 4 ---- 4 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/Core/Extensible.php b/src/Core/Extensible.php index da66ebed7..3d80cb714 100644 --- a/src/Core/Extensible.php +++ b/src/Core/Extensible.php @@ -157,7 +157,7 @@ trait Extensible * @see http://doc.silverstripe.org/framework/en/trunk/reference/dataextension * @param string $classOrExtension Class that should be extended - has to be a subclass of {@link Object} * @param string $extension Subclass of {@link Extension} with optional parameters - * as a string, e.g. "Versioned" or "Translatable('Param')" + * as a string, e.g. "Versioned" * @return bool Flag if the extension was added */ public static function add_extension($classOrExtension, $extension = null) diff --git a/src/ORM/DataQuery.php b/src/ORM/DataQuery.php index ba225d111..06acea92a 100644 --- a/src/ORM/DataQuery.php +++ b/src/ORM/DataQuery.php @@ -331,7 +331,7 @@ class DataQuery "RecordClassName" ); - // TODO: Versioned, Translatable, SiteTreeSubsites, etc, could probably be better implemented as subclasses + // TODO: Versioned, SiteTreeSubsites, etc, could probably be better implemented as subclasses // of DataQuery $obj = Injector::inst()->get($this->dataClass); diff --git a/src/ORM/FieldType/DBLocale.php b/src/ORM/FieldType/DBLocale.php index 059626269..fbd947512 100644 --- a/src/ORM/FieldType/DBLocale.php +++ b/src/ORM/FieldType/DBLocale.php @@ -5,7 +5,7 @@ namespace SilverStripe\ORM\FieldType; use SilverStripe\i18n\i18n; /** - * Locale database field, mainly used in {@link Translatable} extension. + * Locale database field * * @todo Allowing showing locale values in different languages through Nice() */ diff --git a/src/i18n/i18n.php b/src/i18n/i18n.php index 8413abce2..5f0b6f3f9 100644 --- a/src/i18n/i18n.php +++ b/src/i18n/i18n.php @@ -14,8 +14,6 @@ use InvalidArgumentException; /** * Base-class for storage and retrieval of translated entities. * - * Please see the 'translatable' module for managing translations of database-content. - * * Usage * * PHP: @@ -37,8 +35,6 @@ use InvalidArgumentException; * * * File-based i18n-translations always have a "locale" (e.g. 'en_US'). - * Common language names (e.g. 'en') are mainly used in the 'translatable' module - * database-entities. * * Text Collection *