From c28c90b7083eba8027f453b9b046a151d6875c68 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Thu, 30 Apr 2009 08:39:49 +0000 Subject: [PATCH] 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 --- core/model/Translatable.php | 4 ++++ tests/model/DBLocaleTest.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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