From 274ac56f62b0227aa1dbb0ca77d0c9707334d1da Mon Sep 17 00:00:00 2001 From: Papoteur Date: Mon, 10 Dec 2018 22:06:00 +0100 Subject: Use Qt translation function --- qml/mageiawelcome.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'qml/mageiawelcome.py') diff --git a/qml/mageiawelcome.py b/qml/mageiawelcome.py index b0b4258..0303a1c 100644 --- a/qml/mageiawelcome.py +++ b/qml/mageiawelcome.py @@ -44,11 +44,11 @@ class ConfList(QAbstractListModel): desktop = os.getenv("XDG_CURRENT_DESKTOP") self.configuration = [ - {'name': _("Congratulations! You have completed the installation of {}").format(release)}, - {'name': _("You are using linux kernel: {}").format(kernel)}, - {'name': _("Your system architecture is: {}").format(arch)}, - {'name': _("You are now using the Desktop: {}").format(desktop)}, - {'name': _("Your user's id is: {}").format(os.getuid())}, + {'name': self.tr("Congratulations! You have completed the installation of {}").format(release)}, + {'name': self.tr("You are using linux kernel: {}").format(kernel)}, + {'name': self.tr("Your system architecture is: {}").format(arch)}, + {'name': self.tr("You are now using the Desktop: {}").format(desktop)}, + {'name': self.tr("Your user's id is: {}").format(os.getuid())}, ] def data(self, index, role=Qt.DisplayRole): -- cgit v1.2.1