Dear list

 

My app: AgreeDisclaimer got broken with Owncloud 8.2.1 because the static
function: "OC_L10N::forceLanguage" was removed:

https://github.com/owncloud/core/commit/6b53f7c40e8bbaecfa20a3b19b3164e33290
3f59

 

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.

 

Best regards

Josef

_______________________________________________
Devel mailing list
[email protected]
http://mailman.owncloud.org/mailman/listinfo/devel

Reply via email to