【问题标题】:django translation: msgfmt: command not founddjango 翻译:msgfmt:找不到命令
【发布时间】:2019-05-02 11:31:56
【问题描述】:

我已经使用 wiki 脚本 (webfaction) 安装了 OSQA。现在我想编译一个消息文件,我得到以下错误:

django msgfmt command not found

命令+输出:

$ ls
apache2 bin lib osqa osqa.wsgi wfinstall.log

[rijkers@web303 hozburo]$ cd osqa
[rijkers@web303 osqa]$ ../bin/django-admin.py compilemessages
processing file django.po in /home/rijkers/webapps/hozburo/osqa/locale/bg/LC_MESSAGES sh: msgfmt: command not found

【问题讨论】:

    标签: django translation


    【解决方案1】:

    msgfmt 是一个程序。你需要在你的系统上安装它,这个 compilemessages 命令才能工作(至少据我所知)。

    您可能在某些 *nix 系统上,所以应该不会很难。只需使用您的包管理器并安装 gettext 包(或类似包)。

    【讨论】:

    • 谢谢,我的托管服务提供商承认错误地不在服务器上,所以这确实是问题所在。
    • this 和 this 答案的类似解决方案
    猜你喜欢
    • 2012-03-19
    • 2012-05-21
    • 2020-09-14
    • 1970-01-01
    • 1970-01-01
    • 2012-01-05
    • 2018-12-09
    • 2012-08-01
    • 2022-10-19
    相关资源
    最近更新 更多