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. Advertising

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:
    676
    Daniel Leidert
    May 28, 2005
  2. tiewknvc9
    Replies:
    2
    Views:
    853
    tiewknvc9
    Jan 18, 2006
  3. Herbert Straub

    Error, if compiled with -O3 (gettext)

    Herbert Straub, Jun 2, 2004, in forum: C++
    Replies:
    2
    Views:
    371
    Herbert Straub
    Jun 2, 2004
  4. Replies:
    9
    Views:
    957
  5. miamia
    Replies:
    1
    Views:
    165
    Thomas Jollans
    Jul 28, 2011
Loading...

Share This Page