Python-i18n: trivial example adding _ to python jobs

- add to dummypython
 - also add to machineid
This commit is contained in:
Adriaan de Groot 2017-08-09 18:08:35 +09:00
parent b922d88b0f
commit 33bc669591
2 changed files with 35 additions and 3 deletions

View file

@ -22,8 +22,16 @@
import libcalamares
import os
from libcalamares.utils import check_target_env_call
from libcalamares.utils import check_target_env_call, debug
import gettext
_ = gettext.translation("python",
libcalamares.job.gettext_path,
libcalamares.globalstorage.gettext_languages(),
fallback=True).gettext
def pretty_name():
return _("Generate machine-id.")
def run():
"""