MCPcopy
hub / github.com/django/django / gettext

Function gettext

django/utils/translation/__init__.py:95–96  ·  view source on GitHub ↗
(message)

Source from the content-addressed store, hash-verified

93
94
95def gettext(message):
96 return _trans.gettext(message)
97
98
99def ngettext(singular, plural, number):

Callers 15

user_change_passwordMethod · 0.90
render_password_as_hashFunction · 0.90
clean_urlMethod · 0.90
__str__Method · 0.90
get_change_messageMethod · 0.90
inline_formset_dataMethod · 0.90
__init__Method · 0.90
timesinceFunction · 0.90
get_form_errorMethod · 0.90
yesnoFunction · 0.90

Calls

no outgoing calls

Tested by 12

test_empty_valueMethod · 0.72
test_safe_statusMethod · 0.72
test_maclinesMethod · 0.72
test_english_fallbackMethod · 0.72
assertGettextMethod · 0.72
test_django_fallbackMethod · 0.72
test_fuzzy_compilingMethod · 0.72