Internationalisation of bzr cli

Martin Ueding list at martin-ueding.de
Fri Apr 29 18:07:55 UTC 2011


Basically it is a simple task to do this, if there are no formated
strings with dynamic values.

	import gettext
	# setup gettext domain
		N_ = gettext.gettext

	with open(logfile) as file:
		for line in file:
			print(N_(line))

There are probably messages which have dynamic parts in it that cannot
be translated in that straightforward way. Can one use something like
scanf to parse them against the strings in the .po file?

Where are these logs located?


Martin

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 554 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/bazaar/attachments/20110429/63208169/attachment.pgp>


More information about the bazaar mailing list