From 7c5e02217b754e13004955515d193d21a2be8f4f Mon Sep 17 00:00:00 2001 From: arcan1s Date: Sat, 24 May 2014 14:15:48 +0400 Subject: [PATCH] prepare to add updateText function --- PKGBUILD | 2 +- sources/ptm/contents/code/main.py | 7 +++++++ sources/ptm/po/en.po | 8 ++++++-- sources/ptm/po/es.po | 6 +++++- sources/ptm/po/fr.po | 6 +++++- sources/ptm/po/pt_BR.po | 6 +++++- sources/ptm/po/pytextmonitor.pot | 6 +++++- sources/ptm/po/ru.po | 8 ++++++-- 8 files changed, 40 insertions(+), 9 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index a5d365d..a18f967 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -20,7 +20,7 @@ optdepends=("amarok: for music player monitor" makedepends=('automoc4' 'cmake') source=(https://github.com/arcan1s/pytextmonitor/releases/download/V.${pkgver}/${_pkgname}-${pkgver}-src.tar.xz) install=${pkgname}.install -md5sums=('5291688590116e77dd5407f9b23e22d7') +md5sums=('89a9d482ce0f92f5438b9eb706dccd2a') backup=('usr/share/config/extsysmon.conf') prepare() { diff --git a/sources/ptm/contents/code/main.py b/sources/ptm/contents/code/main.py index 4e9f94e..5600558 100644 --- a/sources/ptm/contents/code/main.py +++ b/sources/ptm/contents/code/main.py @@ -109,6 +109,8 @@ class pyTextWidget(plasmascript.Applet): QObject.connect(self.ptmActions['ksysguard'], SIGNAL("triggered(bool)"), self.runKsysguard) self.ptmActions['readme'] = QAction(i18n("Show README"), self) QObject.connect(self.ptmActions['readme'], SIGNAL("triggered(bool)"), self.showReadme) + self.ptmActions['update'] = QAction(i18n("Update text"), self) + QObject.connect(self.ptmActions['update'], SIGNAL("triggered(bool)"), self.updateText) def contextualActions(self): @@ -116,6 +118,7 @@ class pyTextWidget(plasmascript.Applet): contextMenu = [] contextMenu.append(self.ptmActions['ksysguard']) contextMenu.append(self.ptmActions['readme']) + contextMenu.append(self.ptmActions['update']) return contextMenu @@ -147,6 +150,10 @@ class pyTextWidget(plasmascript.Applet): os.system("kioclient exec " + str(filePath) + " &") + def updateText(self): + """function to force update text""" + + # internal functions def addDiskDevice(self, sourceName): diskRegexp = QRegExp("disk/(?:md|sd|hd)[a-z|0-9]_.*/Rate/(?:rblk)") diff --git a/sources/ptm/po/en.po b/sources/ptm/po/en.po index 09ba298..414d34f 100644 --- a/sources/ptm/po/en.po +++ b/sources/ptm/po/en.po @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: http://kde-look.org/content/show.php?content=157124\n" -"POT-Creation-Date: 2014-05-23 12:08+0400\n" -"PO-Revision-Date: 2014-05-19 11:56+0400\n" +"POT-Creation-Date: 2014-05-24 14:15+0400\n" +"PO-Revision-Date: 2014-05-24 14:15+0400\n" "Last-Translator: Evgeniy Alekseev \n" "Language-Team: Russian \n" "Language: ru\n" @@ -26,6 +26,10 @@ msgstr "Run ksysguard" msgid "Show README" msgstr "Show README" +#: code/main.py:112 +msgid "Update text" +msgstr "Update text" + #: rc.cpp:3 msgid "Form" msgstr "Form" diff --git a/sources/ptm/po/es.po b/sources/ptm/po/es.po index b4bbda5..566a6aa 100644 --- a/sources/ptm/po/es.po +++ b/sources/ptm/po/es.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: http://kde-look.org/content/show.php?content=157124\n" -"POT-Creation-Date: 2014-05-23 12:08+0400\n" +"POT-Creation-Date: 2014-05-24 14:15+0400\n" "PO-Revision-Date: 2014-05-19 23:02+0400\n" "Last-Translator: Evgeniy Alekseev \n" "Language-Team: Spanish \n" @@ -26,6 +26,10 @@ msgstr "Ejecutar ksysguard" msgid "Show README" msgstr "Mostrar el README" +#: code/main.py:112 +msgid "Update text" +msgstr "" + #: rc.cpp:3 msgid "Form" msgstr "Formulario" diff --git a/sources/ptm/po/fr.po b/sources/ptm/po/fr.po index 6498a71..9802283 100644 --- a/sources/ptm/po/fr.po +++ b/sources/ptm/po/fr.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: http://kde-look.org/content/show.php?content=157124\n" -"POT-Creation-Date: 2014-05-23 12:08+0400\n" +"POT-Creation-Date: 2014-05-24 14:15+0400\n" "PO-Revision-Date: 2014-05-21 16:45+0200\n" "Last-Translator: Mermouy \n" "Language-Team: French \n" @@ -27,6 +27,10 @@ msgstr "Lancer ksysguard" msgid "Show README" msgstr "Voir le README" +#: code/main.py:112 +msgid "Update text" +msgstr "" + #: rc.cpp:3 msgid "Form" msgstr "Entrées" diff --git a/sources/ptm/po/pt_BR.po b/sources/ptm/po/pt_BR.po index b5b3b2f..1a06ad5 100644 --- a/sources/ptm/po/pt_BR.po +++ b/sources/ptm/po/pt_BR.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: http://kde-look.org/content/show.php?content=157124\n" -"POT-Creation-Date: 2014-05-23 12:08+0400\n" +"POT-Creation-Date: 2014-05-24 14:15+0400\n" "PO-Revision-Date: 2014-05-21 19:10-0300\n" "Last-Translator: \n" "Language-Team: Brazilian Portuguese \n" @@ -25,6 +25,10 @@ msgstr "Abrir ksysguard" msgid "Show README" msgstr "Mostrar README" +#: code/main.py:112 +msgid "Update text" +msgstr "" + #: rc.cpp:3 msgid "Form" msgstr "Forma" diff --git a/sources/ptm/po/pytextmonitor.pot b/sources/ptm/po/pytextmonitor.pot index f379d83..14343c8 100644 --- a/sources/ptm/po/pytextmonitor.pot +++ b/sources/ptm/po/pytextmonitor.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: http://kde-look.org/content/show.php?content=157124\n" -"POT-Creation-Date: 2014-05-23 12:08+0400\n" +"POT-Creation-Date: 2014-05-24 14:15+0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -25,6 +25,10 @@ msgstr "" msgid "Show README" msgstr "" +#: code/main.py:112 +msgid "Update text" +msgstr "" + #: rc.cpp:3 msgid "Form" msgstr "" diff --git a/sources/ptm/po/ru.po b/sources/ptm/po/ru.po index 6e7a175..115e165 100644 --- a/sources/ptm/po/ru.po +++ b/sources/ptm/po/ru.po @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: http://kde-look.org/content/show.php?content=157124\n" -"POT-Creation-Date: 2014-05-23 12:08+0400\n" -"PO-Revision-Date: 2014-05-22 02:33+0400\n" +"POT-Creation-Date: 2014-05-24 14:15+0400\n" +"PO-Revision-Date: 2014-05-24 14:15+0400\n" "Last-Translator: Evgeniy Alekseev \n" "Language-Team: Russian \n" "Language: ru\n" @@ -26,6 +26,10 @@ msgstr "Запутить ksysguard" msgid "Show README" msgstr "Показать README" +#: code/main.py:112 +msgid "Update text" +msgstr "Обновить текст" + #: rc.cpp:3 msgid "Form" msgstr "Form"