#219 Fix for language-problems on solaris

open
nobody
5
2006-10-09
2002-07-05
Anonymous
No

I had lot's of trouble getting gettext to work with php
on solaris8.
At the end I found out, that setting NLSPATH correctly
does help. So this if my suggested fix:
functions/i18n.php:
if ( !ini_get('safe_mode') &&
getenv( 'LC_ALL' ) != $sm_notAlias ) {
putenv( "LC_ALL=$sm_notAlias" );
putenv( "LANG=$sm_notAlias" );
+ putenv( "NLSPATH=../locale/%l");
putenv( "LANGUAGE=$sm_notAlias" );
}

Discussion

  • Tomas Kuliavas
    Tomas Kuliavas
    2003-12-26

    • assigned_to: nobody --> tokul
     
  • Logged In: YES
    user_id=285765

    Sounds reasonable. What do you think Tomas?

     
  • Tomas Kuliavas
    Tomas Kuliavas
    2005-04-05

    Logged In: YES
    user_id=225877

    We would have to modify NLSPATH on every bindtextdomain
    call. SquirrelMail uses more than one directory to store
    translations.

    I would rather remove NLSPATH setting. Check SunOS gettext
    manual. It uses directories that are set in NLSPATH only
    when this environment variable is set.

    Currently I am waiting for SF compile farm to become usable
    and will try to find some time to compile and test php on
    solaris, but I don't give any time estimates about
    resolution of this bug.

     
  • Tomas Kuliavas
    Tomas Kuliavas
    2006-10-09

    • assigned_to: tokul --> nobody