[Bf-translations-svn] merge_po errors!
Yousef Hurfoush
bat3a at msn.com
Thu Nov 17 20:52:44 CET 2011
thanks now it works, :)
another thing:
do you have a way to split the po file into translated and untranslated po's?
Regards
Yousef Harfoush
bat3a at msn.com
Date: Thu, 17 Nov 2011 19:47:40 +0100
From: montagne29 at wanadoo.fr
To: bf-translations-svn at blender.org
Subject: Re: [Bf-translations-svn] merge_po errors!
Hi Yousef,
Yes, I coded (or at least, updated) that script using py3k, so it's
very unlikely to work with any py2 interpreter (among other things,
py3k assumes scripts are written in utf-8, if not said otherwise ;)
)...
The settings module import was not necessary, I just removed it from
that script. But you should note this script is no more standalone,
it needs at least the utils.py file found in the same directory...
And that module needs settings.py! Let me put a reminder about that
page:
http://wiki.blender.org/index.php/Dev:2.5/Doc/How_to/Translate_Blender
, which documents all i18n tools. It states that before using the
scripts in /po/tools, you must copy and rename settings_template.py
into settings.py, and optionally edit its values (but that should
not be necessary if you only use merge_po.py).
I hope all this will help you! :)
Regards,
Bastien
Le 17/11/2011 18:23, Yousef Hurfoush a écrit :
hi
i tried to use the merge_po.py script in tools to merge
my po-s with ar.po and got this error:
File
"Z:\Development\blender\BatProject\Gettext\merge_po.py",
line 25 SyntaxError: Non-ASCII character '\xe2' in file
merge_po.py on line 25, but no encoding declared; see
http://www.pytho
n.org/peps/pep-0263.html for details
the command i used (merge_po.py ar.po phase3.po)
so as advised by the later page i added to merge_po the
next line:
# -*- coding: utf-8 -*-
and the error is gone, but now i get the next error:
File "merge_po.py", line 34, in <module> import
settings
ImportError: No module named settings
can anyone help me with this? i used this script before
and it worked OK!
i use windows 7 x64 and python 2.6 x86 and x64, should i
install the 3.2 one?
Regards
Yousef Harfoush
bat3a at msn.com
_______________________________________________
Bf-translations-svn mailing list
Bf-translations-svn at blender.org
http://lists.blender.org/mailman/listinfo/bf-translations-svn
_______________________________________________
Bf-translations-svn mailing list
Bf-translations-svn at blender.org
http://lists.blender.org/mailman/listinfo/bf-translations-svn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.blender.org/pipermail/bf-translations-svn/attachments/20111117/268e090a/attachment.htm
More information about the Bf-translations-svn
mailing list