[owncloud-devel] Replacement for OC_L10N::forceLanguage
jmeile at hotmail.com
Sat Dec 12 11:35:29 GMT 2015
My app: AgreeDisclaimer got broken with Owncloud 8.2.1 because the static
function: "OC_L10N::forceLanguage" was removed:
I agree that static functions are ugly, but before there wasn't any other
way of achieving this.
I still need to force owncloud's language to a predefined set of languages
on my app. I do this in my app:
$container = $this->getContainer();
$server = $container->getServer();
$this->l10n = $server->getL10N($this->appName, $language);
However, it will set only the language for the application, but the rest of
ownCloud will use the browser preferred language. How can I force the
language for ownCloud?
Thanks in advanced.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Devel