diff --git a/core/model/Translatable.php b/core/model/Translatable.php index b1870be2b..387b7eafd 100755 --- a/core/model/Translatable.php +++ b/core/model/Translatable.php @@ -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, diff --git a/tests/model/DBLocaleTest.php b/tests/model/DBLocaleTest.php index 3b6d88137..2d0366066 100644 --- a/tests/model/DBLocaleTest.php +++ b/tests/model/DBLocaleTest.php @@ -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'); } } ?> \ No newline at end of file