Why can't I use 'django-admin.py makemessages -l cn'

Posted by zjm1126 on Stack Overflow See other posts from Stack Overflow or by zjm1126
Published on 2010-01-27T04:06:27Z Indexed on 2010/06/03 15:54 UTC
Read the original article Hit count: 281

Filed under:
|

print :

D:\zjm_code\register2>python D:\Python25\Lib\site-packages\django\bin\django-adm
in.py makemessages -l cn
Error: This script should be run from the Django SVN tree or your project or app
 tree. If you did indeed run it from the SVN checkout or your project or applica
tion, maybe you are just missing the conf/locale (in the django tree) or locale
(for project and application) directory? It is not created automatically, you ha
ve to create it by hand if you want to enable i18n for your project or applicati
on.

2.i made a locale directory ,and

D:\zjm_code\register2>python D:\Python25\Lib\site-packages\django\bin\django-adm
in.py makemessages -l cn
processing language cn
Error: errors happened while running xgettext on __init__.py
'xgettext' ?????????,?????????
???????

D:\Python25\lib\site-packages\django\core\management\base.py:234: RuntimeWarning
: tp_compare didn't return -1 or -2 for exception
  sys.exit(1)

3. ok

http://hi.baidu.com/zjm1126/blog/item/f28e09deced15353ccbf1a82.html

© Stack Overflow or respective owner

Related posts about python

Related posts about django