... が動作する方法のせいで、単一の文字列引数を持つ関数のみが _ として import できます。 gettext() gettext_lazy() この例では、 "Welcome to my site." というテキストが翻訳文字列としてマークされています: from django.http import HttpResponse from django.utils.tr ... anslation import gettext as _ def my_view ( request ): output = _ ( "Welcome to my site." ) return HttpResponse ( output ) 別名を付けなくても同じコードを書くことができます。次の例は、上の例とまったく ... django.http import HttpResponse from django.utils.translation import gettext def my_view ( request ): output = gettext ( "Welcome to my site." ) return HttpResponse ( output ) 翻訳は、計算済みの値に適用されます。次の例は、上の2つの例とまったく同一です: ... ... が動作する方法のせいで、単一の文字列引数を持つ関数のみが _ として import できます。 gettext() gettext_lazy() この例では、 "Welcome to my site." というテキストが翻訳文字列としてマークされています: from django.http import HttpResponse from django.utils.tr ... anslation import gettext as _ def my_view ( request ): output = _ ( "Welcome to my site." ) return HttpResponse ( output ) 別名を付けなくても同じコードを書くことができます。次の例は、上の例とまったく ... django.http import HttpResponse from django.utils.translation import gettext def my_view ( request ): output = gettext ( "Welcome to my site." ) return HttpResponse ( output ) 翻訳は、計算済みの値に適用されます。次の例は、上の2つの例とまったく同一です: ... ... プリケーションを用いたエコシステムは大きな強みの一つになります、ご支援お願いします! さぁ始めましょう ¶ Django encourages and welcomes new contributors, and makes an effort to help them become experienced, confident contributors to Open Source Software (OS ... 閉じる How can I help with development? リグレッションの bisect Reviewing patches We're looking forward to working with you. Welcome aboard! 目次 Django へのコントリビュート Communication channels Join the Django community さぁ始めましょう Django フレーム ... ... ears . Older tickets are old for a reason: they are usually still open because they are hard, contentious, or both. You're welcome to try one, but expect it to require a high degree of perseverance. Consider using the component filter option in Trac to ... ... プリケーションを用いたエコシステムは大きな強みの一つになります、ご支援お願いします! さぁ始めましょう ¶ Django encourages and welcomes new contributors, and makes an effort to help them become experienced, confident contributors to Open Source Software (OS ... 閉じる How can I help with development? リグレッションの bisect Reviewing patches We're looking forward to working with you. Welcome aboard! 目次 Django へのコントリビュート Communication channels Join the Django community さぁ始めましょう Django フレーム ... ... ears . Older tickets are old for a reason: they are usually still open because they are hard, contentious, or both. You're welcome to try one, but expect it to require a high degree of perseverance. Consider using the component filter option in Trac to ... ... : {# Translators: This is ignored #} {% trans "Translate me" %} {{ title }} {# Translators: Extracted and associated with 'Welcome' below #} < h1 > {% trans "Welcome" %} </ h1 > Quoting in reverse() ¶ When reversing URLs, Django didn't apply django.util ... ... active" , ) if user . username . startswith ( "b" ): raise ValidationError ( _ ( "Sorry, accounts starting with 'b' aren't welcome here." ), code = "no_b_users" , ) class BaseUserCreationForm [ソース] ¶ 新しいユーザを作成するための ModelForm です。これは ... ンスタンスか AnonymousUser のどちらか) はテンプレート変数 {{ user }} 内に格納されます: {% if user.is_authenticated %} < p > Welcome, {{ user.username }} . Thanks for logging in. </ p > {% else %} < p > Welcome, new user. Please log in. </ p > {% endif %} ... ... : {# Translators: This is ignored #} {% trans "Translate me" %} {{ title }} {# Translators: Extracted and associated with 'Welcome' below #} < h1 > {% trans "Welcome" %} </ h1 > Quoting in reverse() ¶ When reversing URLs, Django didn't apply django.util ... ... active" , ) if user . username . startswith ( "b" ): raise ValidationError ( _ ( "Sorry, accounts starting with 'b' aren't welcome here." ), code = "no_b_users" , ) class BaseUserCreationForm [ソース] ¶ 新しいユーザを作成するための ModelForm です。これは ... ンスタンスか AnonymousUser のどちらか) はテンプレート変数 {{ user }} 内に格納されます: {% if user.is_authenticated %} < p > Welcome, {{ user.username }} . Thanks for logging in. </ p > {% else %} < p > Welcome, new user. Please log in. </ p > {% endif %} ... 2026年10月08日