diff --git a/config/helpers.cpp b/config/helpers.cpp index d8ed276..3181488 100644 --- a/config/helpers.cpp +++ b/config/helpers.cpp @@ -34,9 +34,9 @@ void fillComboBox(QComboBox* comboBox) comboBox->clear(); comboBox->addItem(QObject::tr("Nothing"), -1); comboBox->addItem(QObject::tr("Lock screen"), -2); // FIXME - comboBox->addItem(QObject::tr("Suspend"), LxQt::Power::PowerSuspend); - comboBox->addItem(QObject::tr("Hibernate"), LxQt::Power::PowerHibernate); - comboBox->addItem(QObject::tr("Shutdown"), LxQt::Power::PowerShutdown); + comboBox->addItem(QObject::tr("Suspend"), LXQt::Power::PowerSuspend); + comboBox->addItem(QObject::tr("Hibernate"), LXQt::Power::PowerHibernate); + comboBox->addItem(QObject::tr("Shutdown"), LXQt::Power::PowerShutdown); } void setComboBoxToValue(QComboBox* comboBox, int value) diff --git a/config/lxqt-config-powermanagement.desktop.in b/config/lxqt-config-powermanagement.desktop.in index 7a3d720..14d77fd 100644 --- a/config/lxqt-config-powermanagement.desktop.in +++ b/config/lxqt-config-powermanagement.desktop.in @@ -1,7 +1,8 @@ [Desktop Entry] Type=Application -Name=Power Management +Name=LXQt Power Management GenericName=Power Management Settings +Comment=Various settings regarding Power Management like battery or idleness watcher Exec=lxqt-config-powermanagement Icon=preferences-system-power-management Categories=Settings;DesktopSettings;Qt;LXQt; diff --git a/config/main.cpp b/config/main.cpp index 8ce09d3..e1eab9e 100644 --- a/config/main.cpp +++ b/config/main.cpp @@ -31,7 +31,7 @@ int main(int argc, char *argv[]) { - LxQt::SingleApplication a(argc, argv); + LXQt::SingleApplication a(argc, argv); MainWindow mainWindow; mainWindow.setWindowIcon(QIcon::fromTheme("preferences-system-power-management")); diff --git a/config/mainwindow.cpp b/config/mainwindow.cpp index 848ba2f..e54fa5c 100644 --- a/config/mainwindow.cpp +++ b/config/mainwindow.cpp @@ -31,7 +31,7 @@ #include "idlenesswatchersettings.h" MainWindow::MainWindow(QWidget *parent) : - LxQt::ConfigDialog(tr("Power Management Settings"), new PowerManagementSettings(parent)) + LXQt::ConfigDialog(tr("Power Management Settings"), new PowerManagementSettings(parent)) { BatteryWatcherSettings* batteryWatcherSettings = new BatteryWatcherSettings(this); addPage(batteryWatcherSettings, tr("Battery"), "battery"); diff --git a/config/mainwindow.h b/config/mainwindow.h index c660df2..51aad10 100644 --- a/config/mainwindow.h +++ b/config/mainwindow.h @@ -29,7 +29,7 @@ #include -class MainWindow : public LxQt::ConfigDialog +class MainWindow : public LXQt::ConfigDialog { Q_OBJECT diff --git a/config/powermanagementsettings.cpp b/config/powermanagementsettings.cpp index e593bc6..996f608 100644 --- a/config/powermanagementsettings.cpp +++ b/config/powermanagementsettings.cpp @@ -51,7 +51,7 @@ namespace PowerManagementSettingsConstants using namespace PowerManagementSettingsConstants; -PowerManagementSettings::PowerManagementSettings(QObject* parent) : LxQt::Settings("lxqt-powermanagement") +PowerManagementSettings::PowerManagementSettings(QObject* parent) : LXQt::Settings("lxqt-powermanagement") { } diff --git a/config/powermanagementsettings.h b/config/powermanagementsettings.h index 73c69d5..f30b93f 100644 --- a/config/powermanagementsettings.h +++ b/config/powermanagementsettings.h @@ -33,7 +33,7 @@ #include -class PowerManagementSettings : public LxQt::Settings +class PowerManagementSettings : public LXQt::Settings { Q_OBJECT diff --git a/config/translations/lxqt-config-powermanagement_el.desktop b/config/translations/lxqt-config-powermanagement_el.desktop new file mode 100644 index 0000000..fba769a --- /dev/null +++ b/config/translations/lxqt-config-powermanagement_el.desktop @@ -0,0 +1,3 @@ +Name[el]=Διαχείριση ενέργειας +GenericName[el]=Ρυθμίσεις της διαχείρισης ενέργειας +Comment[el]=Διάφορες ρυθμίσεις σχετικά με την διαχείριση ενέργειας όπως ο επόπτης μπαταρίας ή αδράνειας diff --git a/config/translations/lxqt-config-powermanagement_el.ts b/config/translations/lxqt-config-powermanagement_el.ts new file mode 100644 index 0000000..d505211 --- /dev/null +++ b/config/translations/lxqt-config-powermanagement_el.ts @@ -0,0 +1,195 @@ + + + + + BatteryWatcherSettings + + + Battery Watcher Settings + Ρυθμίσεις επόπτη μπαταρίας + + + + E&nable Battery Watcher + &Ενεργοποίηση του επόπτη της μπαταρίας + + + + Warning: + Προειδοποίηση: + + + + seconds + δευτερόλεπτα + + + + Level is low at: + Το επίπεδο είναι χαμηλό στο: + + + + % + % + + + + Use icons from theme: + Χρήση των εικονιδίων από το θέμα: + + + + When power is low then: + Όταν η ενέργεια είναι χαμηλά τότε: + + + + Show icon: + Εμφάνιση εικονιδίου: + + + + IdlenessWatcherSettings + + + Form + Φόρμα + + + + Enab&le Idleness Watcher + Ενεργοποίηση του επόπτη α&δράνειας + + + + When idle then: + Όταν είναι αδρανής: + + + + Idle time: + Χρόνος αδράνειας: + + + + minutes + λεπτά + + + + seconds + δευτερόλεπτα + + + + LidWatcherSettings + + + Form + Φόρμα + + + + Enable &Lid Watcher + Ενεργοποίηση του επόπτη &καλύμματος + + + + Action when lid is closed + Ενέργεια κατά το κλείσιμο του καλύμματος + + + + + On Battery + Σε μπαταρία + + + + Nothing + Τίποτα + + + + Suspend + Αναστολή + + + + Hibernate + Νάρκη + + + + Shut down + Τερματισμός + + + + On AC + Σε τροφοδοτικό AC + + + + When &using external monitor + Όταν χρησιμοποιείται εξωτερική ο&θόνη + + + + On Ac + Σε τροφοδοτικό AC + + + + MainWindow + + + LXQt Powermanagement Configuration + Διαμόρφωση της διαχείρισης ενέργειας του LXQt + + + + Battery + Μπαταρία + + + + Lid + Κάλυμμα φορητού + + + + idle + Αδράνεια + + + + QObject + + + Nothing + Τίποτα + + + + Lock screen + Κλείδωμα οθόνης + + + + Suspend + Αναστολή + + + + Hibernate + Νάρκη + + + + Shutdown + Τερματισμός + + + diff --git a/config/translations/lxqt-config-powermanagement_pt.ts b/config/translations/lxqt-config-powermanagement_pt.ts index 33e1feb..646a7f0 100644 --- a/config/translations/lxqt-config-powermanagement_pt.ts +++ b/config/translations/lxqt-config-powermanagement_pt.ts @@ -146,7 +146,7 @@ LXQt Powermanagement Configuration - Configuração do gestor de energia do LxQt + Configuração do gestor de energia do LXQt diff --git a/src/batterywatcher.cpp b/src/batterywatcher.cpp index a09a3ad..3ed56f3 100644 --- a/src/batterywatcher.cpp +++ b/src/batterywatcher.cpp @@ -44,7 +44,7 @@ BatteryWatcher::BatteryWatcher(QObject *parent) : Watcher(parent) if (devices.isEmpty()) { - LxQt::Notification::notify(tr("No battery!"), + LXQt::Notification::notify(tr("No battery!"), tr("LXQt could not find data about any battery - monitoring disabled"), "lxqt-powermanagement"); } @@ -64,7 +64,7 @@ BatteryWatcher::BatteryWatcher(QObject *parent) : Watcher(parent) mBatteryInfoDialog = new BatteryInfoDialog(mBatteries); connect(&mSettings, SIGNAL(settingsChanged()), this, SLOT(settingsChanged())); - connect(LxQt::Settings::globalSettings(), SIGNAL(iconThemeChanged()), this, SLOT(settingsChanged())); + connect(LXQt::Settings::globalSettings(), SIGNAL(iconThemeChanged()), this, SLOT(settingsChanged())); settingsChanged(); batteryChanged(); @@ -77,7 +77,7 @@ BatteryWatcher::~BatteryWatcher() void BatteryWatcher::batteryChanged() { static QTime actionTime; - static LxQt::Notification *notification = 0; + static LXQt::Notification *notification = 0; double totalEnergyFull = 0; double totalEnergyNow = 0; @@ -110,7 +110,7 @@ void BatteryWatcher::batteryChanged() if (!notification) { - notification = new LxQt::Notification(tr("Power low!"), this); + notification = new LXQt::Notification(tr("Power low!"), this); notification->setTimeout(2000); } @@ -121,13 +121,13 @@ void BatteryWatcher::batteryChanged() int secondsToAction = milliSecondsToAction / 1000; switch (mSettings.getPowerLowAction()) { - case LxQt::Power::PowerSuspend: + case LXQt::Power::PowerSuspend: notification->setBody(tr("Suspending in %1 seconds").arg(secondsToAction)); break; - case LxQt::Power::PowerHibernate: + case LXQt::Power::PowerHibernate: notification->setBody(tr("Hibernating in %1 seconds").arg(secondsToAction)); break; - case LxQt::Power::PowerShutdown: + case LXQt::Power::PowerShutdown: notification->setBody(tr("Shutting down in %1 seconds").arg(secondsToAction)); break; } diff --git a/src/idlenesswatcher.cpp b/src/idlenesswatcher.cpp index 22bd9d4..44b33dc 100644 --- a/src/idlenesswatcher.cpp +++ b/src/idlenesswatcher.cpp @@ -47,7 +47,7 @@ IdlenessWatcher::IdlenessWatcher(QObject* parent): Watcher(parent), mPSettings(), - mErrorNotification(tr("LxQt Idleness watcher failed to start")), + mErrorNotification(tr("LXQt Idleness watcher failed to start")), mDBusWatcher(this), mInhibitorCookie(0), mIsLocked(false) @@ -61,7 +61,7 @@ IdlenessWatcher::IdlenessWatcher(QObject* parent): // Note that XCB is asynchronous, so we want to make requests ASAP and get the responses as late as possible. mScreen = screenOfDisplay(mConn, 0); - mErrorNotification.setUrgencyHint(LxQt::Notification::UrgencyCritical); + mErrorNotification.setUrgencyHint(LXQt::Notification::UrgencyCritical); mErrorNotification.setIcon("object-unlocked"); mErrorNotification.setTimeout(0); @@ -113,7 +113,7 @@ IdlenessWatcher::IdlenessWatcher(QObject* parent): mErrorNotification.setActions(QStringList(tr("Configure..."))); - qDebug() << "LxQt Screenlocker started."; + qDebug() << "LXQt Screenlocker started."; qDebug() << "timeout:" << getMaxIdleTimeoutMs() << "ms, lock command:" << mLockCommand; restartTimer(); } diff --git a/src/idlenesswatcher.h b/src/idlenesswatcher.h index c80b011..d88b97e 100644 --- a/src/idlenesswatcher.h +++ b/src/idlenesswatcher.h @@ -76,7 +76,7 @@ private: PowerManagementSettings mPSettings; QTimer mTimer; QProcess mLockProcess; - LxQt::Notification mErrorNotification; + LXQt::Notification mErrorNotification; QString mLockCommand; QDateTime mLockTime; QMap mInhibitors; diff --git a/src/lidwatcher.h b/src/lidwatcher.h index e6c21a9..c7fdef3 100644 --- a/src/lidwatcher.h +++ b/src/lidwatcher.h @@ -53,7 +53,7 @@ private: void inhibitSystemdLogin(); Lid mLid; - LxQt::Power mLxQtPower; + LXQt::Power mLXQtPower; PowerManagementSettings mSettings; QDBusUnixFileDescriptor logindLock; }; diff --git a/src/main.cpp b/src/main.cpp index c03669a..bfaf024 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -33,7 +33,7 @@ int main(int argc, char *argv[]) { - LxQt::Application a(argc, argv); + LXQt::Application a(argc, argv); a.setQuitOnLastWindowClosed(false); // To ensure only one instance of lxqt-powermanagement is running we register as a DBus service and refuse to run diff --git a/src/powermanagementd.h b/src/powermanagementd.h index 2209061..508f71c 100644 --- a/src/powermanagementd.h +++ b/src/powermanagementd.h @@ -36,7 +36,7 @@ private: IdlenessWatcher* mIdlenesswatcherd; PowerManagementSettings mSettings; - LxQt::Notification mNotification; + LXQt::Notification mNotification; }; #endif /* POWERMANAGEMENTD_H */ diff --git a/src/translations/lxqt-powermanagement.ts b/src/translations/lxqt-powermanagement.ts index 2566687..965bfcf 100644 --- a/src/translations/lxqt-powermanagement.ts +++ b/src/translations/lxqt-powermanagement.ts @@ -169,7 +169,7 @@ IdlenessWatcher - LxQt Idleness watcher failed to start + LXQt Idleness watcher failed to start diff --git a/src/translations/lxqt-powermanagement_el.ts b/src/translations/lxqt-powermanagement_el.ts new file mode 100644 index 0000000..40287e5 --- /dev/null +++ b/src/translations/lxqt-powermanagement_el.ts @@ -0,0 +1,261 @@ + + + + + Battery + + + Charging + Φόρτιση + + + + Discharging + Αποφόρτιση + + + + Empty + Άδεια + + + + Fully charged + Γεμάτη + + + + Pending charge + Φορτίζεται + + + + Pending discharge + Αποφορτίζεται + + + + Unknown + Άγνωστο + + + + BatteryInfo + + + Power Management + Διαχείριση ενέργειας + + + + Battery info + Πληροφορίες της μπαταρίας + + + + Energy Now: + Η τρέχουσα ενέργεια: + + + + Updated: + Ενημερωμένη: + + + + Technology: + Τεχνολογία: + + + + Model: + Μοντέλο: + + + + Energy rate: + Ρυθμός ενέργειας: + + + + Voltage: + Τάση: + + + + Energy Full, Design: + Πλήρης ενέργεια, σχεδιασμός: + + + + Energy Full: + Πλήρης ενέργεια: + + + + State: + Κατάσταση: + + + + Lithium ion + Ιόντων λιθίου + + + + Lithium polymer + Πολυμερούς λιθίου + + + + Lithium iron phosphate + Λίθιου Φωσφορικού άλατος σιδήρου + + + + Lead acid + Μολύβδου οξέος + + + + Nickel cadmium + Νικελίου καδμίου + + + + Nickel metal hydride + Υβριδική νικελίου μετάλλου + + + + Unknown + Άγνωστη + + + + BatteryWatcher + + + No battery! + Καμιά μπαταρία! + + + + LXQt could not find data about any battery - monitoring disabled + Το LXQT δεν μπόρεσε να βρει δεδομένα για οποιαδήποτε μπαταρία - η εποπτεία απενεργοποιήθηκε + + + + Power low! + Η ενέργεια είναι χαμηλή! + + + + Suspending in %1 seconds + Αναστολή σε %1 δευτερόλεπτα + + + + Hibernating in %1 seconds + Νάρκωση σε %1 δευτερόλεπτα + + + + Shutting down in %1 seconds + Τερματισμός σε %1 δευτερόλεπτα + + + + IdlenessWatcher + + + LXQt Idleness watcher failed to start + Η εκκίνηση του επόπτη αδράνειας του LXQt απέτυχε + + + + D-Bus interface org.freedesktop.ScreenSaver is already registered + Η διεπαφή του D-Bus org.freedesktop.ScreenSaver έχει καταχωρηθεί ήδη + + + + The X11 Screensaver extension is not usable + Η επέκταση της προστασίας οθόνης X11 δεν μπορεί να χρησιμοποιηθεί + + + + Configure... + Διαμόρφωση... + + + + ERROR: Screen unlocked + ΣΦΑΛΜΑ: Οθόνη ξεκλείδωτη + + + + Locking program "%1" exited with error code %2 + Το πρόγραμμα κλειδώματος «%1» τερματίστηκε με τον κωδικό σφάλματος %2 + + + + Locking program "%1" crashed with error code %2 + Το πρόγραμμα κλειδώματος «%1» κατέρρευσε με τον κωδικό σφάλματος %2 + + + + PowerManagementd + + + Power Management + Διαχείριση ενέργειας + + + + You are running LXQt Power Management for the first time. +You can configure it from settings... + Εκτελείτε την διαχείριση ενέργειας του LXQt για πρώτη φορά. +Μπορείτε να την διαμορφώσετε από τις ρυθμίσεις... + + + + + Configure... + Διαμόρφωση... + + + + TrayIcon + + + Configure + Διαμόρφωση + + + + + About + Σχετικά + + + + Disable icon + Απενεργοποίηση του εικονιδίου + + + + discharging + αποφορτίζεται + + + + charging + φορτίζεται + + + + <p> <b>LXQt Powermanagement</b><br/> - Powermanagement for the LXQt Desktop Environment</p><p> Authors:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - and others from the Razor and LXQt projects</p><p> Copyright &copy; 2012-2014</p> + <p> <b>Διαχείριση ενέργειας του LXQt</b><br/> - Διαχείριση της ενέργειας για το γραφικό περιβάλλον LXQt</p><p> Συγγραφείς:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - και άλλοι από τα έργα Razor και LXQt</p><p> Πνευματικά δικαιώματα &copy; 2012-2014</p> + + + diff --git a/src/translations/lxqt-powermanagement_hu.ts b/src/translations/lxqt-powermanagement_hu.ts index 329b4cc..b8d4f08 100644 --- a/src/translations/lxqt-powermanagement_hu.ts +++ b/src/translations/lxqt-powermanagement_hu.ts @@ -169,7 +169,7 @@ IdlenessWatcher - LxQt Idleness watcher failed to start + LXQt Idleness watcher failed to start Az LXQt tétlenség figyelő indítása sikertelen diff --git a/src/translations/lxqt-powermanagement_ja.ts b/src/translations/lxqt-powermanagement_ja.ts index f845b05..815298d 100644 --- a/src/translations/lxqt-powermanagement_ja.ts +++ b/src/translations/lxqt-powermanagement_ja.ts @@ -169,7 +169,7 @@ IdlenessWatcher - LxQt Idleness watcher failed to start + LXQt Idleness watcher failed to start LXQtのアイドル状態監視は始動に失敗しました diff --git a/src/translations/lxqt-powermanagement_pl_PL.ts b/src/translations/lxqt-powermanagement_pl_PL.ts index 46202ec..d1cce2f 100644 --- a/src/translations/lxqt-powermanagement_pl_PL.ts +++ b/src/translations/lxqt-powermanagement_pl_PL.ts @@ -169,7 +169,7 @@ IdlenessWatcher - LxQt Idleness watcher failed to start + LXQt Idleness watcher failed to start diff --git a/src/translations/lxqt-powermanagement_pt.ts b/src/translations/lxqt-powermanagement_pt.ts index 33e8a49..c0405c1 100644 --- a/src/translations/lxqt-powermanagement_pt.ts +++ b/src/translations/lxqt-powermanagement_pt.ts @@ -142,7 +142,7 @@ LXQt could not find data about any battery - monitoring disabled - O LxQt não consegui encontrar qualquer bateria e a monitorização foi desativada + O LXQt não consegui encontrar qualquer bateria e a monitorização foi desativada @@ -169,7 +169,7 @@ IdlenessWatcher - LxQt Idleness watcher failed to start + LXQt Idleness watcher failed to start O monitorizador de inatividade não foi iniciado @@ -214,7 +214,7 @@ You are running LXQt Power Management for the first time. You can configure it from settings... - Está a executar a gestão de energia do LxQt pela primeira vez. + Está a executar a gestão de energia do LXQt pela primeira vez. Pode configurar as opções nas definições... @@ -254,7 +254,7 @@ Pode configurar as opções nas definições... <p> <b>LXQt Powermanagement</b><br/> - Powermanagement for the LXQt Desktop Environment</p><p> Authors:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - and others from the Razor and LXQt projects</p><p> Copyright &copy; 2012-2014</p> - <p> <b>Gestor de energia do LxQt</b><br/>Gestão de energia para o ambiente de trabalho LxQt</p><p> Autores:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - e outros colaboradores dos projetos Razor e LxQt</p><p> Direitos de autor &copy; 2012-2015</p> + <p> <b>Gestor de energia do LXQt</b><br/>Gestão de energia para o ambiente de trabalho LXQt</p><p> Autores:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - e outros colaboradores dos projetos Razor e LXQt</p><p> Direitos de autor &copy; 2012-2015</p> diff --git a/src/translations/lxqt-powermanagement_ru.ts b/src/translations/lxqt-powermanagement_ru.ts index 04145a8..87aaa88 100644 --- a/src/translations/lxqt-powermanagement_ru.ts +++ b/src/translations/lxqt-powermanagement_ru.ts @@ -169,8 +169,8 @@ IdlenessWatcher - LxQt Idleness watcher failed to start - Не удалось запустить наблюдение за простоем LxQt + LXQt Idleness watcher failed to start + Не удалось запустить наблюдение за простоем LXQt diff --git a/src/translations/lxqt-powermanagement_ru_RU.ts b/src/translations/lxqt-powermanagement_ru_RU.ts index f151278..4e311e0 100644 --- a/src/translations/lxqt-powermanagement_ru_RU.ts +++ b/src/translations/lxqt-powermanagement_ru_RU.ts @@ -169,8 +169,8 @@ IdlenessWatcher - LxQt Idleness watcher failed to start - Не удалось запустить наблюдение за простоем LxQt + LXQt Idleness watcher failed to start + Не удалось запустить наблюдение за простоем LXQt diff --git a/src/watcher.cpp b/src/watcher.cpp index 217399e..cf9b632 100644 --- a/src/watcher.cpp +++ b/src/watcher.cpp @@ -47,7 +47,7 @@ void Watcher::doAction(int action) mLoop.exec(); } else if (action >= 0) - mPower.doAction((LxQt::Power::Action) action); + mPower.doAction((LXQt::Power::Action) action); emit done(); } diff --git a/src/watcher.h b/src/watcher.h index 1cb58c0..a86f810 100644 --- a/src/watcher.h +++ b/src/watcher.h @@ -21,8 +21,8 @@ signals: void done(); private: - LxQt::Power mPower; - LxQt::ScreenSaver mScreenSaver; + LXQt::Power mPower; + LXQt::ScreenSaver mScreenSaver; QEventLoop mLoop; };