David Sagnol wrote:
> Hi,
>
> Find attached a first patch that add internationalization support in
> Freevo. It's main purpose is to enclose strings between '_(...)' for all
> the strings displayed on screen.
> For example, the string:
> return 'Directory on disc [%s]' % self.media.label
> is replaced by:
> return _('Directory on disc [%s]') % self.media.label
Thanks, I will integrate it this weekend, but I have some questions
before that:
> To support internationalization, we have to add a directory 'locale' in
> freevo (cf. attached file freevo_locale.tgz).
Where? Only on the freevo, or in freevo/src and in all subdirectories?
I guess gettext('freevo') has something to do with this. And do you
know how to install language settings with a python setup script?
> This directory contains the .mo files that translate english strings
> in the supported language.
This is a binary file. How do you create it? I guess it has something
to do with the po file. There is also a freevo.pot. It contains line
numbers I guess. Do I have to change this file everytime I change the
src file?
> Please note that, for the moment, all the strings read from the XML
> files are not translated... I try to find a solution that would prevent
> us to have as many version of an xml file as we have different supported
> languages.
That would be great. I don't want different xml files for each
language, it will be a pain if I want to add a small thing. But you
know exacly when you expect a text string and the texts inself are
fixed in the fxd.
Dischi
--
multitasking = screwing up several things at once
-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0
_______________________________________________
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel