diff --git a/src/modules/dummypython/main.py b/src/modules/dummypython/main.py index 0e2c8b746..dc4275f07 100644 --- a/src/modules/dummypython/main.py +++ b/src/modules/dummypython/main.py @@ -34,9 +34,9 @@ import os from time import gmtime, strftime, sleep import gettext -_ = gettext.translation("python", - libcalamares.job.gettext_path, - libcalamares.globalstorage.gettext_languages(), +_ = gettext.translation("calamares-python", + localedir=libcalamares.job.gettext_path, + languages=libcalamares.globalstorage.gettext_languages(), fallback=True).gettext diff --git a/src/modules/machineid/main.py b/src/modules/machineid/main.py index 916a66d5e..2e9ccae22 100644 --- a/src/modules/machineid/main.py +++ b/src/modules/machineid/main.py @@ -25,9 +25,9 @@ import os from libcalamares.utils import check_target_env_call, debug import gettext -_ = gettext.translation("python", - libcalamares.job.gettext_path, - libcalamares.globalstorage.gettext_languages(), +_ = gettext.translan getion("calamares-python", + localedir=libcalamares.job.gettext_path, + languages=libcalamares.globalstorage.gettext_languages(), fallback=True).gettext