setlocale problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • jim

    #1

    setlocale problem

    Hello,

    I've got a problem with the setlocale function.

    This is my code (test.php) :
    ------------------
    echo setlocale(LC_AL L, 'fr');
    echo "<br />" ;
    echo bindtextdomain( 'fr-FR', './lang') ;
    echo "<br />" ;
    echo textdomain('fr-FR') ;
    echo "<hr />" ;
    echo gettext('test') ;
    ------------------

    in my PO file, I have (lang/fr/LC_MESSAGES/fr-FR.po) :
    ------------------
    msgid "test"
    msgstr "voici un test"
    ------------------

    It works perfectly on my machine under windows and this is what I get :
    ------------------
    French_France.1 252
    C:\websites\myw ebsite\test\get text\lang
    fr-FR
    voici un test
    ------------------

    My problem is that it doesn't work on a website hosted with Linux. This is
    what I get :
    ------------------
    (an empty line)
    /mnt/120/sdb/d/c/webshell/gettext/lang
    fr-FR
    test
    ------------------

    I can't get it done properly. Can you help me please ?

    Thank you in advance,

    --
    jim


Working...