diff --git a/src/modules/services-openrc/main.py b/src/modules/services-openrc/main.py index c3e14b481..34f80cdf2 100644 --- a/src/modules/services-openrc/main.py +++ b/src/modules/services-openrc/main.py @@ -6,7 +6,7 @@ # Copyright 2016, Artoo # Copyright 2017, Philip Müller # Copyright 2018, Artoo -# Copyright 2018, Adriaan de Groot +# Copyright 2018-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 @@ -27,6 +27,17 @@ from libcalamares.utils import target_env_call, warning from os.path import exists, join +import gettext +_ = gettext.translation("calamares-python", + localedir=libcalamares.utils.gettext_path(), + languages=libcalamares.utils.gettext_languages(), + fallback=True).gettext + + +def pretty_name(): + return _("Configure OpenRC services") + + class OpenrcController: """ This is the openrc service controller. diff --git a/src/modules/services-systemd/main.py b/src/modules/services-systemd/main.py index 09263b9f0..7367f988c 100644 --- a/src/modules/services-systemd/main.py +++ b/src/modules/services-systemd/main.py @@ -6,7 +6,7 @@ # Copyright 2014, Philip Müller # Copyright 2014, Teo Mrnjavac # Copyright 2017, Alf Gaida -# Copyright 2018, Adriaan de Groot +# Copyright 2018-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 +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 _("Configure systemd services") + + def systemctl(targets, command, suffix): """ For each entry in @p targets, run "systemctl ",