mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-29 10:25:36 -04:00
Enable translation in Python modules
- covers all the remaining Python modules - most only get a translatable pretty name, some also return error messages
This commit is contained in:
parent
c364e4fc38
commit
e326b658ef
8 changed files with 101 additions and 13 deletions
|
@ -6,7 +6,7 @@
|
|||
# Copyright 2014-2015, Philip Müller <philm@manjaro.org>
|
||||
# Copyright 2015-2017, Teo Mrnjavac <teo@kde.org>
|
||||
# Copyright 2017, Alf Gaida <agaida@siduction.org>
|
||||
# Copyright 2017, Adriaan de Groot <groot@kde.org>
|
||||
# Copyright 2017, 2019, Adriaan de Groot <groot@kde.org>
|
||||
# Copyright 2017-2018, Gabriel Craciunescu <crazy@frugalware.org>
|
||||
#
|
||||
# Calamares is free software: you can redistribute it and/or modify
|
||||
|
@ -26,6 +26,16 @@ import libcalamares
|
|||
import os
|
||||
import re
|
||||
|
||||
import gettext
|
||||
_ = gettext.translation("calamares-python",
|
||||
localedir=libcalamares.utils.gettext_path(),
|
||||
languages=libcalamares.utils.gettext_languages(),
|
||||
fallback=True).gettext
|
||||
|
||||
|
||||
def pretty_name():
|
||||
return _("Configure GRUB.")
|
||||
|
||||
|
||||
def modify_grub_default(partitions, root_mount_point, distributor):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue