Hi, 

Thank you for the help. I did have configured the LOCALE_PATHS in 
setting.py, which looks:

 85 LOCALE_PATHS = (                                                       
                             
 86     os.path.join(os.path.dirname(__file__), 'locale').replace('\\', 
'/'),                           
 87 )

Any other ideas, please? Thanks.

Best,
Qian

在 2014年2月10日星期一UTC-6下午11时23分58秒,sacrac写道:
>
> hi maybe you need configure the setting put path for you locale dirs
>
> LOCALE_PATHS = (
>     os.path.join(SITE_ROOT,'locale'),
> )
>
> https://docs.djangoproject.com/en/dev/ref/settings/#locale-paths
>
> Cheers
>
>
> On Mon, Feb 10, 2014 at 9:44 PM, whitelotus <qiank...@gmail.com<javascript:>
> > wrote:
>
>>
>> Hi, all,
>>
>> To create the message file, I did "django-admin.py makemessages -l 
>> zh_CN". It popped out the following error which I couldn't find on the web. 
>> Could anyone tell me the reason why this happened, please? <app path> is 
>> the absolute app path which is right. I tried "touch <app 
>> path>/locale/django.pot", but it still complained the same error and it 
>> seemed that msguniq deleted this file. I also tried "django-admin.py 
>> makemessages --keep-pot -l zh_CN" which didn't work either. Thank you.
>>
>> processing locale zh_CN
>> CommandError: errors happened while running msguniq
>> msguniq: error while opening "<app path>/locale/django.pot" for reading: 
>> No such file or directory
>>  
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to django-users...@googlegroups.com <javascript:>.
>> To post to this group, send email to django...@googlegroups.com<javascript:>
>> .
>> Visit this group at http://groups.google.com/group/django-users.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/8ff2f353-7e26-4fcb-90a8-9e5d34e77399%40googlegroups.com
>> .
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/5e0476e6-150d-460f-874a-46af749c2d95%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to