mambabase: added UI translation for italian

This commit is contained in:
Silvan Calarco 2021-09-19 13:01:24 +02:00
parent bd5b0af2ce
commit 8e8e6ea159
7 changed files with 248 additions and 7 deletions

View File

@ -1,5 +1,5 @@
# Makefile for desktop-base-openmamba package
# Copyright (C) 2004-2020 by Silvan Calarco <silvan.calarco@mambasoft.it>
# Copyright (C) 2004-2021 by Silvan Calarco <silvan.calarco@mambasoft.it>
# Copyright (C) 2005-2007 by Davide Madrisan <davide.madrisan@gmail.com>
include VERSION
@ -140,6 +140,7 @@ install-locales: locales
$(INSTALL_DIR) $$dir;\
$(INSTALL_DATA) $${f/.po/.mo} $$dir/openmamba-update.mo;\
done
@lrelease mambabase/mambabase_it.ts -qm $(DESTDIR)$(datadir)/locale/it/LC_MESSAGES/mambabase.qm
install-kde-distro-addons: dist-update
@$(INSTALL_DIR) $(DESTDIR)$(sysconfdir)

View File

@ -117,7 +117,7 @@ background-color: rgb(255, 255, 255);</string>
</rect>
</property>
<property name="text">
<string>Broadcom B43 proprietary firmarwe from openwrt.org</string>
<string>Broadcom B43 proprietary firmware from openwrt.org</string>
</property>
</widget>
<widget class="QCheckBox" name="inst_msttcf">

View File

@ -90,7 +90,7 @@
<item>
<widget class="QLabel" name="label_2">
<property name="text">
<string>&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-2020 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;</string>
<string>&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;</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>

View File

@ -2,11 +2,9 @@
# Copyright (c) 2019-2021 by Silvan Calarco <silvan.calarco@mambasoft.it>
# Release under the terms of the GPL version 3 license
from PyQt5 import QtCore
from PyQt5 import QtGui
from PyQt5 import QtGui, QtCore, QtWidgets, uic
from PyQt5.QtCore import pyqtProperty
from PyQt5 import QtCore, QtWidgets
from PyQt5 import QtWidgets, uic
from PyQt5.QtCore import QLocale, QTranslator
from pathlib import Path
import gettext
import subprocess
@ -354,6 +352,15 @@ if __name__ == '__main__':
import sys
app = QtWidgets.QApplication(sys.argv)
app.setWindowIcon(QtGui.QIcon(DATADIR + "mambabase.png"))
# UI translations
locale = QLocale.system().name()
language = locale[0:2]
qtTranslator = QTranslator()
if qtTranslator.load("mambabase", "/usr/share/locale/" + locale + "/LC_MESSAGES/"):
app.installTranslator(qtTranslator)
elif qtTranslator.load("mambabase", "/usr/share/locale/" + language + "/LC_MESSAGES/"):
app.installTranslator(qtTranslator)
# PY translations
gettext.install('mambabase', '/usr/share/locale')
wizard = MambabaseWizard()
wizard.show()

147
mambabase/mambabase_it.ts Normal file
View File

@ -0,0 +1,147 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="it_IT">
<context>
<name>Form</name>
<message>
<location filename="FinishPage.ui" line="20"/>
<location filename="InstallationPage.ui" line="20"/>
<location filename="SelectExtraPage.ui" line="20"/>
<location filename="SelectGroupsPage.ui" line="20"/>
<location filename="WelcomePage.ui" line="20"/>
<source>Form</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="FinishPage.ui" line="60"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p align=&quot;center&quot;&gt;&lt;span style=&quot; font-size:14pt; font-weight:600;&quot;&gt;Installation completed.&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 align=&quot;center&quot;&gt;&lt;span style=&quot; font-size:14pt; font-weight:600;&quot;&gt;Installazione completata.&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="FinishPage.ui" line="105"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;If you ran into problems, please check the installation log below for warnings or errors and send the report to the openmamba community at &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>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Se incontri dei problemmi per favore verifica i messaggi di avviso o errore riportati nel registro di installazione sottostante ed invia un report usando l&apos;apposito form sul sito &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;</translation>
</message>
<message>
<location filename="InstallationPage.ui" line="60"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p align=&quot;center&quot;&gt;&lt;span style=&quot; font-size:14pt; font-weight:600;&quot;&gt;Installation in progress...&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 align=&quot;center&quot;&gt;&lt;span style=&quot; font-size:14pt; font-weight:600;&quot;&gt;Installazione in corso...&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="InstallationPage.ui" line="133"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;Installation details:&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-weight:600;&quot;&gt;Dettagli dell&apos;installazione:&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="SelectExtraPage.ui" line="60"/>
<location filename="SelectGroupsPage.ui" line="60"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;Please, select from the boxes below the components that you want to install or update from network.&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-weight:600;&quot;&gt;Per favore, seleziona usando i checkbox sottostanti i componenti che desideri installare o aggiornare dalla rete.&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="SelectExtraPage.ui" line="79"/>
<source>Proprietary software installations/updates</source>
<translation>Installazione/aggiornamento di componenti software proprietari</translation>
</message>
<message>
<location filename="SelectExtraPage.ui" line="91"/>
<source>NVIDIA proprietary video driver (autodetected) from openmamba.org</source>
<translation>Driver video proprietario NVIDIA (rilevato automaticamente) da openmamba.org</translation>
</message>
<message>
<location filename="SelectExtraPage.ui" line="107"/>
<source>Broadcom-sta proprietary wireless driver from openmamba.org</source>
<translation>Driver wireless proprietario Broadcom-sta da openmamba.org</translation>
</message>
<message>
<location filename="SelectExtraPage.ui" line="120"/>
<source>Broadcom B43 proprietary firmware from openwrt.org</source>
<translation>Firmware proprietario per Broadcom B43 da openwrt.org</translation>
</message>
<message>
<location filename="SelectExtraPage.ui" line="133"/>
<source>MS TrueType core fonts from sourceforge</source>
<translation>MS TrueType core fonts da sourceforge</translation>
</message>
<message>
<location filename="SelectExtraPage.ui" line="146"/>
<source>VirtualBox extension pack from virtualbox.org</source>
<translation>VirtualBox extension pack da virtualbox.org</translation>
</message>
<message>
<location filename="SelectExtraPage.ui" line="159"/>
<source>Widevine extension from google.com</source>
<translation>Estensione Widevine da google.com</translation>
</message>
<message>
<location filename="SelectGroupsPage.ui" line="79"/>
<source>openmamba installations/updates</source>
<translation>Installazioni/aggiornamenti di openmamba</translation>
</message>
<message>
<location filename="SelectGroupsPage.ui" line="91"/>
<source>System base packages (recommended)</source>
<translation>Pacchetti base di sistema (raccomandato)</translation>
</message>
<message>
<location filename="SelectGroupsPage.ui" line="107"/>
<source>Office packages (OpenOffice, ...)</source>
<translation>Pacchetti per l&apos;ufficio (OpenOffice, ...)</translation>
</message>
<message>
<location filename="SelectGroupsPage.ui" line="120"/>
<source>Audio and Video players (VLC, kaffeine, ...)</source>
<translation>Player audio e video (VLC, kaffeine, ...)</translation>
</message>
<message>
<location filename="SelectGroupsPage.ui" line="133"/>
<source>Multimedia editing and production (kino, audacity, rosegarden, mixxx, ...)</source>
<translation>Editing e produzione multimediale (kino, audacity, rosegarden, mixxx, ...)</translation>
</message>
<message>
<location filename="SelectGroupsPage.ui" line="146"/>
<source>Internet communication and p2p</source>
<translation>Internet, comunicazioni e p2p</translation>
</message>
<message>
<location filename="SelectGroupsPage.ui" line="159"/>
<source>Graphics software (gimp, digikam, blender, krita)</source>
<translation>Software per la grafica (gimp, digikam, blender, krita)</translation>
</message>
<message>
<location filename="SelectGroupsPage.ui" line="172"/>
<source>Emulation and virtualization (VirtualBox, wine)</source>
<translation>Emulazione e virtualizzazione (VirtualBox, wine)</translation>
</message>
<message>
<location filename="SelectGroupsPage.ui" line="185"/>
<source>Base server packages (Apache, PHP, MariaDB, ...)</source>
<translation>Base di pacchetti per server web (Apache, PHP, MariaDB, ...)</translation>
</message>
<message>
<location filename="SelectGroupsPage.ui" line="198"/>
<source>Games (tuxracer, pingus, ksudoku, ...)</source>
<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>
</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 properietary 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"/>
<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>
</context>
</TS>

85
mambabase/po/messages.pot Normal file
View File

@ -0,0 +1,85 @@
# 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.
#
#: _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"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: mambabase.py:338
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
msgid "Checking installed extra components..."
msgstr ""
#: mambabase.py:62
msgid "Checking installed packages..."
msgstr ""
#: mambabase.py:68
msgid "Done. Please, press the Next button to continue."
msgstr ""
#: mambabase.py:201 mambabase.py:202
msgid "Installation finished!"
msgstr ""
#: mambabase.py:179 mambabase.py:180
#, python-format
msgid "Installing %s extra component..."
msgstr ""
#: mambabase.py:150 mambabase.py:151
#, python-format
msgid "Installing %s group packages..."
msgstr ""
#: mambabase.py:218
#, python-format
msgid "Installing %s package (%s)..."
msgstr ""
#: mambabase.py:166
#, python-format
msgid "Installing package %s"
msgstr ""
#: mambabase.py:159
#, python-format
msgid "Package %s is already installed"
msgstr ""
#: mambabase.py:97 mambabase.py:98
msgid "Starting installation..."
msgstr ""
#: mambabase.py:118 mambabase.py:119
msgid "Updating installed packages..."
msgstr ""
#: mambabase.py:102 mambabase.py:103
msgid "Updating packages list..."
msgstr ""
#: mambabase.py:290
#, python-format
msgid "WARNING: package %s from group %s not found in repositories"
msgstr ""
#: mambabase.py:33
msgid "openmamba base network installations"
msgstr ""

View File

@ -1,3 +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