code-google-com / pyscripter

Automatically exported from code.google.com/p/pyscripter
1 stars 1 forks source link

Defect in Russian translation #647

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Change language to Russian
2.Create new module
3.Try to run this module

What is the expected output? What do you see instead?
UnicodeEncodeError: 'ascii' codec can't encode character in position 1-6: 
ordinal not in range(128)

What version of the product are you using? On what operating system?
Python Scripter 2.5.3.0 x86
Python 2.7 x86
Windows 7 x64 Russian 

Please provide any additional information below.
Error running non-ascii file with name "модуль*" 

Need to replace in file \locale\ru\LC_MESSAGES\default.mo offset:0x1B7C9 
D0BCD0BED0B4D183D0BBD18C with 6D6F64756C655F5F5F5F5F5F
(change russian "модуль" to english "module______"

And \locale\ru\LC_MESSAGES\default.po 
#. Programmer's name for it: SNonamePythonFileTitle
#: StringResources.pas:192
msgid "module"
msgstr "module"

Original issue reported on code.google.com by klevp...@gmail.com on 25 Apr 2012 at 8:20

GoogleCodeExporter commented 9 years ago
It will also work if you modify site.py.  See 
http://pyscripter.blogspot.com/2012/02/dreaded-unicode-encodedecode-errors.html 
for more info.

Original comment by pyscripter on 26 Apr 2012 at 1:26