mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
ENHANCEMENT Added ViewableData->i18nLocale, used in LeftAndMain.ss to determine interface language through meta tags
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@63564 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
cbc228f9a2
commit
ef7f988b3b
@ -802,6 +802,13 @@ class ViewableData extends Object implements IteratorAggregate {
|
||||
function IsAjax() {
|
||||
return Director::is_ajax();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string Locale configured in environment settings or user profile (e.g. 'en_US')
|
||||
*/
|
||||
function i18nLocale() {
|
||||
return i18n::get_locale();
|
||||
}
|
||||
|
||||
/**
|
||||
* Return a Debugger object.
|
||||
|
Loading…
x
Reference in New Issue
Block a user