[horde] Turkish with php 5.5

B.Baransel BAĞCI bagcib at itu.edu.tr
Wed Sep 4 09:36:28 UTC 2013


Alinti Jan Schneider <jan at horde.org>

> Please don't top-post.
>
> Zitat von Hannes Werner <jgoethe at gmail.com>:
>> On Wed, Jul 17, 2013 at 12:55 PM, Hannes Werner <jgoethe at gmail.com> wrote:
>>
>>>
>>> On Wed, Jul 17, 2013 at 12:50 PM, Ralf Lang <lang at b1-systems.de> wrote:
>>>
>>>> horde-autoloader-cache-prune
>>>
>>>
>>>
>>> I can't find that file horde-autoloader-cache-prune, but I did restart
>>> apache several times.
>>>
>
>
>> This still is an issue with Horde 5.1.4.
>> Can I deliver information making analyse easier?
>>
>>
> *What* is an issue?

Horde function and class names are problematic with Turkish locale.

In config/nls.php:

/* Turkish locales. */
if (version_compare(PHP_VERSION, '6', 'ge')) {
     $horde_nls_config['aliases']['tr'] = 'tr_TR';
     $horde_nls_config['charsets']['tr_TR'] = (strpos(PHP_OS, 'BSD')  
=== false) ? 'ISO-8859-9' : 'ISO8859-9';
     $horde_nls_config['languages']['tr_TR'] = 'T&#xfc;rk&#xe7;e';
     $horde_nls_config['spelling']['tr_TR'] = '-d tr';
}


As you see, if php version is not great or equal to 6, Turkish locale  
is disabled. Main reason of this: translating function name to capital  
letters. In Turkish, "i" equal "İ", and "ı" equal "I" . So, when  
capitalize "function" it's "FUNCTİON" and there is nothing such that.

To work around this problem, we change the "setlocale" function to  
english.utf-8 in "/usr/share/pear/Horde/Registry.php". This is not the  
right solution, but it's the only way running Horde with php 5.x . If  
you search in the list, you can see what we've changed in this file.


-- 
B.Baransel BAĞCI
Istanbul Technical University
Office of Information Technologies
System Support Group
Linux System Administrator

ITU Linux Academy
Instructor
http://ila.itu.edu.tr

Tel: +90 212 285 39 30
Fax: +90 212 285 69 36



More information about the horde mailing list