mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
MINOR Merged from trunk
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@76733 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
b5c024a87b
commit
413b73dc0d
@ -1247,18 +1247,7 @@ JS;
|
|||||||
* @return boolean
|
* @return boolean
|
||||||
*/
|
*/
|
||||||
function IsTranslatableEnabled() {
|
function IsTranslatableEnabled() {
|
||||||
return Translatable::is_enabled();
|
return Object::has_extension('SiteTree', 'Translatable');
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the name of the language that we are translating in
|
|
||||||
*/
|
|
||||||
function EditingLang() {
|
|
||||||
if(!Translatable::is_default_locale()) {
|
|
||||||
return i18n::get_locale_name(Translatable::current_locale());
|
|
||||||
} else {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user