2010-01-27 1 views
7

प्रिंट:मैं क्यों उपयोग नहीं कर सकते 'django-admin.py makemessages -l cn'

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 के लिए कोई स्थान निर्देशिका बनाया है, और

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. ठीक

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

उत्तर

8
  1. हैआपकी परियोजना या ऐप पेड़?
  2. क्या आपने निर्देशिका register2\\locale बनाया है?
+0

हाय, एलेक्स, मैं सवाल है, मेरी मदद करो एक नज़र havae लिए बदल गया है, – zjm1126

+0

@zjm, मैं जाहिरा तौर पर मेरी बात 2 के साथ अपने मूल समस्या हल कृपया, अब आप चीनी अक्षरों के साथ कुछ पूरी तरह से अलग त्रुटि हो रही है मैं पढ़ भी नहीं सकता है, मैं मदद नहीं कर सकता (ऐसा लगता है कि आपके '__init __। py' में गैर-असीसी भागों हैं, यदि ऐसा है तो मैं सुझाव देता हूं कि आप ऐसा न करें - लेकिन यह मेरे हिस्से पर एक अनुमान है)। –

+0

मेरे पास लोकेल फ़ोल्डर बनाया गया है, लेकिन मुझे यह त्रुटि मिलती है: 'CommandError: xgettext चलाने में त्रुटि। ध्यान दें कि Django अंतर्राष्ट्रीयकरण के लिए जीएनयू गेटटेक्स्ट 0.15 या नए की आवश्यकता है। मुझे यकीन नहीं है कि यह स्वयं में एक नया सवाल हो सकता है, लेकिन क्या आपके पास कोई संकेत है कि विंडोज़ पर जीएनयू गेटटेक्स्ट कैसे स्थापित करें? (Google को वास्तव में पता नहीं था: [) – shailenTJ

संबंधित मुद्दे