2006年08月05日 星期六 18:38
我使用poEdit翻译完后保存出现 some header fields still have the initial default value 这个问题是怎么引发的?该怎么解决?如果poedit不能解决,是否有别的将po转为mo的工具? -- My Blog >> http://leejd.cndev.org My QQ >> 9847243 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060805/7d63e560/attachment-0001.htm
2006年08月06日 星期日 13:29
这个问题limodou已经帮我解决了,是头部信息没有修改,使用默认的保存出错。
现在又遇到一个问题了,我放置mo文件在locale目录下面,然后执行:
manage.py runserver 192.168.1.2:8000
出现下面的错误。大概意思好像是取要翻译的信息出错了,请问该怎么处理?是不是mo文件的问题?如果删除mo文件和po文件,执行这个命令又是没有问题的。
E:\projects\Trunk\GridCRM>e:\python\python24\python manage.py runserver
192.168.
1.2:8000
Traceback (most recent call last):
File "manage.py", line 11, in ?
execute_manager(settings)
File "e:\python\python24\lib\site-packages\django-
0.95-py2.4.egg\django\core\m
anagement.py", line 1319, in execute_manager
execute_from_command_line(action_mapping, argv)
File "e:\python\python24\lib\site-packages\django-
0.95-py2.4.egg\django\core\m
anagement.py", line 1238, in execute_from_command_line
translation.activate('en-us')
File "e:\python\python24\lib\site-packages\django-
0.95-py2.4.egg\django\utils\
translation\trans_real.py", line 195, in activate
_active[currentThread()] = translation(language)
File "e:\python\python24\lib\site-packages\django-
0.95-py2.4.egg\django\utils\
translation\trans_real.py", line 184, in translation
default_translation = _fetch(settings.LANGUAGE_CODE)
File "e:\python\python24\lib\site-packages\django-
0.95-py2.4.egg\django\utils\
translation\trans_real.py", line 162, in _fetch
res = _merge(projectpath)
File "e:\python\python24\lib\site-packages\django-
0.95-py2.4.egg\django\utils\
translation\trans_real.py", line 148, in _merge
t = _translation(path)
File "e:\python\python24\lib\site-packages\django-
0.95-py2.4.egg\django\utils\
translation\trans_real.py", line 139, in _translation
t = gettext_module.translation('django', path, [loc], klass)
File "e:\python\python24\lib\gettext.py", line 465, in translation
t = _translations.setdefault(key, class_(open(mofile, 'rb')))
File "e:\python\python24\lib\site-packages\django-
0.95-py2.4.egg\django\utils\
translation\trans_real.py", line 56, in __init__
gettext_module.GNUTranslations.__init__(self, *args, **kw)
File "e:\python\python24\lib\gettext.py", line 177, in __init__
self._parse(fp)
File "e:\python\python24\lib\gettext.py", line 301, in _parse
plural = v[1].split('plural=')[1]
IndexError: list index out of range
在06-8-5,Gerald Lee <leejd80 at gmail.com> 写道:
>
> 我使用poEdit翻译完后保存出现
> some header fields still have the initial default value
> 这个问题是怎么引发的?该怎么解决?如果poedit不能解决,是否有别的将po转为mo的工具?
>
>
> --
> My Blog >> http://leejd.cndev.org
> My QQ >> 9847243
>
--
My Blog >> http://leejd.cndev.org
My QQ >> 9847243
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060806/696c4746/attachment.html
Zeuux © 2025
京ICP备05028076号