Gettext of variables

Discussion in 'Ruby' started by Matthew Hauck, Oct 30, 2006.

  1. Greetings!

    Basically, I would like to do the following:

    ---
    string = 'test string'
    puts _(string)
    ---

    But, it seems that gettext does not seem to work on variables, only on
    literals. I am a newbie to gettext. I can get it to translate literals
    fine. But it will not translate variables, even when I am sure that
    the value of the variable is indeed translated in the mo file.

    Any thoughts? Thanks!
     
    Matthew Hauck, Oct 30, 2006
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Daniel Leidert
    Replies:
    0
    Views:
    813
    Daniel Leidert
    May 28, 2005
  2. tiewknvc9
    Replies:
    2
    Views:
    1,049
    tiewknvc9
    Jan 18, 2006
  3. Herbert Straub

    Error, if compiled with -O3 (gettext)

    Herbert Straub, Jun 2, 2004, in forum: C++
    Replies:
    2
    Views:
    516
    Herbert Straub
    Jun 2, 2004
  4. Timo Benk

    OT: gettext with multiple textdomains

    Timo Benk, Sep 27, 2003, in forum: C Programming
    Replies:
    1
    Views:
    462
    Mike Wahler
    Sep 27, 2003
  5. ulysses
    Replies:
    3
    Views:
    613
    ulysses
    Nov 15, 2003
  6. ulysses

    gettext crazy question

    ulysses, Nov 21, 2003, in forum: Python
    Replies:
    7
    Views:
    504
    Martin v. =?iso-8859-15?q?L=F6wis?=
    Dec 5, 2003
  7. Replies:
    9
    Views:
    1,309
  8. miamia
    Replies:
    1
    Views:
    221
    Thomas Jollans
    Jul 28, 2011
Loading...