You are not logged in.

#1 2009-09-12 09:35:15

genisis300
Member
From: Uk
Registered: 2008-01-15
Posts: 284

Python + translations

Hi All,

I'm currently starting work on batterymon again and one of the things that has come up is the ability to have translations.

Does anyone know the correct way to-do this within python or could point me in the right direction.

Regards
Matthew


"is adult entertainment killing our children or is killing our children entertaining adults?" Marilyn Manson

Offline

#2 2009-09-12 12:47:30

gradgrind
Member
From: Germany
Registered: 2005-10-06
Posts: 921

Re: Python + translations

I'd suggest having a look at the gettext module. It might be a bit confusing at first, but I think once you've got hold of the basics and stick to those it's not too difficult. See http://docs.python.org/library/gettext. … -based-api. I think there are a few examples floating around on the internet and I've used it a couple of times so I might be able to help a little if you need it.

Offline

#3 2009-09-12 15:26:03

genisis300
Member
From: Uk
Registered: 2008-01-15
Posts: 284

Re: Python + translations

thanks that looks promising

Regards
Matthew


"is adult entertainment killing our children or is killing our children entertaining adults?" Marilyn Manson

Offline

Board footer

Powered by FluxBB