[nvda] Re: Error generating translation file

James,

I used SciTE text editor to write messages.po. I saved it as Unicode 
UTF-8, because some months ago, Mick encoded as UTF-8 another 
translation file I had made.

Brazilian Portuguese language can be written using the standard 
ISO-8859-1. Maybe I should try saving messages.po with ISO-8859-1 and 
converting it again, but I guess we need to determine a standard charset 
for NVDA (in case Mick agree of course), and UTF-8 apears to match the 
majority of languages.

How Do I use that parameter charset with msgfmt.py? I didn't find it in 
the help.

Thank you,
Cleverson
-----Mensagem Original----- 
De: "James Teh" <jamie@xxxxxxxxxxx>
Para: <nvda@xxxxxxxxxxxxx>
Enviada em: quinta-feira, 14 de dezembro de 2006 22:42
Assunto: [nvda] Re: Error generating translation file


Hi Cleverson,

It looks like that file contains a strange character (probably a charset
signifier) right at the start which is causing msgfmt to choke. What
charset are you using to save that file? If you don't know, what program
are you using and do you happen to know what charset PT-BR uses natively
(non-Unicode)? I don't think that is a UTF-8 encoded file. msgfmt does
have support for non-UTF-8 charsets, but you need to specify the charset
in the charset parameter.

Jamie


Cleverson wrote:
> Hello,
>
> I generated a file called messages.pot, containing all NVDA messages 
> for
> me to translate them to Brazilian Portuguese. For generating this, I
> commanded while at the source directory:
> pygettext.py *.py *\*.py
>
> Then I translated the messages, but I'm not sure I modified the file
> correctly. After then I renamed the file to messages.po and tryed to
> generate a messages.mo binary file commanding
> msgfmt.py messages
>
> But it returned me the following error:
>
> Traceback (most recent call last):
> File "C:\source\msgfmt.py", line 203, in <module>
> main()
> File "C:\source\msgfmt.py", line 199, in main
> make(filename, outfile)
> File "C:\source\msgfmt.py", line 151, in make
> l = eval(l)
> File "<string>", line 1
> # ACESSO NÃfO VISUAL AO AMBIENTE DE TRABALHO.
> ^
> SyntaxError: unexpected EOF while parsing
> C:\source>
>
> Follows attached my messages.po file. If someone have an idea how can 
> I
> solve this, thanks for letting me know.
>
> Cheers,
> 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! Acesso Grátis - Internet rápida e grátis. Instale 
o discador agora! 
http://br.acesso.yahoo.com
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: