Adding upstream version 0.9.0+20150930.

upstream/0.9.0+20150930
Alf Gaida 9 years ago
parent 8b8061b982
commit a8fb789d60

@ -62,47 +62,46 @@ void ScreenSaver::lockScreen()
void ScreenSaver::xdgProcess_finished(int err, QProcess::ExitStatus status) void ScreenSaver::xdgProcess_finished(int err, QProcess::ExitStatus status)
{ {
QWidget *p = qobject_cast<QWidget*>(parent());
// http://portland.freedesktop.org/xdg-utils-1.1.0-rc1/scripts/xdg-screensaver // http://portland.freedesktop.org/xdg-utils-1.1.0-rc1/scripts/xdg-screensaver
if (err == QProcess::NormalExit) // QProcess::NormalExit = 0 if (err == 0)
{
emit activated(); emit activated();
} else
else if (err == 1)
{ {
QMessageBox::warning(p, QMessageBox *box = new QMessageBox;
tr("Screen Saver Error"), box->setAttribute(Qt::WA_DeleteOnClose);
tr("An error occurred starting screensaver. " box->setIcon(QMessageBox::Warning);
"Syntax error in xdg-screensaver arguments.")
); if (err == 1)
{
box->setWindowTitle(tr("Screen Saver Error"));
box->setText(tr("An error occurred starting screensaver. "
"Syntax error in xdg-screensaver arguments."));
} }
else if (err == 3) else if (err == 3)
{ {
QMessageBox::warning(p, box->setWindowTitle(tr("Screen Saver Activation Error"));
tr("Screen Saver Activation Error"), box->setText(tr("An error occurred starting screensaver. "
tr("An error occurred starting screensaver. " "Ensure you have xscreensaver installed and running."));
"Ensure you have xscreensaver installed and running.")
);
} }
else if (err == 4) else if (err == 4)
{ {
QMessageBox::warning(p, box->setWindowTitle(tr("Screen Saver Activation Error"));
tr("Screen Saver Activation Error"), box->setText(tr("An error occurred starting screensaver. "
tr("An error occurred starting screensaver. "
"Action 'activate' failed. " "Action 'activate' failed. "
"Ensure you have xscreensaver installed and running.") "Ensure you have xscreensaver installed and running."));
);
} }
else else
{ {
QMessageBox::warning(p, box->setWindowTitle(tr("Screen Saver Activation Error"));
tr("Screen Saver Activation Error"), box->setText(tr("An error occurred starting screensaver. "
tr("An error occurred starting screensaver. " "Unknown error - undocumented return value from xdg-screensaver: %1.")
"Unknown error - undocumented return value from xdg-screensaver: %1.").arg(err) .arg(err));
); }
box->exec();
} }
emit done(); emit done();
} }

@ -1,3 +1,31 @@
/* BEGIN_COMMON_COPYRIGHT_HEADER
* (c)LGPL2+
*
* LXQt - a lightweight, Qt based, desktop toolset
* http://razor-qt.org
*
* Copyright: 2013 LXQt team
* Authors:
* Alexander Sokoloff <sokoloff.a@gmail.com>
Luís Pereira <luis.artur.pereira@gmail.com>
*
* This program or library is free software; you can redistribute it
* and/or modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
* You should have received a copy of the GNU Lesser General
* Public License along with this library; if not, write to the
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301 USA
*
* END_COMMON_COPYRIGHT_HEADER */
#include "lxqttranslator.h" #include "lxqttranslator.h"
#include <QTranslator> #include <QTranslator>
#include <QLocale> #include <QLocale>

@ -115,7 +115,7 @@
<message> <message>
<location filename="../lxqtpowermanager.cpp" line="173"/> <location filename="../lxqtpowermanager.cpp" line="173"/>
<source>Do you want to really restart your computer? All unsaved work will be lost...</source> <source>Do you want to really restart your computer? All unsaved work will be lost...</source>
<translation>Voulez-vous vraiment redémarrer votre ordinateur? Tout travail non souvegardé sera perdu...</translation> <translation>Voulez-vous vraiment redémarrer votre ordinateur? Tout travail non sauvegardé sera perdu...</translation>
</message> </message>
<message> <message>
<location filename="../lxqtpowermanager.cpp" line="182"/> <location filename="../lxqtpowermanager.cpp" line="182"/>
@ -125,7 +125,7 @@
<message> <message>
<location filename="../lxqtpowermanager.cpp" line="183"/> <location filename="../lxqtpowermanager.cpp" line="183"/>
<source>Do you want to really switch off your computer? All unsaved work will be lost...</source> <source>Do you want to really switch off your computer? All unsaved work will be lost...</source>
<translation>Voulez-vous vraiment éteindre votre ordinateur? Tout travail non souvegardé sera perdu...</translation> <translation>Voulez-vous vraiment éteindre votre ordinateur? Tout travail non sauvegardé sera perdu...</translation>
</message> </message>
<message> <message>
<location filename="../lxqtpowermanager.cpp" line="192"/> <location filename="../lxqtpowermanager.cpp" line="192"/>
@ -135,7 +135,7 @@
<message> <message>
<location filename="../lxqtpowermanager.cpp" line="193"/> <location filename="../lxqtpowermanager.cpp" line="193"/>
<source>Do you want to really logout? All unsaved work will be lost...</source> <source>Do you want to really logout? All unsaved work will be lost...</source>
<translation>Voulez-vous vraiment vous déconnecter? Tout travail non souvegardé sera perdu...</translation> <translation>Voulez-vous vraiment vous déconnecter? Tout travail non sauvegardé sera perdu...</translation>
</message> </message>
<message> <message>
<location filename="../lxqtpowermanager.cpp" line="201"/> <location filename="../lxqtpowermanager.cpp" line="201"/>
@ -159,7 +159,7 @@
<message> <message>
<location filename="../lxqtscreensaver.cpp" line="51"/> <location filename="../lxqtscreensaver.cpp" line="51"/>
<source>Lock Screen</source> <source>Lock Screen</source>
<translation>Vérouiller l&apos;écran</translation> <translation>Verrouiller l&apos;écran</translation>
</message> </message>
<message> <message>
<location filename="../lxqtscreensaver.cpp" line="70"/> <location filename="../lxqtscreensaver.cpp" line="70"/>

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS> <!DOCTYPE TS>
<TS version="2.1" language="it_IT"> <TS version="2.1" language="it">
<context> <context>
<name>AddPluginDialog</name> <name>AddPluginDialog</name>
<message> <message>
@ -134,12 +134,12 @@
<message> <message>
<location filename="../lxqtpowermanager.cpp" line="70"/> <location filename="../lxqtpowermanager.cpp" line="70"/>
<source>LXQt Power Manager Error</source> <source>LXQt Power Manager Error</source>
<translation type="unfinished">Errore del gestore energetico di LXQt</translation> <translation>Errore del gestore energetico di LXQt</translation>
</message> </message>
<message> <message>
<location filename="../lxqtpowermanager.cpp" line="70"/> <location filename="../lxqtpowermanager.cpp" line="70"/>
<source>Hibernate failed.</source> <source>Hibernate failed.</source>
<translation type="unfinished">L&apos;ibernazione non è riuscita.</translation> <translation>L&apos;ibernazione non è riuscita.</translation>
</message> </message>
</context> </context>
<context> <context>
@ -185,7 +185,7 @@
<message> <message>
<location filename="../lxqtpowermanager.cpp" line="153"/> <location filename="../lxqtpowermanager.cpp" line="153"/>
<source>Do you want to really suspend your computer?&lt;p&gt;Suspends the computer into a low power state. System state is not preserved if the power is lost.</source> <source>Do you want to really suspend your computer?&lt;p&gt;Suspends the computer into a low power state. System state is not preserved if the power is lost.</source>
<translation>Vuoi davvero sospendere il computer?&lt;p&gt;Sospendi il computer in uno stato a minore consumo energetico. Lo stato del sistema non viene preservato se la batteria si esaurisce o il pc non è collegato all&apos;alimentazione.</translation> <translation>Sospendere il computer?&lt;p&gt;Sospendi il computer in uno stato a minore consumo energetico. Lo stato del sistema non viene preservato se la batteria si esaurisce o il pc non è collegato all&apos;alimentazione.</translation>
</message> </message>
<message> <message>
<location filename="../lxqtpowermanager.cpp" line="162"/> <location filename="../lxqtpowermanager.cpp" line="162"/>
@ -195,7 +195,7 @@
<message> <message>
<location filename="../lxqtpowermanager.cpp" line="163"/> <location filename="../lxqtpowermanager.cpp" line="163"/>
<source>Do you want to really hibernate your computer?&lt;p&gt;Hibernates the computer into a low power state. System state is preserved if the power is lost.</source> <source>Do you want to really hibernate your computer?&lt;p&gt;Hibernates the computer into a low power state. System state is preserved if the power is lost.</source>
<translation>Vuoi davvero ibernare il computer?&lt;p&gt;Iberna il computer in uno stato a minore consumo energetico. Lo stato del sistema non viene preservato se la batteria si esaurisce o il pc non è collegato all&apos;alimentazione.</translation> <translation>Ibernare il computer?&lt;p&gt;Iberna il computer in uno stato a minore consumo energetico. Lo stato del sistema viene preservato se la batteria si esaurisce o il pc non è collegato all&apos;alimentazione.</translation>
</message> </message>
<message> <message>
<location filename="../lxqtpowermanager.cpp" line="172"/> <location filename="../lxqtpowermanager.cpp" line="172"/>
@ -205,17 +205,17 @@
<message> <message>
<location filename="../lxqtpowermanager.cpp" line="173"/> <location filename="../lxqtpowermanager.cpp" line="173"/>
<source>Do you want to really restart your computer? All unsaved work will be lost...</source> <source>Do you want to really restart your computer? All unsaved work will be lost...</source>
<translation>Vuoi davvero riavviare il computer? Tutto il lavoro non salvato verrà perso...</translation> <translation>Riavviare il computer? Tutto il lavoro non salvato verrà perso.</translation>
</message> </message>
<message> <message>
<location filename="../lxqtpowermanager.cpp" line="182"/> <location filename="../lxqtpowermanager.cpp" line="182"/>
<source>LXQt Session Shutdown</source> <source>LXQt Session Shutdown</source>
<translation>Spegni la sessione di LXQt</translation> <translation>Uscire dalla sessione di LXQt</translation>
</message> </message>
<message> <message>
<location filename="../lxqtpowermanager.cpp" line="183"/> <location filename="../lxqtpowermanager.cpp" line="183"/>
<source>Do you want to really switch off your computer? All unsaved work will be lost...</source> <source>Do you want to really switch off your computer? All unsaved work will be lost...</source>
<translation>Vuoi davvero spegnere il computer? Tutto il lavoro non salvato verrà perso...</translation> <translation>Spegnere il computer? Tutto il lavoro non salvato verrà perso.</translation>
</message> </message>
<message> <message>
<location filename="../lxqtpowermanager.cpp" line="192"/> <location filename="../lxqtpowermanager.cpp" line="192"/>
@ -225,7 +225,7 @@
<message> <message>
<location filename="../lxqtpowermanager.cpp" line="193"/> <location filename="../lxqtpowermanager.cpp" line="193"/>
<source>Do you want to really logout? All unsaved work will be lost...</source> <source>Do you want to really logout? All unsaved work will be lost...</source>
<translation>Vuoi davvero chiudere la sessione? Tutto il lavoro non salvato verrà perso...</translation> <translation>Chiudere la sessione? Tutto il lavoro non salvato verrà perso...</translation>
</message> </message>
<message> <message>
<location filename="../lxqtpowermanager.cpp" line="201"/> <location filename="../lxqtpowermanager.cpp" line="201"/>
@ -270,12 +270,12 @@
<message> <message>
<location filename="../lxqtscreensaver.cpp" line="79"/> <location filename="../lxqtscreensaver.cpp" line="79"/>
<source>An error occurred starting screensaver. xdg-screensaver is not installed correctly.</source> <source>An error occurred starting screensaver. xdg-screensaver is not installed correctly.</source>
<translation>È avvenuto un errore durante l&apos;avvio del salvaschermo. xda-screensaver non è installato correttamente.</translation> <translation>È avvenuto un errore durante l&apos;avvio del salvaschermo. xdg-screensaver non è installato correttamente.</translation>
</message> </message>
<message> <message>
<location filename="../lxqtscreensaver.cpp" line="87"/> <location filename="../lxqtscreensaver.cpp" line="87"/>
<source>An error occurred starting screensaver. xdg-screensaver cannot be started.</source> <source>An error occurred starting screensaver. xdg-screensaver cannot be started.</source>
<translation>È avvenuto un errore durante l&apos;avvio del salvaschermo. xda-screensaver non può essere avviato.</translation> <translation>È avvenuto un errore durante l&apos;avvio del salvaschermo. xdg-screensaver non può essere avviato.</translation>
</message> </message>
<message> <message>
<location filename="../lxqtscreensaver.cpp" line="99"/> <location filename="../lxqtscreensaver.cpp" line="99"/>
Loading…
Cancel
Save