mambabase: added UI translation for italian
This commit is contained in:
parent
bd5b0af2ce
commit
8e8e6ea159
3
Makefile
3
Makefile
@ -1,5 +1,5 @@
|
|||||||
# Makefile for desktop-base-openmamba package
|
# 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>
|
# Copyright (C) 2005-2007 by Davide Madrisan <davide.madrisan@gmail.com>
|
||||||
|
|
||||||
include VERSION
|
include VERSION
|
||||||
@ -140,6 +140,7 @@ install-locales: locales
|
|||||||
$(INSTALL_DIR) $$dir;\
|
$(INSTALL_DIR) $$dir;\
|
||||||
$(INSTALL_DATA) $${f/.po/.mo} $$dir/openmamba-update.mo;\
|
$(INSTALL_DATA) $${f/.po/.mo} $$dir/openmamba-update.mo;\
|
||||||
done
|
done
|
||||||
|
@lrelease mambabase/mambabase_it.ts -qm $(DESTDIR)$(datadir)/locale/it/LC_MESSAGES/mambabase.qm
|
||||||
|
|
||||||
install-kde-distro-addons: dist-update
|
install-kde-distro-addons: dist-update
|
||||||
@$(INSTALL_DIR) $(DESTDIR)$(sysconfdir)
|
@$(INSTALL_DIR) $(DESTDIR)$(sysconfdir)
|
||||||
|
@ -117,7 +117,7 @@ background-color: rgb(255, 255, 255);</string>
|
|||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Broadcom B43 proprietary firmarwe from openwrt.org</string>
|
<string>Broadcom B43 proprietary firmware from openwrt.org</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QCheckBox" name="inst_msttcf">
|
<widget class="QCheckBox" name="inst_msttcf">
|
||||||
|
@ -90,7 +90,7 @@
|
|||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="label_2">
|
<widget class="QLabel" name="label_2">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string><html><head/><body><p><span style=" font-style:italic;">mambabase - Copyright (c) 2007-2020 by Silvan Calarco<br/>Released under the terms of the GNU GPL v3 license</span></p></body></html></string>
|
<string><html><head/><body><p><span style=" font-style:italic;">mambabase - Copyright (c) 2007-2021 by Silvan Calarco<br/>Released under the terms of the GNU GPL v3 license</span></p></body></html></string>
|
||||||
</property>
|
</property>
|
||||||
<property name="alignment">
|
<property name="alignment">
|
||||||
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
|
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
|
||||||
|
@ -2,11 +2,9 @@
|
|||||||
# Copyright (c) 2019-2021 by Silvan Calarco <silvan.calarco@mambasoft.it>
|
# Copyright (c) 2019-2021 by Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||||
# Release under the terms of the GPL version 3 license
|
# Release under the terms of the GPL version 3 license
|
||||||
|
|
||||||
from PyQt5 import QtCore
|
from PyQt5 import QtGui, QtCore, QtWidgets, uic
|
||||||
from PyQt5 import QtGui
|
|
||||||
from PyQt5.QtCore import pyqtProperty
|
from PyQt5.QtCore import pyqtProperty
|
||||||
from PyQt5 import QtCore, QtWidgets
|
from PyQt5.QtCore import QLocale, QTranslator
|
||||||
from PyQt5 import QtWidgets, uic
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
import gettext
|
import gettext
|
||||||
import subprocess
|
import subprocess
|
||||||
@ -354,6 +352,15 @@ if __name__ == '__main__':
|
|||||||
import sys
|
import sys
|
||||||
app = QtWidgets.QApplication(sys.argv)
|
app = QtWidgets.QApplication(sys.argv)
|
||||||
app.setWindowIcon(QtGui.QIcon(DATADIR + "mambabase.png"))
|
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')
|
gettext.install('mambabase', '/usr/share/locale')
|
||||||
wizard = MambabaseWizard()
|
wizard = MambabaseWizard()
|
||||||
wizard.show()
|
wizard.show()
|
||||||
|
147
mambabase/mambabase_it.ts
Normal file
147
mambabase/mambabase_it.ts
Normal 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><html><head/><body><p align="center"><span style=" font-size:14pt; font-weight:600;">Installation completed.</span></p></body></html></source>
|
||||||
|
<translation><html><head/><body><p align="center"><span style=" font-size:14pt; font-weight:600;">Installazione completata.</span></p></body></html></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="FinishPage.ui" line="105"/>
|
||||||
|
<source><html><head/><body><p>If you ran into problems, please check the installation log below for warnings or errors and send the report to the openmamba community at <a href="https://openmamba.org"><span style=" text-decoration: underline; color:#2980b9;">openmamba.org</span></a>.</p></body></html></source>
|
||||||
|
<translation><html><head/><body><p>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'apposito form sul sito <a href="https://openmamba.org"><span style=" text-decoration: underline; color:#2980b9;">openmamba.org</span></a>.</p></body></html></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="InstallationPage.ui" line="60"/>
|
||||||
|
<source><html><head/><body><p align="center"><span style=" font-size:14pt; font-weight:600;">Installation in progress...</span></p></body></html></source>
|
||||||
|
<translation><html><head/><body><p align="center"><span style=" font-size:14pt; font-weight:600;">Installazione in corso...</span></p></body></html></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="InstallationPage.ui" line="133"/>
|
||||||
|
<source><html><head/><body><p><span style=" font-weight:600;">Installation details:</span></p></body></html></source>
|
||||||
|
<translation><html><head/><body><p><span style=" font-weight:600;">Dettagli dell'installazione:</span></p></body></html></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="SelectExtraPage.ui" line="60"/>
|
||||||
|
<location filename="SelectGroupsPage.ui" line="60"/>
|
||||||
|
<source><html><head/><body><p><span style=" font-weight:600;">Please, select from the boxes below the components that you want to install or update from network.</span></p></body></html></source>
|
||||||
|
<translation><html><head/><body><p><span style=" font-weight:600;">Per favore, seleziona usando i checkbox sottostanti i componenti che desideri installare o aggiornare dalla rete.</span></p></body></html></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'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><html><head/><body><p><span style=" font-style:italic;">mambabase - Copyright (c) 2007-2021 by Silvan Calarco<br/>Released under the terms of the GNU GPL v3 license</span></p></body></html></source>
|
||||||
|
<translation><html><head/><body><p><span style=" font-style:italic;">mambabase - Copyright (c) 2007-2021 by Silvan Calarco<br/>Rilasciato secondo i termini della licenza GNU GPL v3</span></p></body></html></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="WelcomePage.ui" line="103"/>
|
||||||
|
<source><html><head/><body><p><a href="https://openmamba.org"><span style=" text-decoration: underline; color:#2980b9;">openmamba.org</span></a></p></body></html></source>
|
||||||
|
<translation></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="WelcomePage.ui" line="141"/>
|
||||||
|
<source><html><head/><body><p>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.</p><p><span style=" font-weight:600;">TIP</span>: you may run this program at any time from the <span style=" font-style:italic;">openmamba control center</span> on the tray icon bar.</p></body></html></source>
|
||||||
|
<translation><html><head/><body><p>Questa applicazione completerà l'installazione aggiungendo al sistema un set minimo di pacchetti raccomandati. In aggiunta permette di installare, se selezionati, gruppi di pacchetti e componenti properietary aggiuntivi.</p><p><span style=" font-weight:600;">TIP</span>: puoi eseguire questa applicazione in qualunque momento dal <span style=" font-style:italic;">centro di controllo di openmamba</span> sulla barra delle icone.</p></body></html></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="WelcomePage.ui" line="160"/>
|
||||||
|
<source><html><head/><body><p><br/></p></body></html></source>
|
||||||
|
<translation></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
</TS>
|
85
mambabase/po/messages.pot
Normal file
85
mambabase/po/messages.pot
Normal 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 ""
|
@ -1,3 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
xgettext -s -o - mambabase.py --output=po/messages.pot
|
xgettext -s -o - mambabase.py --output=po/messages.pot
|
||||||
msgmerge --update --no-fuzzy-matching --backup=off po/it.po po/messages.pot
|
msgmerge --update --no-fuzzy-matching --backup=off po/it.po po/messages.pot
|
||||||
|
lupdate *.ui -ts mambabase_it.ts
|
Loading…
Reference in New Issue
Block a user