Skip to content

Commit

Permalink
Merge pull request #10650 from creative-commoners/pulls/5/remove-tran…
Browse files Browse the repository at this point in the history
…slatable

ENH Remove unused Translatable code
  • Loading branch information
michalkleiner authored Jan 17, 2023
2 parents 8ad2e5d + 1a59bf5 commit 77df71f
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/Core/Extensible.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ protected function defineExtensionMethods()
* @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)
Expand Down
2 changes: 1 addition & 1 deletion src/ORM/DataQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ public function getFinalisedQuery($queriedColumns = null)
"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);
Expand Down
2 changes: 1 addition & 1 deletion src/ORM/FieldType/DBLocale.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
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()
*/
Expand Down
4 changes: 0 additions & 4 deletions src/i18n/i18n.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
/**
* Base-class for storage and retrieval of translated entities.
*
* Please see the 'translatable' module for managing translations of database-content.
*
* <b>Usage</b>
*
* PHP:
Expand All @@ -37,8 +35,6 @@
* </code>
*
* 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.
*
* <b>Text Collection</b>
*
Expand Down

0 comments on commit 77df71f

Please # to comment.