per page, with , order by , clip by
Results of 1 - 10 of about 24 for gettext (0.005 sec.)
翻訳 16263
翻訳 概要 Django プロジェクトを翻訳可能にするためには、Python コードやテンプレートに、多少のフックを加筆しなければなりません。このフックは 翻訳文字列 と呼ばれます。翻訳文字列は Django に「このテキストに対する翻訳が有効な場合、このテキストは ... が簡単になります。翻訳者がメッセージファイルの中身を書き終わったら、それをコンパイルしなければなりません。このプロセスは GNU gettext ツー ルキットに依存しています。 これが済めば、 Django はユーザの言語設定に従って、オンザフライでアプリケーションを利用可能 ... はどうやって言語の優先順位を検出するのか? を参照してください。 Python コードでの国際化 標準的な翻訳 翻訳対象の文字列を関数 gettext() で指定します。入力の手間を省くため、この関数は短い別名 _ としてインポートするのが慣例です。 注釈 Python の標準ライブラリ ... gettext モジュールは、グローバルの名前空間に _() という名前で gettext() をインストールします。 Django ではこの方法に従っていません ...
https://man.mtool.work/django/6.1/topics/i18n/translation.html
Django 6.0.1 release notes 8373
Django 6.0.1 release notes January 6, 2026 Django 6.0.1 fixes one data loss bug introduced in Django 5.2 as well as several other bugs in Django 6.0. バグ修正 Fixed a bug in Django 5.2 where data exceeding max_length was silently truncated ... 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 ...
https://man.mtool.work/django/6.1/releases/6.0.1.html
URLconf で使用するための django.urls 関数 8306
URLconf で使用するための django.urls 関数 path() path ( route , view , kwargs = None , name = None ) urlpatterns に含める要素を返します。例えば: from django.urls import include , path urlpatterns = [ path ( "index/" , views . index , name = ... e = "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 ...
https://man.mtool.work/django/6.1/ref/urls.html
Django 1.8.7 リリースノート 8306
Django 1.8.7 リリースノート November 24, 2015 Django 1.8.7 fixes a security issue and several bugs in 1.8.6. Additionally, Django's vendored version of six, django.utils.six , has been upgraded to the latest release (1.10.0). Fixed settings ... data loss possibility with Prefetch if to_attr is set to a ManyToManyField ( #25693 ). Fixed a regression in 1.8 by making gettext() once again return UTF-8 bytestrings on Python 2 if the input is a bytestring ( #25720 ). Fixed serialization of DateRang ...
https://man.mtool.work/django/6.1/releases/1.8.7.html
Django 3.0 リリースノート 8306
Django 3.0 リリースノート 2019年12月2日 Django 3.0 へようこそ! このリリースノートでは、 バージョン 3.0 の新機能 と、Django 2.2 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した機能 ... 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 ...
https://man.mtool.work/django/6.1/releases/3.0.html
Django 1.3 リリースノート 8240
Django 1.3 リリースノート March 23, 2011 Django 1.3 へようこそ! Nearly a year in the making, Django 1.3 includes quite a few new features and plenty of bug fixes and improvements to existing features. These release notes cover the new featu ... textual 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 ...
https://man.mtool.work/django/6.1/releases/1.3.html
アプリケーション 8173
アプリケーション Django には、設定の保存と調査の手段を提供するインストール済みアプリケーションのレジストリがあり、利用可能な モデル のリストもアクセスできます。 このレジストリは apps と呼ばれ、 django.apps で利用できます: >>> from django.ap ... リケーション設定やモデルモジュールのインポートが、アプリレジストリに依存するコードをトリガした場合に発生します。 たとえば、 gettext() はアプリケーションの翻訳カタログを検索するためにアプリレジストリを使います。インポート時に翻訳するには、代わりに gettext ... _lazy() が必要です。( gettext() を使うと、アクティブな言語に応じてリクエストごとに翻訳が行われるのではなく、インポート時に翻訳が行われるのでバグになりま ...
https://man.mtool.work/django/6.1/ref/applications.html
Django ユーティリティ (django.utils) 8173
Django ユーティリティ ( django.utils ) このドキュメントは、 django.utils のすべての安定したモジュールを対象としています。 django.utils 内のほとんどのモジュールは内部使用を目的としていることから、 内部リリース非推奨ポリシー に従い、以下に記載 ... 数は、フォーマットされる文字列です。例えば: from django.utils.text import format_lazy from django.utils.translation import pgettext_lazy urlpatterns = [ path ( format_lazy ( " {person} /<int:pk>/" , person = pgettext_lazy ( "URL" , "person" )), PersonDet ... トタイムゾーン に設定されます。 django.utils.translation 以下の使い方の完全な説明は、 翻訳ドキュメント を参照してください。 gettext ( message ) [ソース] message を翻訳し、文字列として返します。 pgettext ( context , message ) [ソース] context を考慮して m ... essage を翻訳し、文字列として返します。 詳しくは 文脈マーカー を参照してください。 gettext_lazy ( message ) pgettext_lazy ( context , message ) 上述の lazy ではないものと同じですが、遅延処理を使用します。 遅延翻訳 ...
https://man.mtool.work/django/6.1/ref/utils.html
Unit tests 8106
Unit tests Django comes with a test suite of its own, in the tests directory of the code base. It's our policy to make sure all tests pass at all times. We appreciate any and all contributions to the test suite! The Django tests all use the ... nja2 2.11+ numpy 1.26.0+ Pillow 10.1.0+ PyYAML 6.0.2+ pywatchman redis 5.1.0+ pymemcache , plus a supported Python binding gettext ( Windows での gettext ) selenium 4.23.0+ sqlparse 0.5.0+ (required) tblib 3.0.0+ You can find these dependencies in pip r ...
https://man.mtool.work/django/6.1/internals/contributing/writing-code/unit-tests...
国際化とローカライズ 8106
国際化とローカライズ 概要 国際化とローカライズの目的は、単一の Web アプリケーションが、閲覧者に合わせた言語や表示形式でコンテンツを提供できるようにすることです。 Django は テキスト翻訳 、 日時と数字の表示形式 、 タイムゾーン をフルサポートし ... 述することです。通常、翻訳者によって行われます。 より詳しくは、 W3C Web Internationalization FAQ 、 Wikipedia article 、 GNU gettext documentation をご覧ください。 警告 翻訳は USE_I18N 設定によって制御されます。しかし、これは国際化とローカライズを含んでい ...
https://man.mtool.work/django/6.1/topics/i18n/
PREV 1 2 3 NEXT