[owncloud-devel] Replacement for OC_L10N::forceLanguage
jmeile at hotmail.com
Mon Dec 14 09:33:48 GMT 2015
I looked at that issue, but it is not related to what I want to achieve.
"forceLanguage" isn't mentioned there. It is just talking about the language
about the personal settings of each user and a related bug.
I'm talking about the language of the login mask. In my App, I only want to
have English and German. "forceLanguage" was the way to achieve this.
I think that an app, or even an ownCloud setting, should be incorporated to
define the supported languages for your Cloud. Then some function like
"forceLanguage" should be used in case that the user's browser language
isn't defined in the preferred ownCloud languages. I will suggest something
like this in the official issue tracker. I really don't think that in a
company where the official languages are two, you need to include the whole
supported languages. This will work for big companies but not for small
From: devel-bounces at owncloud.org [mailto:devel-bounces at owncloud.org] On
Behalf Of Joas Schilling
Sent: Montag, 14. Dezember 2015 09:57
To: devel at owncloud.org
Subject: Re: [owncloud-devel] Replacement for OC_L10N::forceLanguage
There was a bug, that will be fixed in 8.1.5, 8.2.2 and 9.0
Am 12.12.2015 um 12:35 schrieb Josef Meile:
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.
Devel mailing list
Devel at owncloud.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Devel