mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 06:05:56 +00:00
MINOR Merged from trunk
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@77009 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
f27e284f5f
commit
5b53fda4e3
@ -95,7 +95,7 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
|
|||||||
} else {
|
} else {
|
||||||
$this->Locale = Translatable::default_locale();
|
$this->Locale = Translatable::default_locale();
|
||||||
}
|
}
|
||||||
Translatable::set_reading_locale($this->Locale);
|
Translatable::set_current_locale($this->Locale);
|
||||||
}
|
}
|
||||||
|
|
||||||
// collect languages for TinyMCE spellchecker plugin
|
// collect languages for TinyMCE spellchecker plugin
|
||||||
@ -1133,7 +1133,7 @@ JS;
|
|||||||
$record = $this->getRecord($originalLangID);
|
$record = $this->getRecord($originalLangID);
|
||||||
|
|
||||||
$this->Locale = $langCode;
|
$this->Locale = $langCode;
|
||||||
Translatable::set_reading_locale($langCode);
|
Translatable::set_current_locale($langCode);
|
||||||
|
|
||||||
// Create a new record in the database - this is different
|
// Create a new record in the database - this is different
|
||||||
// to the usual "create page" pattern of storing the record
|
// to the usual "create page" pattern of storing the record
|
||||||
|
Loading…
x
Reference in New Issue
Block a user