[dev] How to change Horde default language?

Khodayar Doustar khodayard at gmail.com
Sun Dec 20 10:29:14 UTC 2009


Hi,

Your solution was OK, it works even for existing users, and another solution
is to change line 15 of /config/nls.php ($nls['defaults']['language'] = '';)

My problem is with another software (POA) which I guess is controlling
Horde.

Thanks a lot.



On Fri, Dec 18, 2009 at 12:19 AM, Khodayar Doustar <khodayard at gmail.com>wrote:

> The same result with fr_FR, in addition, standard abbreviation for Farsi
> (Iran) according to nls.php is fa_IR :-(
>
> Thanks for your help :-)
>
>
> On Thu, Dec 17, 2009 at 6:19 PM, Luis Felipe Marzagao <
> lfbm.andamentos at gmail.com> wrote:
>
>> Hum, maybe because the correct value is not 'fa_IR'. You need to check
>> what does horde include on the prefs database when someone chooses the
>> desired language, and then hardcode the exact same value in the prefs.php.
>>
>> Khodayar Doustar escreveu:
>>
>>> New users would be good enough for me, but changing
>>>
>>> // user language
>>> $_prefs['language'] = array(
>>>    'value' => '',
>>>    'locked' => false,
>>>    'shared' => true,
>>>    'type' => 'select',
>>>    'escaped' => true,
>>>    'desc' => _("Select your preferred language:")
>>> );
>>>
>>> to:
>>>
>>> // user language
>>> $_prefs['language'] = array(
>>>    'value' => 'fa_IR',
>>>    'locked' => false,
>>>    'shared' => true,
>>>    'type' => 'select',
>>>    'escaped' => true,
>>>    'desc' => _("Select your preferred language:")
>>> );
>>>
>>>
>>> doesn't work for me. I am using Horde with MySQL, I have searched all of
>>> Horde tables, is there anything there I should change?
>>>
>>> Thanks.
>>> Khodayar
>>>
>>>
>>> On Thu, Dec 17, 2009 at 7:12 AM, Luis Felipe Marzagao <
>>> lfbm.andamentos at gmail.com <mailto:lfbm.andamentos at gmail.com>> wrote:
>>>
>>>    You really shouldn't mess with NLS.php, since it's a part of the
>>>    framework.
>>>
>>>    The solution I have proposed will not work for already existing
>>>    users, since that must already have a preference set for the
>>>    language. It will only work for new users.
>>>
>>>    So, if you want to change the default language for existing user,
>>>    simply log in as that user, go to preferences in horde menu, and
>>>    under display change the language.
>>>
>>>    If you do not wish to log in as that user, then you'll have to
>>>    manually change the value for that pref in the horde database.
>>>
>>>    Em 16-12-2009 13:43, Khodayar Doustar escreveu:
>>>
>>>>    Does it work for you? I applied this change in
>>>>
>>>>    lib/Horde/NLS.php    line 90
>>>>    config/prefs.php    line 288
>>>>
>>>>    And it does not work. I want horde to be in my locale after login.
>>>>
>>>>    Thanks a lot.
>>>>
>>>>
>>>>
>>>>    On Wed, Dec 16, 2009 at 4:06 PM, Luis Felipe Marzagao
>>>>    <lfbm.andamentos at gmail.com <mailto:lfbm.andamentos at gmail.com>>
>>>> wrote:
>>>>
>>>>        I think hardcoding the correct value in this variable in
>>>>        horde/config/prefs.php would do it:
>>>>
>>>>        $_prefs['language'] = array(
>>>>           'value' => '',
>>>>
>>>>        Em 15-12-2009 20:10, Khodayar Doustar escreveu:
>>>>
>>>>            Hi,
>>>>
>>>>            Does anybody know how to change Horde default language?
>>>>            So that you would be
>>>>            able to see Horde in your own language right after first
>>>>            login.
>>>>
>>>>            Thanks,
>>>>            Kh. Doustar
>>>>
>>>>
>>>>
>>>>
>>>>        --        Horde developers mailing list - Join the hunt:
>>>>        http://horde.org/bounties/
>>>>        Frequently Asked Questions: http://horde.org/faq/
>>>>        To unsubscribe, mail: dev-unsubscribe at lists.horde.org
>>>>        <mailto:dev-unsubscribe at lists.horde.org>
>>>>
>>>>
>>>>
>>>
>>>
>


More information about the dev mailing list