mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR Re-added Translatable->extendWithSuffix()
BUGFIX Fixed DBLocaleTest git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@75745 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
c1c920cca0
commit
c28c90b708
@ -886,6 +886,10 @@ class Translatable extends DataObjectDecorator {
|
||||
$baseClass = array_shift($tableClasses);
|
||||
return (!$stage || $stage == $this->defaultStage) ? $baseClass : $baseClass . "_$stage";
|
||||
}
|
||||
|
||||
function extendWithSuffix($table) {
|
||||
return $table;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets all related translations for the current object,
|
||||
|
@ -6,7 +6,7 @@
|
||||
class DBLocaleTest extends SapphireTest {
|
||||
function testNice() {
|
||||
$l = DBField::create('DBLocale', 'de_DE');
|
||||
$this->assertEquals($l->Nice(), 'German (Germany)');
|
||||
$this->assertEquals($l->Nice(), 'German');
|
||||
}
|
||||
}
|
||||
?>
|
Loading…
x
Reference in New Issue
Block a user