Hi everyone, i don't know if "Simultaneous multi-language system" is
the correct way to say what i need... i'll explain myself.

I'm developing an application that by request of our customer, needs
to have 2 languages at the same time. For example, if this app were in
spanish and english, in the navigator should appear something like:

Casa / House

In the view we want to do something like this

{{=T("House", "es-es")}} / {{=T("House", "en-en")}}

But i don't know if web2py can permit to do this or something like
that.

I was thinking of writing a function like this:

def MultiT(text,separator=" / "):
    T.force("es-es")
    ret_text = T(text)
    T.force("en-en")
    ret_text += separator + T(text)
    return ret_text

But it does not work. Also, do not know how this affects the system
when updating the language files with the strings to translate (now
the files are updated automatically when pressing the "update
languages" button in admin, and I guess that it would make it on run
time.

Any sugestions?

Best regards
Daniel

Reply via email to