MINOR Re-added Translatable::default_lang() for more graceful fallback to Translatable::default_locale()

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@74030 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2009-04-02 22:41:26 +00:00
parent 50fc4959a2
commit a92413f1b7

View File

@ -1059,6 +1059,13 @@ class Translatable extends DataObjectDecorator {
return i18n::get_lang_from_locale(self::get_reading_locale()); return i18n::get_lang_from_locale(self::get_reading_locale());
} }
/**
* @deprecated 2.4 Use default_locale()
*/
static function default_lang() {
return i18n::get_lang_from_locale(self::default_locale());
}
/** /**
* @deprecated 2.4 Use get_by_locale() * @deprecated 2.4 Use get_by_locale()
*/ */