[RFC] I18N specification draft

Carlos Perelló Marín carlos.perello at canonical.com
Wed Aug 1 12:40:33 BST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'm handling some email lost in my INBOX, so I'm a bit late on this
discussion...

Martin Pool escribió:
>> Please take a look on my draft:
>> http://bazaar-vcs.org/DraftSpecs/I18nSupport
> 
> That looks great.
> 
> I don't know much about the translation side of it but I have some
> thoughts on the code changes.  I've cc'd Carlos, one of the authors of
> Rosetta, and maybe he can check your approach too from that aspect.

I don't have too much experience doing that for Python applications, but
 from what I saw in the spec there aren't too many python specific
details, so I think I could give some input.

> 
>> help for commands
> 
> .. and for other help topics too.
> 
>> One BIG issue for bzrlib -- it's usage docstring as help for commands.
> 
> I have no objection to changing this.  We have already changed most if
> not all exception classes.
> 
>> Internationalization of bzrlib should be transparent for others clients.
> 
> Meaning that bzrlib will use whatever locale is globally set without
> any special action by the client program?

Alexander already answered this one, but also, you will need to use two
different translation domains, one for bzrlib and another one for bzr
itself. That allows that other applications using bzrlib directly will
get the for free all translations from bzrlib and thus, they only need
to care about their own strings.

You can read more about how's that done in C programs from:

http://www.gnu.org/software/gettext/manual/html_node/Libraries.html#Libraries

I'm sure python has the same calls.

[...]

I'm going to answer Alexander's email directly for the other points...

Cheers.

- --
Carlos Perelló Marín
Ubuntu => http://www.ubuntu.com
mailto:carlos.perello at canonical.com
http://carlos.pemas.net
Alicante - Spain
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGsHEwEuPMamD5V9cRAs/GAJ0ZE1djJAjA4Gjq56xPRlQ9x+mh7QCgggtc
Q/JfAXqxKbldOtH71WP2Dbc=
=1IX9
-----END PGP SIGNATURE-----



More information about the bazaar mailing list