List Info

Thread: How to make i18ndude read Python files




How to make i18ndude read Python files
user name
2006-12-19 10:55:06
Hi,

I have a problem with i18ndude. I want it to read the
message strings 
from all Python files in Plone Software Center. When I use
this command 
(from PloneSoftwareCenter/i18n directory):

i18ndude rebuild-pot --pot psc-python.pot --create
plonesoftwarecenter 
../content/*.py

I get the following:

there were fatal errors (didn't touch psc-python.pot):
../content/__init__.py:
not well-formed (invalid token): line 1, column 161

When I look at __init__py, there is no line 1, colum 161.
since the line 
only contains three characters.

If I remove __init__.py from the directory, I get the same
error message 
with the next .py file.

Finn Gruwier Larsen
------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief surveys -
and earn cash
http://www.techsay.com/default.php?page=join
.php&p=sourceforge&CID=DEVDEV_______________________
________________________
Plone-i18n mailing list
Plone-i18nlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plone-i18n
How to make i18ndude read Python files
user name
2006-12-20 09:18:01
Finn Gruwier Larsen a écrit :
> Hi,
> 
> I have a problem with i18ndude. I want it to read the
message strings
> from all Python files in Plone Software Center. When I
use this command
> (from PloneSoftwareCenter/i18n directory):
> 
> i18ndude rebuild-pot --pot psc-python.pot --create
plonesoftwarecenter
> ../content/*.py

Hello,
Take a look into PloneTranslations/i18n/utils/. There are
clues that
explain how to make your script working in i18ngenerate.py

Regards,
-- 
Encolpe Degoute
INGENIWEB (TM) - S.A.S 50000 Euros - RC B 438 725 632
17 rue Louise Michel - 92300 Levallois Perret - France
web : www.ingeniweb.com - « les Services Web Ingénieux »

------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief surveys -
and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Plone-i18n mailing list
Plone-i18nlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plone-i18n
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )