mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-27 09:25:36 -04:00
Python-i18n: trivial example adding _ to python jobs
- add to dummypython - also add to machineid
This commit is contained in:
parent
b922d88b0f
commit
33bc669591
2 changed files with 35 additions and 3 deletions
|
@ -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():
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue