MCPcopy Create free account
hub / github.com/archlinux/archinstall / _DeferredTranslation

Class _DeferredTranslation

archinstall/lib/translationhandler.py:262–273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260
261
262class _DeferredTranslation:
263 def __init__(self, message: str):
264 self.message = message
265
266 @override
267 def __str__(self) -> str:
268 if builtins._ is _DeferredTranslation: # type: ignore[attr-defined]
269 return self.message
270
271 # builtins._ is changed from _DeferredTranslation to GNUTranslations.gettext after
272 # Language.activate() is called
273 return builtins._(self.message) # type: ignore[attr-defined]
274
275
276def tr(message: str) -> str:

Callers 1

trFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected