Fix strings in italian language in main code (use english) and use it.po for translation

This commit is contained in:
Silvan Calarco 2011-10-11 00:08:25 +02:00
parent 89f3e5b878
commit ebfc69401e
2 changed files with 10 additions and 3 deletions

View File

@ -79,3 +79,12 @@ msgstr "Firewall abilitato per la sessione corrente"
msgid "Could not enable firewall" msgid "Could not enable firewall"
msgstr "Non è stato possibile abilitare il firewall" msgstr "Non è stato possibile abilitare il firewall"
msgid "Not Open Source openmamba components"
msgstr "Componenti non Open Source di openmamba"
msgid "The following components are available for update: "
msgstr "I seguenti componenti sono disponibili per l'aggiornamento: "
msgid "Ok to proceed?"
msgstr "Aggiornare adesso?"

View File

@ -161,8 +161,6 @@ class SystemTrayIcon(QtGui.QSystemTrayIcon):
networkProxyProcess.execute("/opt/kde/bin/kcmshell4", networkProxyProcess.execute("/opt/kde/bin/kcmshell4",
QtCore.QStringList(list(set(['proxy'])))) QtCore.QStringList(list(set(['proxy']))))
def SRPMSCheckUpgradeList(self): def SRPMSCheckUpgradeList(self):
checkSRPMSUpdatesTimer.stop() checkSRPMSUpdatesTimer.stop()
global contatore, lista, NetsrpmsArg global contatore, lista, NetsrpmsArg
@ -190,7 +188,7 @@ class SystemTrayIcon(QtGui.QSystemTrayIcon):
global NetsrpmsArg, lista global NetsrpmsArg, lista
if not lista == []: if not lista == []:
Lista = self.Lista() Lista = self.Lista()
msg = QtGui.QMessageBox.question(menu, ("Updates"), (_("I seguenti pacchetti saranno aggiornati: ") + Lista + ".\n" + _("Sei d'accordo?")), QtGui.QMessageBox.Yes | QtGui.QMessageBox.No, QtGui.QMessageBox.Yes) msg = QtGui.QMessageBox.question(menu, (_("Not Open Source openmamba components")), (_("The following components are available for update: ") + "\n\n" + Lista + "\n\n" + _("Ok to proceed?")), QtGui.QMessageBox.Yes | QtGui.QMessageBox.No, QtGui.QMessageBox.Yes)
if msg == QtGui.QMessageBox.Yes: if msg == QtGui.QMessageBox.Yes:
NetsrpmsArg = '-u' NetsrpmsArg = '-u'
self.SRPMSCheckUpgradeList() self.SRPMSCheckUpgradeList()