[horde] Horde Turkish Language

bagcib at itu.edu.tr bagcib at itu.edu.tr
Sat Jul 7 21:37:34 UTC 2012


Alinti Hannes Werner <jgoethe at gmail.com>

> Hello,
>
> I used to have Horde 3 running with Turkish language support although there
> is a php-bug for Turkish. Does anyone run Horde 4 with Turkish language
> support, does it work?
>

Yes, our webmail system is H4 and works with default turkish. But for  
this, we edit some of source fiiles.

First; edit "config/nls.php" and enable turkish settings (just comment  
if statement)

[root at server ~]# tail -n 7 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';
//}


Second, edit "/usr/share/pear/Horde/Registry.php" and overrite local  
setting ctype as utf8-eng

[root at server ~]# head -n 2517 /usr/share/pear/Horde/Registry.php | tail -n 9
         $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, 'en_US.UTF8');        // <------- this line
         } else {
             $changed = false;
         }


This configuration works. We use H4 with default turkish and no  
problem. This is not correct solution, but until php6, this way is  
usefull.

B.Baransel BAĞCI
İstanbul Technical University



More information about the horde mailing list