[nvda] Re: Error generating translation file

Hi Cleverson,
I'm not currently sure how to get a language name from Windows with Python, so this is a bit tricky. For the moment, please try the following so we can check whether it works at all: * Copy your messages.mo file to locale\ptb\LC_MESSAGES\nvda.mo under the NVDA source directory. You will need to create all of these directories.
* In nvda.pyw, find the line:
gettext.install('nvda', localedir='locale', unicode=True)
* Above this line, insert the lines:
import os
os.environ['LANG'] = 'ptb'
Report back with your findings.

Jamie

Cleverson wrote:
James,

Thank you very much. I succeeded generating messages.mo in UTF-8 without those characters at the begining and msgfmt converted it successfully.

Now another question: does someone know where should I put this .mo file for gettext to detect it and translate the messages? I've put it at NVDA source directory but it didn't work, even after creating a lang directory inside source\ and putting messages.mo inside it.

Thanks,
Cleverson

--
James Teh
Email: jamie@xxxxxxxxxxx
WWW: http://www.jantrid.net/
MSN Messenger: jamie@xxxxxxxxxxx
Jabber: jteh@xxxxxxxxxx
Yahoo: jcs_teh
To post messages to the list send email to
nvda@xxxxxxxxxxxxx
To unsubscribe from the list send a blank message to:
nvda-request@xxxxxxxxxxxxx
with 'unsubscribe' in the Subject field.
Thank you for your continued support of Nonvisual Desktop Access, an open 
source free screen reader for Microsoft Windows:
http://www.kulgan.net/nvda/

Other related posts: