Re: Digest for python-babel@googlegroups.com - 2 Messages in 1 Topic

8 views
Skip to first unread message

Sylvain Prat

unread,
Mar 23, 2012, 3:37:59 PM3/23/12
to python...@googlegroups.com
Thank you, this really helps. I did not know that domains were made for this.

Sylvain


> Felix Schwarz <felix....@oss.schwarz.eu> Mar 21 09:45PM +0100
>
> Hey,
>
> Am 21.03.2012 21:08, schrieb Sylvain Prat:
>> translations that uses an application framework which also have
>> translations. I'm wondering what is the best way to use both
>> translations in my application.
>
> That's what gettext 'domains' are for. Each component (framework, libraries)
> should use it's own domain and gettext will choose the right mo file at
> runtime. That way you can manage all translations in the context of their
> component and they will not interfer with each other.
>
> A real world example I'm working on is MediaCore which uses formencode.
> formencode has it's own validation messages + translations. By using
> different
> "domains" that's actually not a problem.
>
> fs


--
Sylvain PRAT
+33 06 78 71 51 21

Reply all
Reply to author
Forward
0 new messages