... ,ERROR,WARNING,INFO,DEBUG} 0 以外のステータスでコマンドを終了させるメッセージレベルを指定します。デフォルトは ERROR です。 compilemessages django-admin compilemessages ビルトインの gettext サポートで使用できるように、 makemessages が作成した .po ファイルを .mo ... 場合、どのロケールも除外されません。 --use-fuzzy , -f fuzzy な翻訳 をコンパイルされたファイルに含めます 使用例: django-admin compilemessages --locale=pt_BR django-admin compilemessages --locale=pt_BR --locale=fr -f django-admin compilemessages -l pt_BR django-adm ... in compilemessages -l pt_BR -l fr --use-fuzzy django-admin compilemessages --exclude=pt_BR django-admin compilemessages --exclude=pt_BR --exc ... ... . count (), "name" : Report . _meta . verbose_name , "plural_name" : Report . _meta . verbose_name_plural , } django-admin compilemessages を実行すると、以下のエラーが発生するでしょう。 a format specification for argument 'name', as in 'msgstr[0]', doesn't exis ... ツールが用意してあり、これらのファイルの作成と保全を自動化します。 Gettext ユーティリティ makemessages コマンド (と後述する compilemessages ) は、GNU gettext ツールセットからのコマンドを使用します: xgettext 、 msgfmt 、 msgmerge 、 msguniq です。 サポートされてい ... 場合などに、あいまい (fuzzy) としてマークされた翻訳エントリーを生成することがあります。デフォルトでは、あいまいなエントリは compilemessages によって処理されません。 新しい翻訳文字列に対して全てのコードとテンプレートを再検査して 全ての 言語に対する全てのメッセージ ... ... ラインオプション --email createsuperuser コマンドラインオプション --empty makemigrations コマンドラインオプション --exclude compilemessages コマンドラインオプション dumpdata コマンドラインオプション loaddata コマンドラインオプション makemessages コマンドラインオ ... a コマンドラインオプション --geom-name ogrinspect コマンドラインオプション --ignore collectstatic コマンドラインオプション compilemessages コマンドラインオプション makemessages コマンドラインオプション --ignorenonexistent loaddata コマンドラインオプション --inc ... コマンドラインオプション --list showmigrations コマンドラインオプション --list-tags check コマンドラインオプション --locale compilemessages コマンドラインオプション makemessages コマンドラインオプション --managers sendtestemail コマンドラインオプション --mapping ... ... if ModelAdmin had ordering set (#21405). Removed mention of a feature in the --locale / -l option of the makemessages and compilemessages commands that never worked as promised: Support of multiple locale names separated by commas. It's still possible to speci ... ... pdata --output option allows specifying a file to which the serialized data is written. The new makemessages --exclude and compilemessages --exclude options allow excluding specific locales from processing. compilemessages now has a --use-fuzzy or -f option whi ... ... .ExceptionReporter subclass to customize the traceback text sent to site ADMINS when DEBUG is False . 管理コマンド The new compilemessages --ignore option allows ignoring specific directories when searching for .po files to compile. showmigrations --list now sh ... ... いました。 In addition, the development server automatically reloads when a translation file is updated, i.e. after running compilemessages . All HTTP requests are logged to the console, including requests for static files or favicon.ico that used to be filtered ... ... されました。また、対応するテンプレートフィルタ language_name_translated も追加します。 プロジェクトのルートディレクトリから compilemessages を実行し、 makemessages で作成したアプリのメッセージのすべてを検索できます。 makemessages now calls xgettext once per loca ... 2026年10月08日