#59 Gettext version short or long codes

OPT_0.9.X
closed-out-of-date
None
5
2006-09-10
2002-08-09
Anonymous
No

Hello:
I still have a problem with translations. I have found
that my gettext system does not operates correctly by
specifing only "en" it needs the long code of gettext
such as "en_US".
I have found comments about this in:
http://www.php.net/manual/en/function.gettext.php

Does someone could let me know what version of
gettext are you running? Provided that you are using
translations.
My gettext version is 0.10.36

The alternative is to change tables (fields are 2 chars
long) and maybe some code, but I would not like to
personalize code to keep the posibility of doing updates
of the code.

Best regards and thanks: Javier

Discussion

  • Nobody/Anonymous

    Logged In: NO

    I have found a "dirty" solution for this. As the language I
    needed is spanish, I added some lines
    into /include/general.php.
    Lines added inside the function OPT_locale
    from line 594:
    if ($lang=="es") {
    $lang="es_ES";
    }
    After this, translations started to work for spanish.
    However, Im not sure about what can happen with the rest of
    the application. This is not a good solution. May be a way to
    configure gettext to accept two letters country codes? OPT
    must be adapted to new gettext versions with long country
    codes?

    Best regards: Javier

    By the way: Im running SuSE linux 7.2

     
  • Bogdan Stancescu

    Logged In: YES
    user_id=341406

    OPT will be adapted to use long language codes - that's
    indeed the correct way to do things actually. Thank you for
    the notification!

     
  • Bogdan Stancescu

    • assigned_to: nobody --> b_stancescu
     
  • Johannes Alfänger

    Logged In: YES
    user_id=260003

    Thanks Javier! It worked for my German translation just the
    same way! Johannes

     
  • Anonymous - 2003-06-27
    • milestone: --> OPT_0.9.X
     
  • Martin Vernooij

    Martin Vernooij - 2006-09-10

    Logged In: YES
    user_id=608879

    As the 0.9 versions are not supported anymore, this report
    is out-of-date. The Max branch may suffer from similar
    issues, but these should then be reported seperately.

    Martin

     
  • Martin Vernooij

    Martin Vernooij - 2006-09-10
    • status: open --> closed-out-of-date
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks