From ff6a3608a6f1e2db1634eddc190c79bc0b6c3510 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Fri, 19 Apr 2019 17:02:03 +0200 Subject: [PATCH] [mount] [networkcfg] [openrcdmcryptcfg] Translate module name --- src/modules/mount/main.py | 11 +++++++++++ src/modules/networkcfg/main.py | 11 +++++++++++ src/modules/openrcdmcryptcfg/main.py | 15 ++++++++++++++- 3 files changed, 36 insertions(+), 1 deletion(-) diff --git a/src/modules/mount/main.py b/src/modules/mount/main.py index 29d04e310..50b74b844 100644 --- a/src/modules/mount/main.py +++ b/src/modules/mount/main.py @@ -5,6 +5,7 @@ # # Copyright 2014, Aurélien Gâteau # Copyright 2017, Alf Gaida +# Copyright 2019, Adriaan de Groot # # Calamares is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -24,6 +25,16 @@ import subprocess import libcalamares +import gettext +_ = gettext.translation("calamares-python", + localedir=libcalamares.utils.gettext_path(), + languages=libcalamares.utils.gettext_languages(), + fallback=True).gettext + + +def pretty_name(): + return _("Mounting partitions.") + def mount_partitions(root_mount_point, partitions): """ diff --git a/src/modules/networkcfg/main.py b/src/modules/networkcfg/main.py index 05ebfb70b..5509be205 100644 --- a/src/modules/networkcfg/main.py +++ b/src/modules/networkcfg/main.py @@ -6,6 +6,7 @@ # Copyright 2014, Philip Müller # Copyright 2014, Teo Mrnjavac # Copyright 2017, Alf Gaida +# Copyright 2019, Adriaan de Groot # # Calamares is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -25,6 +26,16 @@ import shutil import libcalamares +import gettext +_ = gettext.translation("calamares-python", + localedir=libcalamares.utils.gettext_path(), + languages=libcalamares.utils.gettext_languages(), + fallback=True).gettext + + +def pretty_name(): + return _("Saving network configuration.") + def run(): """ diff --git a/src/modules/openrcdmcryptcfg/main.py b/src/modules/openrcdmcryptcfg/main.py index e8f901e15..20b306442 100644 --- a/src/modules/openrcdmcryptcfg/main.py +++ b/src/modules/openrcdmcryptcfg/main.py @@ -4,6 +4,7 @@ # === This file is part of Calamares - === # # Copyright 2017, Ghiunhan Mamut +# Copyright 2019, Adriaan de Groot # # Calamares is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -18,9 +19,21 @@ # You should have received a copy of the GNU General Public License # along with Calamares. If not, see . -import libcalamares import os.path +import libcalamares + +import gettext +_ = gettext.translation("calamares-python", + localedir=libcalamares.utils.gettext_path(), + languages=libcalamares.utils.gettext_languages(), + fallback=True).gettext + + +def pretty_name(): + return _("Configuring OpenRC dmcrypt service.") + + def write_dmcrypt_conf(partitions, root_mount_point, dmcrypt_conf_path): crypto_target = "" crypto_source = ""