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:
Ingo Schommer 2009-04-30 08:39:49 +00:00
parent c1c920cca0
commit c28c90b708
2 changed files with 5 additions and 1 deletions

View File

@ -887,6 +887,10 @@ class Translatable extends DataObjectDecorator {
return (!$stage || $stage == $this->defaultStage) ? $baseClass : $baseClass . "_$stage";
}
function extendWithSuffix($table) {
return $table;
}
/**
* Gets all related translations for the current object,
* excluding itself. See {@link getTranslation()} to retrieve

View File

@ -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');
}
}
?>