[horde] Turkish with php 5.5

Hannes Werner jgoethe at gmail.com
Wed Sep 4 09:58:51 UTC 2013


On Wed, Sep 4, 2013 at 11:36 AM, B.Baransel BAĞCI <bagcib at itu.edu.tr> wrote:

>
> 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.
>
>
>
@Baransal: Current Horde enables Turkish if php 5.5.x or above is in use.

@Jan: The error is in the first message of this thread. Parts of it is:
exception 'ReflectionException' with message 'Class IMP_Factory_Imap does
not exist' in /usr/share/php/Horde/Injector/Binder/Implementation.php:61
Stack trace: #0
/usr/share/php/Horde/Injector/Binder/Implementation.php(61):
ReflectionClass->__construct('IMP_Factory_Ima...') #1
/usr/share/php/Horde/Injector/Binder/AnnotatedSetters.php(69):
Horde_Injector_Binder_


More information about the horde mailing list