Hi Diez, Thanks for your help. I will check Babel functionalities. I've been looking over gettext documentation and it's possible to combine several files into one (what they call "compendia"). I don't care of the offline-ness of the process. In fact, I have several offline processes. Firstly, every time I made changes in the "core" and I want to merge them into the children apps.
Thanks a lot León On 16 jun, 09:27, "Diez B. Roggisch" <[email protected]> wrote: > On Jun 16, 2011, at 8:56 AM, León Domingo wrote: > > > Hi Michael, > > Thanks a lot for your effort. I lost my faith... ;-) > > > Git is not the problem. In fact I have already the same estructure for > > "controllers", "css's", etc. The "core" have the base functionality > > and every branch adds more with new controllers, new templates, etc, > > that don't interfere in the core ones. I mentioned GIT to give more > > information. > > > I may summarize my question like this: "Is it possible to have > > translation of your application for the same language in different > > files?" > > I don't think so. Or at least, not in the way you envision it. Because each > file comprises a 'domain', and at any given time, there is only one domain > active. So, while you can in fact have several domains in one application, > you need then to be explicit about which domain you want. > > http://docs.python.org/library/gettext.html > > Take a look at dgettext, that's what you need. > > The question is though if this is really that bad. My proposal would be this: > use Babel & it's excellent catalog-capabilities to read your various > PO-files, and combine them into *one*. > > thus, you can keep your translations organized separately, but gettext serves > only one. It's an offline-process of course (or at least easiest to implement > as such), but as such just one small step in the overall deployment. > > Diez -- 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.

