Django Book 翻译
菜单>:
TOC
返回
原文:
To create message files, you use the same ``make-messages.py`` tool as with the Django message files. You only need to be in the right place in the directory where either the ``conf/locale`` (in case of the source tree) or the ``locale/`` (in case of application messages or project messages) directory is located. And you use the same ``compile-messages.py`` to produce the binary ``django.mo`` files that are used by ``gettext`` .
翻译:
要创建信息文件,也是使用 ``make-messages.py`` 工具,和Django信息文件一样。需要做的就是改变到正确的目录下—— ``conf/locale`` (在源码树的情况下)或者 ``locale/`` (在应用程序信息或项目信息的情况下)所在的目录下。同样地,使用 ``compile-messages.py`` 生成 ``gettext`` 需要使用的二进制 ``django.mo`` 文件。
备注:
译者: