I'm reviewing and improving the translations of a plugin . I have to
say that the code is quite fragile . Briefly , this is what I have :
- ${x} in a Genshi template
- x = _('string1') in code
- x = 'string2'
In all cases the i18n domain is the same . In some instances x is
already translated in code and displayed correctly ; other times it's
not translated hence English text is embedded .
However there's a chance for 'string2' to be available in the catalog
so I want to transform this into something like `${dgettext(d, x) if d
and dgettext else x}` and , by doing so, *all* translations associated
to the given domain vanish and only English texts are output but the
rest of the web site remains translated , as expected .
Has anybody experienced this before ? What can I do ? Any hints ?
--
Regards,
Olemis - @olemislc
Apache⢠Bloodhound contributor
http://issues.apache.org/bloodhound
http://blood-hound.net
Blog ES: http://simelo-es.blogspot.com/
Blog EN: http://simelo-en.blogspot.com/
Featured article:
--
You received this message because you are subscribed to the Google Groups "Trac
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/trac-dev.
For more options, visit https://groups.google.com/groups/opt_out.