From df37c51c1e02726e7cabd1f5fe58d2a0f366fc19 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Fri, 19 Apr 2019 16:39:41 +0200 Subject: [PATCH] [bootloader] [hwclock] Translate module name --- src/modules/bootloader/main.py | 13 ++++++++++++- src/modules/hwclock/main.py | 12 ++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/src/modules/bootloader/main.py b/src/modules/bootloader/main.py index f64d412f1..77b030f9d 100644 --- a/src/modules/bootloader/main.py +++ b/src/modules/bootloader/main.py @@ -11,7 +11,7 @@ # Copyright 2015-2018, Philip Mueller # Copyright 2016-2017, Teo Mrnjavac # Copyright 2017, Alf Gaida -# Copyright 2017-2018, Adriaan de Groot +# Copyright 2017-2019, Adriaan de Groot # Copyright 2017, Gabriel Craciunescu # Copyright 2017, Ben Green # @@ -37,6 +37,17 @@ import libcalamares from libcalamares.utils import check_target_env_call +import gettext +_ = gettext.translation("calamares-python", + localedir=libcalamares.utils.gettext_path(), + languages=libcalamares.utils.gettext_languages(), + fallback=True).gettext + + +def pretty_name(): + return _("Install bootloader.") + + def get_uuid(): """ Checks and passes 'uuid' to other routine. diff --git a/src/modules/hwclock/main.py b/src/modules/hwclock/main.py index 9cac929ba..f18cf12a9 100644 --- a/src/modules/hwclock/main.py +++ b/src/modules/hwclock/main.py @@ -7,6 +7,7 @@ # Copyright 2014, Teo Mrnjavac # Copyright 2017, Alf Gaida # Copyright 2017-2018, Gabriel Craciunescu +# 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 @@ -23,6 +24,17 @@ 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 _("Setting hardware clock.") + + def run(): """ Set hardware clock.