[modules] Translate name of services-* modules.
This commit is contained in:
parent
4178d5841c
commit
c9f89e2929
@ -6,7 +6,7 @@
|
|||||||
# Copyright 2016, Artoo <artoo@manjaro.org>
|
# Copyright 2016, Artoo <artoo@manjaro.org>
|
||||||
# Copyright 2017, Philip Müller <philm@manjaro.org>
|
# Copyright 2017, Philip Müller <philm@manjaro.org>
|
||||||
# Copyright 2018, Artoo <artoo@artixlinux.org>
|
# Copyright 2018, Artoo <artoo@artixlinux.org>
|
||||||
# Copyright 2018, Adriaan de Groot <groot@kde.org>
|
# Copyright 2018-2019, Adriaan de Groot <groot@kde.org>
|
||||||
#
|
#
|
||||||
# Calamares is free software: you can redistribute it and/or modify
|
# Calamares is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# 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
|
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:
|
class OpenrcController:
|
||||||
"""
|
"""
|
||||||
This is the openrc service controller.
|
This is the openrc service controller.
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
# Copyright 2014, Philip Müller <philm@manjaro.org>
|
# Copyright 2014, Philip Müller <philm@manjaro.org>
|
||||||
# Copyright 2014, Teo Mrnjavac <teo@kde.org>
|
# Copyright 2014, Teo Mrnjavac <teo@kde.org>
|
||||||
# Copyright 2017, Alf Gaida <agaida@siduction.org>
|
# Copyright 2017, Alf Gaida <agaida@siduction.org>
|
||||||
# Copyright 2018, Adriaan de Groot <groot@kde.org>
|
# Copyright 2018-2019, Adriaan de Groot <groot@kde.org>
|
||||||
#
|
#
|
||||||
# Calamares is free software: you can redistribute it and/or modify
|
# Calamares is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
@ -24,6 +24,17 @@
|
|||||||
import libcalamares
|
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):
|
def systemctl(targets, command, suffix):
|
||||||
"""
|
"""
|
||||||
For each entry in @p targets, run "systemctl <command> <thing>",
|
For each entry in @p targets, run "systemctl <command> <thing>",
|
||||||
|
Loading…
Reference in New Issue
Block a user