... が簡単になります。翻訳者がメッセージファイルの中身を書き終わったら、それをコンパイルしなければなりません。このプロセスは GNU gettext ツー ルキットに依存しています。 これが済めば、 Django はユーザの言語設定に従って、オンザフライでアプリケーションを利用可能 ... どうやって言語の優先順位を検出するのか? を参照してください。 Python コードでの国際化 ¶ 標準的な翻訳 ¶ 翻訳対象の文字列を関数 gettext() で指定します。入力の手間を省くため、この関数は短い別名 _ としてインポートするのが慣例です。 注釈 Python の標準ライブラリ ... gettext モジュールは、グローバルの名前空間に _() という名前で gettext() をインストールします。 Django ではこの方法に従っていません ... ... が簡単になります。翻訳者がメッセージファイルの中身を書き終わったら、それをコンパイルしなければなりません。このプロセスは GNU gettext ツー ルキットに依存しています。 これが済めば、 Django はユーザの言語設定に従って、オンザフライでアプリケーションを利用可能 ... どうやって言語の優先順位を検出するのか? を参照してください。 Python コードでの国際化 ¶ 標準的な翻訳 ¶ 翻訳対象の文字列を関数 gettext() で指定します。入力の手間を省くため、この関数は短い別名 _ としてインポートするのが慣例です。 注釈 Python の標準ライブラリ ... gettext モジュールは、グローバルの名前空間に _() という名前で gettext() をインストールします。 Django ではこの方法に従っていません ... ... that they're aliases for: urllib.parse.quote() , quote_plus() , unquote() , and unquote_plus() . django.utils.translation.ugettext() , ugettext_lazy() , ugettext_noop() , ungettext() , and ungettext_lazy() are deprecated in favor of the functions that t ... hey're aliases for: django.utils.translation.gettext() , gettext_lazy() , gettext_noop() , ngettext() , and ngettext_lazy() . To limit creation of sessions and hence favor som ... ... aluated django.utils.csp.LazyNonce instance ( #36810 ). Fixed a regression in Django 6.0 where path() routes defined using gettext_lazy() failed to resolve correctly ( #36796 ). Fixed a regression in Django 6.0 where the Widget.use_fieldset attribute of ... ... that they're aliases for: urllib.parse.quote() , quote_plus() , unquote() , and unquote_plus() . django.utils.translation.ugettext() , ugettext_lazy() , ugettext_noop() , ungettext() , and ungettext_lazy() are deprecated in favor of the functions that t ... hey're aliases for: django.utils.translation.gettext() , gettext_lazy() , gettext_noop() , ngettext() , and ngettext_lazy() . To limit creation of sessions and hence favor som ... ... aluated django.utils.csp.LazyNonce instance ( #36810 ). Fixed a regression in Django 6.0 where path() routes defined using gettext_lazy() failed to resolve correctly ( #36796 ). Fixed a regression in Django 6.0 where the Widget.use_fieldset attribute of ... ... = "article-section" ), path ( "blog/" , include ( "blog.urls" )), ... , ] route ¶ The route argument should be a string or gettext_lazy() (see URL パターンを翻訳する ) that contains a URL pattern. The string may contain angle brackets (like <username> a ... . bio , name = "bio" ), re_path ( r "^blog/" , include ( "blog.urls" )), ... , ] The route argument should be a string or gettext_lazy() (see URL パターンを翻訳する ) that contains a regular expression compatible with Python's re module. Strings typica ... ... xtual markers and comments for translatable strings ¶ For translation strings with ambiguous meaning, you can now use the pgettext function to specify the context of the string. And if you just want to add some information for translators, you can also ... the different translations found on disk, namely: For translatable literals found in Python code and templates ( 'django' gettext domain): Priorities of translations included with applications listed in the INSTALLED_APPS setting were changed. To provi ... orresponding deprecated features section of this document. For translatable literals found in JavaScript code ( 'djangojs' gettext domain): Similarly to the 'django' domain translations: Overriding of translations shipped with applications by using the ... ... = "article-section" ), path ( "blog/" , include ( "blog.urls" )), ... , ] route ¶ The route argument should be a string or gettext_lazy() (see URL パターンを翻訳する ) that contains a URL pattern. The string may contain angle brackets (like <username> a ... . bio , name = "bio" ), re_path ( r "^blog/" , include ( "blog.urls" )), ... , ] The route argument should be a string or gettext_lazy() (see URL パターンを翻訳する ) that contains a regular expression compatible with Python's re module. Strings typica ... ... xtual markers and comments for translatable strings ¶ For translation strings with ambiguous meaning, you can now use the pgettext function to specify the context of the string. And if you just want to add some information for translators, you can also ... the different translations found on disk, namely: For translatable literals found in Python code and templates ( 'django' gettext domain): Priorities of translations included with applications listed in the INSTALLED_APPS setting were changed. To provi ... orresponding deprecated features section of this document. For translatable literals found in JavaScript code ( 'djangojs' gettext domain): Similarly to the 'django' domain translations: Overriding of translations shipped with applications by using the ... 2026年10月08日