Sorry for the previous question, I think I'm doing something wrong
with **gettext**

My idea was that not translated strings, i mean the ones with "msgstr"
equals "", didn't need to be translated; the "msgid" was the
translation itself.

Obviously, I fill the "msgstr" for "en" version (it's equal to
"msgid"...) and I get the correct version of the string. I think that
I was using gettext incorrectly.

Sorry


On 28 abr, 16:58, León Domingo <[email protected]> wrote:
> Hi follks,
>
> I'm having some issues with translation. The thing is that I'm getting
> the translated version of a string instead of the "original" version
> of that string. In that same page I don't have this problem with other
> strings.
>
> For example,
>
> <body>
>    {{_('Name')}}
>    {{_('Surname')}}
> </body>
>
> *Notice that I'm using **Jinja2** instead of **Genshi** for templates.
>
> I have this **es** .po file
> #: myapp/templates/index.html:???
> msgid "Name"
> msgstr "Nombre"
>
> #: myapp/templates/index.html:???
> msgid "Surname"
> msgstr "Apellido"
>
> and I get this in English (en):
>
> Name     <-- ok, no translation
> Apellido  <-- this is the **es** version!!! why?
>
> and this one in Spanish (es)
>
> Nombre    <-- ok, **es** version
> Apellido    <-- ok, **es** version
>
> What can I check? What am I doing wrong?
>
> Thanks
>
> León

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en.

Reply via email to