Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ gettext
Method
gettext
Lib/gettext.py:291–294 ·
view source on GitHub ↗
(self, message)
Source
from the content-addressed store, hash-verified
289
self._fallback = fallback
290
291
def
gettext(self, message):
292
if
self._fallback:
293
return
self._fallback.gettext(message)
294
return
message
295
296
def
ngettext(self, msgid1, msgid2, n):
297
if
self._fallback:
Callers
2
test_null_translations_fallback
Method · 0.95
test_nested_fallbacks
Method · 0.95
Calls
1
gettext
Method · 0.45
Tested by
2
test_null_translations_fallback
Method · 0.76
test_nested_fallbacks
Method · 0.76