Python module for nice formatting of multi-value arguments in string templates.
-
Add
tmo
parent directory toPYTHONPATH
-
Load templates & start using
tmo
'sgettext
function:from tmo.core import tmo_engine, gettext tmo_engine.load_templates(TEMPLATES_ABSOLUTE_PATH) print(gettext(string_template_id, args, kw_arg1='arg1', kw_arg2='arg2'))