문제

I want to use the localization feature of OpenSocial. But I want to set the used language manually. I only found prefs.getLang() to read the current language. Is there a possibility to set it also?

<Module>
<ModulePrefs>
    <Require feature="opensocial-0.9"/>
    <Require feature="embedded-experiences"/>
    <Require feature="dynamic-height"/>
    <Require feature="setprefs"/>
    <Locale lang="de" messages=".../locale/de_ALL.xml"/>
    <Locale lang="en" messages=".../locale/en_ALL.xml"/>
</ModulePrefs>
<UserPref ...

Thanks.

도움이 되었습니까?

해결책

It seems that the opensocial-container should choose the right locale by itself. Found no possibility to do it manually.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top