MCPcopy Create free account
hub / github.com/bleachbit/bleachbit / get_text

Function get_text

bleachbit/Language.py:414–424  ·  view source on GitHub ↗

Return translated string The name has an underscore to avoid conflicting with gettext module.

(str)

Source from the content-addressed store, hash-verified

412
413
414def get_text(str):
415 """Return translated string
416
417 The name has an underscore to avoid conflicting with gettext module.
418 """
419 global attempted_setup_translation, t
420 if not attempted_setup_translation:
421 setup_translation()
422 if not t:
423 return str
424 return t.gettext(str)
425
426
427def nget_text(singular, plural, n):

Callers 4

test_get_text_allMethod · 0.90
test_get_text_auMethod · 0.90

Calls 1

setup_translationFunction · 0.85

Tested by 4

test_get_text_allMethod · 0.72
test_get_text_auMethod · 0.72