Translations with distro name placeholders

This commit is contained in:
Silvan Calarco 2022-06-19 12:11:50 +02:00
parent 1c726d62bb
commit 67c2c54a27
7 changed files with 66 additions and 58 deletions

View File

@ -76,7 +76,7 @@ background-color: rgb(255, 255, 255);</string>
<string notr="true">background-color: rgb(239, 240, 241);</string>
</property>
<property name="title">
<string>openmamba installations/updates</string>
<string>{} installations/updates</string>
</property>
<widget class="QCheckBox" name="inst_base">
<property name="geometry">

View File

@ -118,7 +118,7 @@
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<widget class="QLabel" name="label_4">
<widget class="QLabel" name="mainTextLabel">
<property name="geometry">
<rect>
<x>10</x>
@ -128,7 +128,7 @@
</rect>
</property>
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;This program will complete the installation by adding the minimum recommended set of packages to the system. Additionally it will let you install, upon selection, macro-group of packages and proprietary software components.&lt;/p&gt;&lt;p&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;TIP&lt;/span&gt;: you may run this program at any time from the &lt;span style=&quot; font-style:italic;&quot;&gt;openmamba control center&lt;/span&gt; on the tray icon bar.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;This program will complete the installation by adding the minimum recommended set of packages to the system. Additionally it will let you install, upon selection, macro-group of packages and proprietary software components.&lt;/p&gt;&lt;p&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;TIP&lt;/span&gt;: you may run this program at any time from the &lt;span style=&quot; font-style:italic;&quot;&gt;{} control center&lt;/span&gt; on the tray icon bar.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>

View File

@ -23,9 +23,15 @@ class MambabaseWizard(QtWidgets.QWizard):
super(MambabaseWizard, self).__init__(parent)
self.welcomePage = WelcomePage(self)
self.welcomePage.distroInfoLabel.setText(distro.name(pretty=True))
self.welcomePage.mainTextLabel.setText(
self.welcomePage.mainTextLabel.text().format(distro.name()))
self.addPage(self.welcomePage)
self.selectGroupsPage = SelectGroupsPage(self)
self.selectGroupsPage.groupBox.setTitle(
self.selectGroupsPage.groupBox.title().format(distro.name()))
self.addPage(self.selectGroupsPage)
self.selectExtraPage = SelectExtraPage(self)
self.addPage(self.selectExtraPage)
self.installationPage = InstallationPage(self)

View File

@ -10,7 +10,7 @@
<location filename="SelectGroupsPage.ui" line="20"/>
<location filename="WelcomePage.ui" line="20"/>
<source>Form</source>
<translation type="unfinished"></translation>
<translation>Form</translation>
</message>
<message>
<location filename="FinishPage.ui" line="60"/>
@ -75,8 +75,9 @@
</message>
<message>
<location filename="SelectGroupsPage.ui" line="79"/>
<source>openmamba installations/updates</source>
<translation>Installazioni/aggiornamenti di openmamba</translation>
<source>{} installations/updates</source>
<oldsource>openmamba installations/updates</oldsource>
<translation>Installazioni/aggiornamenti di {}</translation>
</message>
<message>
<location filename="SelectGroupsPage.ui" line="91"/>
@ -124,24 +125,23 @@
<translation>Giochi (tuxracer, pingus, ksudoku, ...)</translation>
</message>
<message>
<location filename="WelcomePage.ui" line="93"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-style:italic;&quot;&gt;mambabase - Copyright (c) 2007-2021 by Silvan Calarco&lt;br/&gt;Released under the terms of the GNU GPL v3 license&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-style:italic;&quot;&gt;mambabase - Copyright (c) 2007-2021 by Silvan Calarco&lt;br/&gt;Rilasciato secondo i termini della licenza GNU GPL v3&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
<translation type="vanished">&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-style:italic;&quot;&gt;mambabase - Copyright (c) 2007-2021 by Silvan Calarco&lt;br/&gt;Rilasciato secondo i termini della licenza GNU GPL v3&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="WelcomePage.ui" line="103"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;a href=&quot;https://openmamba.org&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#2980b9;&quot;&gt;openmamba.org&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation></translation>
</message>
<message>
<location filename="WelcomePage.ui" line="141"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;This program will complete the installation by adding the minimum recommended set of packages to the system. Additionally it will let you install, upon selection, macro-group of packages and proprietary software components.&lt;/p&gt;&lt;p&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;TIP&lt;/span&gt;: you may run this program at any time from the &lt;span style=&quot; font-style:italic;&quot;&gt;openmamba control center&lt;/span&gt; on the tray icon bar.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Questa applicazione completerà l&apos;installazione aggiungendo al sistema un set minimo di pacchetti raccomandati. In aggiunta permette di installare, se selezionati, gruppi di pacchetti e componenti proprietari aggiuntivi.&lt;/p&gt;&lt;p&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;TIP&lt;/span&gt;: puoi eseguire questa applicazione in qualunque momento dal &lt;span style=&quot; font-style:italic;&quot;&gt;centro di controllo di openmamba&lt;/span&gt; sulla barra delle icone.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
<translation type="vanished">&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Questa applicazione completerà l&apos;installazione aggiungendo al sistema un set minimo di pacchetti raccomandati. In aggiunta permette di installare, se selezionati, gruppi di pacchetti e componenti proprietari aggiuntivi.&lt;/p&gt;&lt;p&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;TIP&lt;/span&gt;: puoi eseguire questa applicazione in qualunque momento dal &lt;span style=&quot; font-style:italic;&quot;&gt;centro di controllo di openmamba&lt;/span&gt; sulla barra delle icone.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="WelcomePage.ui" line="160"/>
<location filename="WelcomePage.ui" line="93"/>
<location filename="WelcomePage.ui" line="150"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation></translation>
</message>
<message>
<location filename="WelcomePage.ui" line="131"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;This program will complete the installation by adding the minimum recommended set of packages to the system. Additionally it will let you install, upon selection, macro-group of packages and proprietary software components.&lt;/p&gt;&lt;p&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;TIP&lt;/span&gt;: you may run this program at any time from the &lt;span style=&quot; font-style:italic;&quot;&gt;{} control center&lt;/span&gt; on the tray icon bar.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Questa applicazione completerà l&apos;installazione aggiungendo al sistema un set minimo di pacchetti raccomandati. In aggiunta permette di installare, se selezionati, gruppi di pacchetti e componenti proprietari aggiuntivi.&lt;/p&gt;&lt;p&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;TIP&lt;/span&gt;: puoi eseguire questa applicazione in qualunque momento dal &lt;span style=&quot; font-style:italic;&quot;&gt;centro di controllo di {}&lt;/span&gt; sulla barra delle icone.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
</context>
</TS>

View File

@ -3,20 +3,20 @@
# This file is distributed under the same license as the mambabase package.
# Silvan Calarco <silvan.calarco@mambasoft.it>, 2021.
#
#: _from_rc.cc:3 _from_rc.cc:4 _from_rc.cc:5 _from_rc.cc:12 _from_rc.cc:42
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-09-19 11:05+0100\n"
"POT-Creation-Date: 2022-06-19 12:04+0200\n"
"Last-Translator: Silvan Calarco <silvan.calarco@mambasoft.it>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: mambabase.py:338
#: mambabase.py:344
msgid ""
"<html><head/><body><p align=\"center\"><span style=\"font-size:14pt; font-"
"weight:600;\">All done!</span></p></body></html>"
@ -24,64 +24,65 @@ msgstr ""
"<html><head/><body><p align=\"center\"><span style=\"font-size:14pt; font-"
"weight:600;\">Tutto fatto!</span></p></body></html>"
#: mambabase.py:65
#: mambabase.py:71
msgid "Checking installed extra components..."
msgstr "Controllo dei componenti aggiuntivi installati..."
#: mambabase.py:62
#: mambabase.py:68
msgid "Checking installed packages..."
msgstr "Controllo dei pacchetti installati..."
#: mambabase.py:68
#: mambabase.py:74
msgid "Done. Please, press the Next button to continue."
msgstr "Fatto. Premi il pulsante Successivo per continuare."
#: mambabase.py:201 mambabase.py:202
#: mambabase.py:207 mambabase.py:208
msgid "Installation finished!"
msgstr "Installazione terminata!"
#: mambabase.py:179 mambabase.py:180
#: mambabase.py:185 mambabase.py:186
#, python-format
msgid "Installing %s extra component..."
msgstr "Installazione del componente aggiuntivo %s..."
#: mambabase.py:150 mambabase.py:151
#: mambabase.py:156 mambabase.py:157
#, python-format
msgid "Installing %s group packages..."
msgstr "Installazione del gruppo di pacchetti %s..."
#: mambabase.py:218
#: mambabase.py:224
#, python-format
msgid "Installing %s package (%s)..."
msgstr "Installazione del pacchetto %s (%s)..."
#: mambabase.py:166
#: mambabase.py:172
#, python-format
msgid "Installing package %s"
msgstr "Installazione del pacchetto %s"
#: mambabase.py:159
#: mambabase.py:165
#, python-format
msgid "Package %s is already installed"
msgstr "Il pacchetto %s è già installato"
#: mambabase.py:97 mambabase.py:98
#: mambabase.py:103 mambabase.py:104
msgid "Starting installation..."
msgstr "Avvio dell'installazione..."
#: mambabase.py:118 mambabase.py:119
#: mambabase.py:124 mambabase.py:125
msgid "Updating installed packages..."
msgstr "Aggiornamento dei pacchetti installati in corso..."
#: mambabase.py:102 mambabase.py:103
#: mambabase.py:108 mambabase.py:109
msgid "Updating packages list..."
msgstr "Aggiornamento della lista dei pacchetti..."
#: mambabase.py:290
#: mambabase.py:296
#, python-format
msgid "WARNING: package %s from group %s not found in repositories"
msgstr "AVVISO: il pacchetto %s del gruppo %s non è stato trovato nei repository"
msgstr ""
"AVVISO: il pacchetto %s del gruppo %s non è stato trovato nei repository"
#: mambabase.py:33
#: mambabase.py:39
msgid "openmamba base network installations"
msgstr "Installazione di componenti dalla rete"

View File

@ -1,85 +1,86 @@
# mambabase translations
# Copyright (C) 2021 Silvan Calarco <silvan.calarco@mambasoft.it>
# This file is distributed under the same license as the mambabase package.
# Silvan Calarco <silvan.calarco@mambasoft.it>, 2021.
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#: _from_rc.cc:3 _from_rc.cc:4 _from_rc.cc:5 _from_rc.cc:12 _from_rc.cc:42
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-09-19 11:05+0100\n"
"Last-Translator: Silvan Calarco <silvan.calarco@mambasoft.it>\n"
"POT-Creation-Date: 2022-06-19 12:04+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
#: mambabase.py:338
#: mambabase.py:344
msgid ""
"<html><head/><body><p align=\"center\"><span style=\"font-size:14pt; font-"
"weight:600;\">All done!</span></p></body></html>"
msgstr ""
#: mambabase.py:65
#: mambabase.py:71
msgid "Checking installed extra components..."
msgstr ""
#: mambabase.py:62
#: mambabase.py:68
msgid "Checking installed packages..."
msgstr ""
#: mambabase.py:68
#: mambabase.py:74
msgid "Done. Please, press the Next button to continue."
msgstr ""
#: mambabase.py:201 mambabase.py:202
#: mambabase.py:207 mambabase.py:208
msgid "Installation finished!"
msgstr ""
#: mambabase.py:179 mambabase.py:180
#: mambabase.py:185 mambabase.py:186
#, python-format
msgid "Installing %s extra component..."
msgstr ""
#: mambabase.py:150 mambabase.py:151
#: mambabase.py:156 mambabase.py:157
#, python-format
msgid "Installing %s group packages..."
msgstr ""
#: mambabase.py:218
#: mambabase.py:224
#, python-format
msgid "Installing %s package (%s)..."
msgstr ""
#: mambabase.py:166
#: mambabase.py:172
#, python-format
msgid "Installing package %s"
msgstr ""
#: mambabase.py:159
#: mambabase.py:165
#, python-format
msgid "Package %s is already installed"
msgstr ""
#: mambabase.py:97 mambabase.py:98
#: mambabase.py:103 mambabase.py:104
msgid "Starting installation..."
msgstr ""
#: mambabase.py:118 mambabase.py:119
#: mambabase.py:124 mambabase.py:125
msgid "Updating installed packages..."
msgstr ""
#: mambabase.py:102 mambabase.py:103
#: mambabase.py:108 mambabase.py:109
msgid "Updating packages list..."
msgstr ""
#: mambabase.py:290
#: mambabase.py:296
#, python-format
msgid "WARNING: package %s from group %s not found in repositories"
msgstr ""
#: mambabase.py:33
#: mambabase.py:39
msgid "openmamba base network installations"
msgstr ""

View File

@ -1,4 +1,4 @@
#!/bin/bash
xgettext -s -o - mambabase.py --output=po/messages.pot
msgmerge --update --no-fuzzy-matching --backup=off po/it.po po/messages.pot
lupdate *.ui -ts mambabase_it.ts
lupdate-qt5 *.ui -ts mambabase_it.ts