[nvda] Re: Error generating translation file
- From: "Cleverson" <clever92000@xxxxxxxxxxxx>
- To: <nvda@xxxxxxxxxxxxx>
- Date: Fri, 15 Dec 2006 23:12:01 -0200
James,
I followed your instructions, created such directories, copied
messages.mo and renamed it to nvda.mo, and finally inserted those lines
into nvda.pyw.
Now when I run nvda.pyw, it opens and just closes quite imediately.
Debug.log is not modified nor re-saved, and stderr.log remains blank as
well.
Another suggestion ?
Thanks for helping,
Cleverson
-----Mensagem Original-----
De: "James Teh" <jamie@xxxxxxxxxxx>
Para: <nvda@xxxxxxxxxxxxx>
Enviada em: sexta-feira, 15 de dezembro de 2006 22:06
Assunto: [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/
_______________________________________________________
Yahoo! Mail - Sempre a melhor opção para você!
Experimente já e veja as novidades.
http://br.yahoo.com/mailbeta/tudonovo/
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/
- Follow-Ups:
- [nvda] Re: Error generating translation file
- From: James Teh
- References:
- [nvda] Error generating translation file
- From: Cleverson
- [nvda] Re: Error generating translation file
- From: James Teh
- [nvda] Re: Error generating translation file
- From: Cleverson
- [nvda] Re: Error generating translation file
- From: James Teh
- [nvda] Re: Error generating translation file
- From: Cleverson
- [nvda] Re: Error generating translation file
- From: James Teh
Other related posts:
- » [nvda] Error generating translation file
- » [nvda] Re: Error generating translation file
- » [nvda] Re: Error generating translation file
- » [nvda] Re: Error generating translation file
- » [nvda] Re: Error generating translation file
- » [nvda] Re: Error generating translation file
- » [nvda] Re: Error generating translation file
- » [nvda] Re: Error generating translation file
- [nvda] Re: Error generating translation file
- From: James Teh
- [nvda] Error generating translation file
- From: Cleverson
- [nvda] Re: Error generating translation file
- From: James Teh
- [nvda] Re: Error generating translation file
- From: Cleverson
- [nvda] Re: Error generating translation file
- From: James Teh
- [nvda] Re: Error generating translation file
- From: Cleverson
- [nvda] Re: Error generating translation file
- From: James Teh