mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
added set_default_lang()
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@43656 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
ac8950e696
commit
c5ec4314b4
@ -103,6 +103,15 @@ class Translatable extends DataObjectDecorator {
|
||||
static function default_lang() {
|
||||
return self::$default_lang;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set default language.
|
||||
*
|
||||
* @paran $lang String
|
||||
*/
|
||||
static function set_default_lang($lang) {
|
||||
self::$default_lang = $lang;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check whether the default and current reading language are the same.
|
||||
|
Loading…
Reference in New Issue
Block a user