[horde] turkish language problem

Jan Schneider jan at horde.org
Fri Oct 14 16:04:45 UTC 2011


Zitat von Sevinç Cömertoğlu <comertoglu at itu.edu.tr>:

> -----Original Message-----
> From: horde-bounces at lists.horde.org [mailto:horde-bounces at lists.horde.org]
> On Behalf Of Jan Schneider
> Sent: Tuesday, October 11, 2011 4:49 PM
> To: horde at lists.horde.org
> Subject: Re: [horde] turkish language problem
>
>
> Zitat von Sevinç Cömerto?lu <comertoglu at itu.edu.tr>:
>
>>> By using Horde 4.0.9, i have problems with Turkish translation. When
>>> Turkish language option is chosen page becomes blank and httpd/error_log
> shows:
>>>
>>>
>>>
>>> [Tue Oct 11 14:29:51 2011] [error] [client 160.75.5.120] PHP Fatal error:
>>> Call to undefined method Horde_Cli::runningFromCLI() in
>>> /usr/share/pear/Horde.php on line 154
>>>
>>>
>>>
>>> i have emailed this kind of problem before and it's said that a php
> problem.
>>> Is this also a php problem? Is there any way to use horde 4.0.9 and
>>> PHP 5.3 with Turkish characters.
>
>> No, PHP is broken.
>
>> Jan.
>
>
> Hi all,
>
> i think we have found a solution to our problem, not tested deeply. By the
> view of http://bugs.horde.org/ticket/5555  we have edited the file
> /usr/share/pear/Horde/Registry.php (line 2480) as seen below:
>
> $lang_charset = $lang . '.UTF-8';
>         if (setlocale(LC_ALL, $lang_charset)) {
>             putenv('LC_ALL=' . $lang_charset);
>             putenv('LANG=' . $lang_charset);
>             putenv('LANGUAGE=' . $lang_charset);
> setlocale(LC_CTYPE, 'C');                      //Added line
>
> After this change we have successfully logged in without errors and can see
> Turkish characters correct. Only "Log out" translation is seemed with
> question marks.
> Does this solution make sense  to you?

No, because this breaks locale specific character conversion for  
example. Especially you Turkish guys are affected, because you know  
that upper case i is not always I. ;-)

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the horde mailing list