Compare commits

..

22 Commits

Author SHA1 Message Date
334189b8a1 prerelease 1.11.0 2014-07-21 22:02:54 +04:00
6c7d6a5443 update russian readme 2014-07-09 18:54:54 +04:00
e37f2a7190 add support of tags to cmd 2014-07-09 13:50:46 +04:00
baf21549d5 update eng readme and changlelog 2014-07-09 13:32:33 +04:00
07c2abd5bc update translations 2014-07-09 13:14:48 +04:00
2ea73b2261 add support of desktop label to ptm 2014-07-09 13:12:52 +04:00
7c3b47693e update translations 2014-07-09 10:53:54 +04:00
0fe67ce323 initialization of translation files 2014-07-09 10:34:38 +04:00
bfb7d72faf change lineedit to combobox 2014-07-09 09:59:04 +04:00
662b952961 ended work on ptm-desktop-panel 2014-07-09 09:42:58 +04:00
a81cbe3d9c add interaction with craphical interface 2014-07-09 08:55:33 +04:00
0462bb186e Started work on ptm-desktop-panel widget 2014-07-09 01:00:24 +04:00
9985fe6260 add desktop section to the sysmon 2014-07-08 19:08:08 +04:00
11a6f01ae3 prepare to release 1.10.3
+ added ability to set transparent background
2014-07-08 10:12:20 +04:00
43ee40a65d release 1.10.2 2014-06-11 04:23:46 +04:00
f9eb27964f release 1.10.1 2014-06-10 10:44:34 +04:00
bab9f58b35 try again fix of initialization 2014-06-10 10:42:15 +04:00
608908fd02 fix checking of qmmp 2014-06-10 09:57:30 +04:00
178bbd0bc0 fix first initialization 2014-06-10 09:42:21 +04:00
f8a02a48ac fix 2014-06-10 09:30:31 +04:00
cf39fba9c2 fix error in ps dataengine 2014-06-10 09:27:26 +04:00
6643852822 edit desktop files 2014-06-10 07:59:05 +04:00
46 changed files with 4461 additions and 813 deletions

View File

@ -1,3 +1,17 @@
Ver.1.11.0:
+ added ability to disable background image
+ added desktop DataEngine
+ added PTM desktop panel
+ added desktop label (tags $name, $number, $total)
Ver.1.10.2:
- fix error with tempUnits in hddtemp label
Ver.1.10.1:
- fix error with number formats in ps label
- fix first initialization of DataEngine
- fix checking of qmmp
Ver.1.10.0:
+ added tags $hddtotmb, $hddtotgb
+ added tags $memtotmb, $memtotgb, $swaptotmb, $swaptotgb

View File

@ -1,3 +1,17 @@
Вер.1.11.0:
+ добавлена возможность отключения фона
+ добавлен desktop DataEngine
+ добавлен виджет PTM desktop panel
+ добавлено поле текущий рабочий стол (теги $name, $number, $total)
Вер.1.10.2:
- фикс ошибки с tempUnits в поле hddtemp
Вер.1.10.1:
- пофикшена ошибка с форматами чисел в поле ps
- пофикшена инициализация значений в DataEngine
- пофикшена проверка qmmp
Вер.1.10.0:
+ добавлены теги $hddtotmb, $hddtotgb
+ добавлены теги $memtotmb, $memtotgb, $swaptotmb, $swaptotgb

View File

@ -2,7 +2,7 @@
pkgname=kdeplasma-applets-pytextmonitor
_pkgname=pytextmonitor
pkgver=1.10.0
pkgver=1.11.0
pkgrel=1
pkgdesc="Minimalistic Plasmoid script written on Python2. It looks like widgets in Awesome WM"
arch=('i686' 'x86_64')
@ -21,7 +21,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=('68227097322e3949b61b7bd1c0963511')
md5sums=('fac8af7e6b85925510b30917751696fa')
backup=('usr/share/config/extsysmon.conf')
prepare() {

View File

@ -60,6 +60,9 @@ For edited output you must open Settings window and setup output format in lines
* tag `$ps` - list of running processes
* tag `$pkgcountN` - number of packages, which available to upgrade for command N. For example, `$pkgcount0`
* tag `$customN` - returns output for custom command N. For example, `$custom0`
* tag `$name` - name of the current desktop
* tag `$number` - number of the current desktop
* tag `$total` - total number of desktops
Label order will changed if you change slider position. HTML tags in label work normally.
@ -75,6 +78,10 @@ Numbering of elements of temperature, HDD usage, HDD speed, HDD temperature refe
Advanced settings
-----------------
**Enable background**
Uncheck to disable default background and set transparent one.
**Vertical layout**
Use vertical layout instead of horizontal one.
@ -173,6 +180,10 @@ DataEngine settings
Commands, which will be run for custom label.
**Desktop cmd**
Type a command which will be run for desktop DataEngine. Default is `qdbus org.kde.kwin /KWin currentDesktop`.
**GPU device**
Select one of supported GPU devices. `auto` will enable auto selection, `disable` will disable definition of GPU states. Default is `auto`.
@ -208,10 +219,40 @@ List of commands, which will be run. Number of null lines is a number of unneede
Select one of supported music playes for player label.
DataEngine configuration
------------------------
PTM desktop panel
=================
You may edit DataEngine configuration. It is `/usr/share/config/extsysmon.conf` or `$HOME/share/config/extsysmon.conf` depending on the type of installation. Uncomment needed line and edit it.
Since version 1.11.0 PyTextMonitor provides a minimalistic panel for monitoring on desktops written on `C++`. And yes, it looks like the same panel in Awesome.
Desktop panel configuration
---------------------------
**Enable background**
Uncheck to disable default background and set transparent one.
**Vertical layout**
Use vertical layout instead of horizontal one.
**Add stretch**
Add stretch (spacer) to the selected side of the widget.
**Mark**
Type symbol (or string) which will be shown if this desktop is active now.
**Pattern tags**
* tag `$mark` - show mark if this desktop is active
* tag `$name` - name of the current desktop
* tag `$number` - number of the current desktop
* tag `$total` - total number of desktops
**Command**
Type command which will be run on left click on the selected desktop. Available variables are same as for pattern. Default is `dbus org.kde.kwin /KWin setCurrentDesktop $number`.
Instruction
===========

View File

@ -60,6 +60,9 @@ For edited output you must open Settings window and setup output format in lines
* tag `$ps` - list of running processes
* tag `$pkgcountN` - number of packages, which available to upgrade for command N. For example, `$pkgcount0`
* tag `$customN` - returns output for custom command N. For example, `$custom0`
* tag `$name` - name of the current desktop
* tag `$number` - number of the current desktop
* tag `$total` - total number of desktops
Label order will changed if you change slider position. HTML tags in label work normally.
@ -75,6 +78,10 @@ Numbering of elements of temperature, HDD usage, HDD speed, HDD temperature refe
Advanced settings
-----------------
**Enable background**
Uncheck to disable default background and set transparent one.
**Vertical layout**
Use vertical layout instead of horizontal one.
@ -173,6 +180,10 @@ DataEngine settings
Commands, which will be run for custom label.
**Desktop cmd**
Type a command which will be run for desktop DataEngine. Default is `qdbus org.kde.kwin /KWin currentDesktop`.
**GPU device**
Select one of supported GPU devices. `auto` will enable auto selection, `disable` will disable definition of GPU states. Default is `auto`.
@ -208,10 +219,40 @@ List of commands, which will be run. Number of null lines is a number of unneede
Select one of supported music playes for player label.
DataEngine configuration
------------------------
PTM desktop panel
=================
You may edit DataEngine configuration. It is `/usr/share/config/extsysmon.conf` or `$HOME/share/config/extsysmon.conf` depending on the type of installation. Uncomment needed line and edit it.
Since version 1.11.0 PyTextMonitor provides a minimalistic panel for monitoring on desktops written on `C++`. And yes, it looks like the same panel in Awesome.
Desktop panel configuration
---------------------------
**Enable background**
Uncheck to disable default background and set transparent one.
**Vertical layout**
Use vertical layout instead of horizontal one.
**Add stretch**
Add stretch (spacer) to the selected side of the widget.
**Mark**
Type symbol (or string) which will be shown if this desktop is active now.
**Pattern tags**
* tag `$mark` - show mark if this desktop is active
* tag `$name` - name of the current desktop
* tag `$number` - number of the current desktop
* tag `$total` - total number of desktops
**Command**
Type command which will be run on left click on the selected desktop. Available variables are same as for pattern. Default is `dbus org.kde.kwin /KWin setCurrentDesktop $number`.
Instruction
===========

View File

@ -60,6 +60,9 @@ PyTextMonitor - минималистичный плазмоид, написан
* тег `$ps` - список процессов
* тег `$pkgcountN` - число пакетов, которые могут быть обновлены, для команды N. Например, `$pkgcount0`
* тег `$customN` - возвращает результат своей команды N. Например, `$custom0`
* тег `$name` - имя текущего рабочего стола
* тег `$number` - номер текущего рабочего стола
* тег `$total` - общее число рабочих столов
Порядок полей изменится, если вы измените позицию слайдеров. HTML теги в полях работают корректно.
@ -75,6 +78,10 @@ PyTextMonitor - минималистичный плазмоид, написан
Расширенные настройки
---------------------
**Включить фон**
Снимите галочку, чтобы отключить стандартный фон виджета и установить прозрачный.
**Вертикальная разметка**
Использовать вертикальную разметку вместо горизонтальной.
@ -173,6 +180,10 @@ PyTextMonitor - минималистичный плазмоид, написан
Команды, которые будут запущены для соответствующего поля.
**Комадна для определения рабочего стола**
Введите команду, которая будет запущеная для desktop DataEngine. По умолчанию `qdbus org.kde.kwin /KWin currentDesktop`.
**Устройство GPU**
Выберите одно из поддерживаемых устройств GPU. `auto` включит автоматическое определение, `disable` отключит все мониторы GPU. По умолчанию `auto`.
@ -208,10 +219,40 @@ PyTextMonitor - минималистичный плазмоид, написан
Выберите один из поддерживаемых музыкальных плееров.
Настройка DataEngine
--------------------
PTM desktop panel
=================
Вы можете отредактировать настройки DataEngine вручную. Откройте файл `/usr/share/config/extsysmon.conf` или `$HOME/.kde4/share/config/extsysmon.conf`, в зависимости от типа установки. Раскомментируйте требуемые строки и отредактируйте их.
Начиная с версии 1.11.0 PyTextMonitor предоставляет минималистичную панель для мониторинга за рабочими столами, написанный на `C++`. И да, он выглядит, как аналогичная панель в Awesome.
Настройка Desktop panel
-----------------------
**Включить фон**
Снимите галочку, чтобы отключить стандартный фон виджета и установить прозрачный.
**Вертикальная разметка**
Использовать вертикальную разметку вместо горизонтальной.
**Добавить пустое пространство**
Добавить пустое пространство в указанное место виджета.
**Метка**
Введите символ (или строку), которая будет показана, если данный рабочий стол сейчас активен.
**Теги шаблона**
* тег `$mark` - показать метку, если данный рабочий стол активен
* тег `$name` - имя рабочего стола
* тег `$number` - номер рабочего стола
* тег `$total` - общее число рабочих столов
**Команда**
Введите команду, которая будет запущена по клику левой кнопкой мыши на выбранном рабочем столе. Доступны те же переменные, что и для шаблонов. По умолчанию `dbus org.kde.kwin /KWin setCurrentDesktop $number`.
Инструкция
==========

View File

@ -0,0 +1,78 @@
--- README.md.orig 2014-07-08 12:10:47.217925504 +0400
+++ README.md 2014-07-09 18:54:32.749203368 +0400
@@ -60,6 +60,9 @@
* tag `$ps` - list of running processes
* tag `$pkgcountN` - number of packages, which available to upgrade for command N. For example, `$pkgcount0`
* tag `$customN` - returns output for custom command N. For example, `$custom0`
+* tag `$name` - name of the current desktop
+* tag `$number` - number of the current desktop
+* tag `$total` - total number of desktops
Label order will changed if you change slider position. HTML tags in label work normally.
@@ -75,6 +78,10 @@
Advanced settings
-----------------
+**Enable background**
+
+Uncheck to disable default background and set transparent one.
+
**Vertical layout**
Use vertical layout instead of horizontal one.
@@ -173,6 +180,10 @@
Commands, which will be run for custom label.
+**Desktop cmd**
+
+Type a command which will be run for desktop DataEngine. Default is `qdbus org.kde.kwin /KWin currentDesktop`.
+
**GPU device**
Select one of supported GPU devices. `auto` will enable auto selection, `disable` will disable definition of GPU states. Default is `auto`.
@@ -208,10 +219,40 @@
Select one of supported music playes for player label.
-DataEngine configuration
-------------------------
+PTM desktop panel
+=================
+
+Since version 1.11.0 PyTextMonitor provides a minimalistic panel for monitoring on desktops written on `C++`. And yes, it looks like the same panel in Awesome.
+
+Desktop panel configuration
+---------------------------
+
+**Enable background**
+
+Uncheck to disable default background and set transparent one.
+
+**Vertical layout**
+
+Use vertical layout instead of horizontal one.
+
+**Add stretch**
+
+Add stretch (spacer) to the selected side of the widget.
+
+**Mark**
+
+Type symbol (or string) which will be shown if this desktop is active now.
+
+**Pattern tags**
+
+* tag `$mark` - show mark if this desktop is active
+* tag `$name` - name of the current desktop
+* tag `$number` - number of the current desktop
+* tag `$total` - total number of desktops
+
+**Command**
-You may edit DataEngine configuration. It is `/usr/share/config/extsysmon.conf` or `$HOME/share/config/extsysmon.conf` depending on the type of installation. Uncomment needed line and edit it.
+Type command which will be run on left click on the selected desktop. Available variables are same as for pattern. Default is `dbus org.kde.kwin /KWin setCurrentDesktop $number`.
Instruction
===========

View File

@ -7,7 +7,7 @@ cmake_policy (SET CMP0015 NEW)
project (pytextmonitor)
set (PROJECT_VERSION_MAJOR 1)
set (PROJECT_VERSION_MINOR 10)
set (PROJECT_VERSION_MINOR 11)
set (PROJECT_VERSION_PATCH 0)
set (PROJECT_VERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH})
@ -24,5 +24,6 @@ else ()
endif ()
add_subdirectory (ext-sysmon)
add_subdirectory (desktop-panel)
add_subdirectory (ptm)
add_subdirectory (readme)

View File

@ -0,0 +1,31 @@
# set project name
set (SUBPROJECT plasma_applet_ptm-desktop-panel)
message (STATUS "Subproject ${SUBPROJECT}")
# find required libaries
find_package (KDE4 REQUIRED)
add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
add_subdirectory (po)
include (KDE4Defaults)
include_directories (${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${KDE4_INCLUDES} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}/../)
# set sources
set (PLUGIN_NAME ${SUBPROJECT})
file (GLOB SUBPROJECT_DESKTOP_IN *.desktop)
file (RELATIVE_PATH SUBPROJECT_DESKTOP ${CMAKE_SOURCE_DIR} ${SUBPROJECT_DESKTOP_IN})
file (GLOB SUBPROJECT_SOURCE *.cpp)
file (GLOB SUBPROJECT_UI *.ui)
# prepare
configure_file (${SUBPROJECT_DESKTOP_IN} ${CMAKE_CURRENT_BINARY_DIR}/${SUBPROJECT_DESKTOP})
# make
kde4_add_ui_files (SUBPROJECT_SOURCE ${SUBPROJECT_UI})
kde4_add_plugin (${PLUGIN_NAME} ${SUBPROJECT_SOURCE})
target_link_libraries (${PLUGIN_NAME} ${KDE4_PLASMA_LIBS} ${KDE4_KDEUI_LIBS} ${KDE4_KIO_LIBS})
# install
install (TARGETS ${PLUGIN_NAME} DESTINATION ${PLUGIN_INSTALL_DIR})
install (FILES ${CMAKE_CURRENT_BINARY_DIR}/${SUBPROJECT_DESKTOP} DESTINATION ${SERVICES_INSTALL_DIR})

View File

@ -0,0 +1,653 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>AppearanceWidget</class>
<widget class="QWidget" name="AppearanceWidget">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>480</width>
<height>343</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>480</width>
<height>320</height>
</size>
</property>
<property name="windowTitle">
<string notr="true">Configuration Window</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<widget class="QTabWidget" name="tabWidget">
<property name="currentIndex">
<number>0</number>
</property>
<widget class="QWidget" name="tab_active">
<attribute name="title">
<string>Active desktop</string>
</attribute>
<layout class="QGridLayout" name="gridLayout_2">
<item row="0" column="0">
<widget class="QScrollArea" name="scrollArea_active">
<property name="widgetResizable">
<bool>true</bool>
</property>
<widget class="QWidget" name="scrollAreaWidgetContents_active">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>448</width>
<height>289</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<layout class="QHBoxLayout" name="layout_fontActive">
<item>
<widget class="QLabel" name="label_fontActive">
<property name="minimumSize">
<size>
<width>200</width>
<height>0</height>
</size>
</property>
<property name="text">
<string>Font</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_fontActive">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QFontComboBox" name="fontComboBox_fontActive">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>180</width>
<height>23</height>
</size>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="layout_fontSizeActive">
<item>
<widget class="QLabel" name="label_fontSizeActive">
<property name="minimumSize">
<size>
<width>200</width>
<height>0</height>
</size>
</property>
<property name="text">
<string>Font size</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_fontSizeActive">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QSpinBox" name="spinBox_fontSizeActive">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>100</width>
<height>23</height>
</size>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="minimum">
<number>7</number>
</property>
<property name="maximum">
<number>48</number>
</property>
<property name="value">
<number>12</number>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="layout_fontColorActive">
<item>
<widget class="QLabel" name="label_fontColorActive">
<property name="minimumSize">
<size>
<width>200</width>
<height>0</height>
</size>
</property>
<property name="text">
<string>Font color</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_fontColorActive">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="KColorCombo" name="kcolorcombo_fontColorActive">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>100</width>
<height>23</height>
</size>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="layout_fontWeightActive">
<item>
<widget class="QLabel" name="label_fontWeightActive">
<property name="minimumSize">
<size>
<width>200</width>
<height>0</height>
</size>
</property>
<property name="text">
<string>Font weight</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_fontWeightActive">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QSpinBox" name="spinBox_fontWeightActive">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>100</width>
<height>23</height>
</size>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="minimum">
<number>300</number>
</property>
<property name="maximum">
<number>600</number>
</property>
<property name="singleStep">
<number>50</number>
</property>
<property name="value">
<number>400</number>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="layout_fontStyleActive">
<item>
<widget class="QLabel" name="label_fontStyleActive">
<property name="minimumSize">
<size>
<width>200</width>
<height>0</height>
</size>
</property>
<property name="text">
<string>Font style</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_fontStyleActive">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QComboBox" name="comboBox_fontStyleActive">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>100</width>
<height>23</height>
</size>
</property>
<item>
<property name="text">
<string notr="true">normal</string>
</property>
</item>
<item>
<property name="text">
<string notr="true">italic</string>
</property>
</item>
</widget>
</item>
</layout>
</item>
<item>
<spacer name="verticalSpacer_active">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>119</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="tab_inactive">
<attribute name="title">
<string>Inactive desktop</string>
</attribute>
<layout class="QGridLayout" name="gridLayout_3">
<item row="0" column="0">
<widget class="QScrollArea" name="scrollArea_inactive">
<property name="widgetResizable">
<bool>true</bool>
</property>
<widget class="QWidget" name="scrollAreaWidgetContents_inactive">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>448</width>
<height>289</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<layout class="QHBoxLayout" name="layout_fontInactive">
<item>
<widget class="QLabel" name="label_fontInactive">
<property name="minimumSize">
<size>
<width>200</width>
<height>0</height>
</size>
</property>
<property name="text">
<string>Font</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_fontInactive">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QFontComboBox" name="fontComboBox_fontInactive">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>180</width>
<height>23</height>
</size>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="layout_fontSizeInactive">
<item>
<widget class="QLabel" name="label_fontSizeInactive">
<property name="minimumSize">
<size>
<width>200</width>
<height>0</height>
</size>
</property>
<property name="text">
<string>Font size</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_fontSizeInactive">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QSpinBox" name="spinBox_fontSizeInactive">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>100</width>
<height>23</height>
</size>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="minimum">
<number>7</number>
</property>
<property name="maximum">
<number>48</number>
</property>
<property name="value">
<number>12</number>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="layout_fontColorInactive">
<item>
<widget class="QLabel" name="label_fontColorInactive">
<property name="minimumSize">
<size>
<width>200</width>
<height>0</height>
</size>
</property>
<property name="text">
<string>Font color</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_fontColorInactive">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="KColorCombo" name="kcolorcombo_fontColorInactive">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>100</width>
<height>23</height>
</size>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="layout_fontWeightInactive">
<item>
<widget class="QLabel" name="label_fontWeightInactive">
<property name="minimumSize">
<size>
<width>200</width>
<height>0</height>
</size>
</property>
<property name="text">
<string>Font weight</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_fontWeightInactive">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QSpinBox" name="spinBox_fontWeightInactive">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>100</width>
<height>23</height>
</size>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="minimum">
<number>300</number>
</property>
<property name="maximum">
<number>600</number>
</property>
<property name="singleStep">
<number>50</number>
</property>
<property name="value">
<number>400</number>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="layout_fontStyleInactive">
<item>
<widget class="QLabel" name="label_fontStyleInactive">
<property name="minimumSize">
<size>
<width>200</width>
<height>0</height>
</size>
</property>
<property name="text">
<string>Font style</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_fontStyleInactive">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QComboBox" name="comboBox_fontStyleInactive">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>100</width>
<height>23</height>
</size>
</property>
<item>
<property name="text">
<string notr="true">normal</string>
</property>
</item>
<item>
<property name="text">
<string notr="true">italic</string>
</property>
</item>
</widget>
</item>
</layout>
</item>
<item>
<spacer name="verticalSpacer_inactive">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>119</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</widget>
</item>
</layout>
</widget>
</widget>
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>KColorCombo</class>
<extends>QComboBox</extends>
<header>kcolorcombo.h</header>
</customwidget>
</customwidgets>
<resources/>
<connections/>
</ui>

View File

@ -0,0 +1,422 @@
/***************************************************************************
* This file is part of pytextmonitor *
* *
* pytextmonitor is free software: you can redistribute it and/or *
* modify it under the terms of the GNU General Public License as *
* published by the Free Software Foundation, either version 3 of the *
* License, or (at your option) any later version. *
* *
* pytextmonitor 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 General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with pytextmonitor. If not, see http://www.gnu.org/licenses/ *
***************************************************************************/
#include "desktop-panel.h"
#include "ui_appearance.h"
#include "ui_widget.h"
#include <KDE/KConfigDialog>
#include <KDE/KGlobal>
#include <KDE/KStandardDirs>
#include <plasma/theme.h>
#include <QDebug>
#include <QFile>
#include <QGraphicsLinearLayout>
#include <QGraphicsSceneMouseEvent>
#include <QProcessEnvironment>
#include <QTextCodec>
CustomPlasmaLabel::CustomPlasmaLabel(DesktopPanel *wid, const int num)
: Plasma::Label(wid)
{
// debug
QProcessEnvironment environment = QProcessEnvironment::systemEnvironment();
QString debugEnv = environment.value(QString("PTM_DEBUG"), QString("no"));
if (debugEnv == QString("yes"))
debug = true;
else
debug = false;
if (debug) qDebug() << "[PTM-DP]" << "Init label" << num;
number = num;
widget = wid;
}
CustomPlasmaLabel::~CustomPlasmaLabel()
{
}
int CustomPlasmaLabel::getNumber()
{
if (debug) qDebug() << "[PTM-DP]" << "[" << number << "]" << "[getNumber]";
return number;
}
void CustomPlasmaLabel::mousePressEvent(QGraphicsSceneMouseEvent *event)
{
if (debug) qDebug() << "[PTM-DP]" << "[" << number << "]" << "[mouseMoveEvent]";
if (debug) qDebug() << "[PTM-DP]" << "[" << number << "]" << "[mouseMoveEvent]" << "Get signal" << event->button();
if (event->button() == Qt::LeftButton)
widget->setCurrentDesktop(number);
}
DesktopPanel::DesktopPanel(QObject *parent, const QVariantList &args)
: Plasma::Applet(parent, args)
{
// debug
QProcessEnvironment environment = QProcessEnvironment::systemEnvironment();
QString debugEnv = environment.value(QString("PTM_DEBUG"), QString("no"));
if (debugEnv == QString("yes"))
debug = true;
else
debug = false;
setHasConfigurationInterface(true);
// text format init
currentFormatLine.append(QString(""));
currentFormatLine.append(QString(""));
formatLine.append(QString(""));
formatLine.append(QString(""));
}
DesktopPanel::~DesktopPanel()
{
// for (int i=0; i<labels.count(); i++)
// delete labels[i];
// delete layout;
}
void DesktopPanel::init()
{
if (debug) qDebug() << "[PTM-DP]" << "[init]";
extsysmonEngine = dataEngine(QString("ext-sysmon"));
layout = new QGraphicsLinearLayout();
layout->setContentsMargins(1, 1, 1, 1);
setLayout(layout);
currentDesktop = 1;
// read variables
configChanged();
}
QStringList DesktopPanel::getDesktopNames()
{
if (debug) qDebug() << "[PTM-DP]" << "[getDesktopNames]";
QStringList list;
QString fileName = KGlobal::dirs()->findResource("config", "kwinrc");
if (debug) qDebug() << "[PTM-DP]" << "[getDesktopNames]" << ":" << "Configuration file" << fileName;
QFile confFile(fileName);
if (!confFile.open(QIODevice::ReadOnly)) return list;
QString fileStr;
QStringList value;
bool desktopSection = false;
while (true) {
fileStr = QString(confFile.readLine()).trimmed();
if (fileStr[0] == QChar('#')) continue;
if (fileStr[0] == QChar(';')) continue;
if (fileStr[0] == QChar('[')) desktopSection = false;
if (fileStr == QString("[Desktops]")) desktopSection = true;
if (desktopSection) {
if (fileStr.contains(QChar('='))) {
value.clear();
for (int i=1; i<fileStr.split(QChar('=')).count(); i++)
value.append(fileStr.split(QChar('='))[i]);
if (fileStr.split(QChar('='))[0].contains(QString("Name_")))
list.append(value.join(QChar('=')));
}
}
if (confFile.atEnd())
break;
}
confFile.close();
return list;
}
QString DesktopPanel::parsePattern(const QString rawLine, const int num)
{
if (debug) qDebug() << "[PTM-DP]" << "[parsePattern]";
if (debug) qDebug() << "[PTM-DP]" << "[parsePattern]" << "Run function with raw line" << rawLine;
if (debug) qDebug() << "[PTM-DP]" << "[parsePattern]" << "Run function with number" << num;
QString line, mark;
line = rawLine;
if (currentDesktop == num + 1)
mark = configuration[QString("mark")];
else
mark = QString("");
if (line.split(QString("$mark"))[0] != line) {
if (debug) qDebug() << "[PTM-DP]" << "[parsePattern]" << "Found mark";
line = line.split(QString("$mark"))[0] + mark + line.split(QString("$mark"))[1];
}
if (line.split(QString("$name"))[0] != line) {
if (debug) qDebug() << "[PTM-DP]" << "[parsePattern]" << "Found name";
line = line.split(QString("$name"))[0] + desktopNames[num] + line.split(QString("$name"))[1];
}
if (line.split(QString("$number"))[0] != line) {
if (debug) qDebug() << "[PTM-DP]" << "[parsePattern]" << "Found number";
line = line.split(QString("$number"))[0] + QString::number(num + 1) + line.split(QString("$number"))[1];
}
if (line.split(QString("$total"))[0] != line) {
if (debug) qDebug() << "[PTM-DP]" << "[parsePattern]" << "Found total";
line = line.split(QString("$total"))[0] + QString::number(desktopNames.count()) + line.split(QString("$total"))[1];
}
return line;
}
void DesktopPanel::reinit()
{
if (debug) qDebug() << "[PTM-DP]" << "[reinit]";
// clear
// labels
for (int i=0; i<labels.count(); i++) {
layout->removeItem(labels[i]);
delete labels[i];
}
labels.clear();
// layout
layout = new QGraphicsLinearLayout();
layout->setContentsMargins(1, 1, 1, 1);
setLayout(layout);
// add
// layout
if (configuration[QString("background")].toInt() == 0)
setBackgroundHints(NoBackground);
else
setBackgroundHints(DefaultBackground);
if (configuration[QString("layout")].toInt() == 0)
layout->setOrientation(Qt::Horizontal);
else
layout->setOrientation(Qt::Horizontal);
// left stretch
if (configuration[QString("leftStretch")].toInt() == 2)
layout->addStretch(1);
// labels
for (int i=0; i<desktopNames.count(); i++) {
labels.append(new CustomPlasmaLabel(this, i));
layout->addItem(labels[i]);
}
// right stretch
if (configuration[QString("rightStretch")].toInt() == 2)
layout->addStretch(1);
updateText();
}
int DesktopPanel::setCurrentDesktop(const int number)
{
if (debug) qDebug() << "[PTM-DP]" << "[setCurrentDesktop]";
if (debug) qDebug() << "[PTM-DP]" << "[setCurrentDesktop]" << "Set desktop" << number + 1;
QString cmd = parsePattern(configuration[QString("desktopcmd")], number);
if (debug) qDebug() << "[PTM-DP]" << "[setCurrentDesktop]" << "Run cmd " << cmd;
QProcess command;
command.start(cmd);
command.waitForFinished(-1);
int status = command.exitCode();
if (debug) qDebug() << "[PTM-DP]" << "[setCurrentDesktop]" << "Cmd returns " << status;
return status;
}
void DesktopPanel::updateText()
{
if (debug) qDebug() << "[PTM-DP]" << "[updateText]";
if (labels.isEmpty()) return;
QString line, text;
for (int i=0; i<labels.count(); i++) {
if (debug) qDebug() << "[PTM-DP]" << "[updateText]" << "Label" << i;
line = parsePattern(configuration[QString("pattern")], i);
if (currentDesktop == i + 1)
text = currentFormatLine[0] + line + currentFormatLine[1];
else
text = formatLine[0] + line + formatLine[1];
labels[i]->setText(text);
}
resize(1, 1);
}
// data engine interaction
void DesktopPanel::dataUpdated(const QString &sourceName, const Plasma::DataEngine::Data &data)
{
if (debug) qDebug() << "[PTM-DP]" << "[dataUpdated]";
if (debug) qDebug() << "[PTM-DP]" << "[dataUpdated]" << ":" << "Run function with source name" << sourceName;
if (data.keys().count() == 0)
return;
if (sourceName == QString("desktop")) {
currentDesktop = data[QString("currentNumber")].toInt();
updateText();
}
}
// configuration interface
void DesktopPanel::createConfigurationInterface(KConfigDialog *parent)
{
if (debug) qDebug() << "[PTM-DP]" << "[createConfigurationInterface]";
QWidget *appWidget = new QWidget;
uiAppConfig.setupUi(appWidget);
QWidget *configWidget = new QWidget;
uiWidConfig.setupUi(configWidget);
if (configuration[QString("background")].toInt() == 0)
uiWidConfig.checkBox_background->setCheckState(Qt::Unchecked);
else
uiWidConfig.checkBox_background->setCheckState(Qt::Checked);
if (configuration[QString("layout")].toInt() == 0)
uiWidConfig.checkBox_layout->setCheckState(Qt::Unchecked);
else
uiWidConfig.checkBox_layout->setCheckState(Qt::Checked);
if (configuration[QString("leftStretch")].toInt() == 0)
uiWidConfig.checkBox_leftStretch->setCheckState(Qt::Unchecked);
else
uiWidConfig.checkBox_leftStretch->setCheckState(Qt::Checked);
if (configuration[QString("rightStretch")].toInt() == 0)
uiWidConfig.checkBox_rightStretch->setCheckState(Qt::Unchecked);
else
uiWidConfig.checkBox_rightStretch->setCheckState(Qt::Checked);
uiWidConfig.spinBox_interval->setValue(configuration[QString("interval")].toInt());
uiWidConfig.comboBox_mark->setItemText(uiWidConfig.comboBox_mark->count()-1, configuration[QString("mark")]);
uiWidConfig.comboBox_mark->setCurrentIndex(uiWidConfig.comboBox_mark->count()-1);
uiWidConfig.lineEdit_pattern->setText(configuration[QString("pattern")]);
uiWidConfig.lineEdit_desktopcmd->setText(configuration[QString("desktopcmd")]);
KConfigGroup cg = config();
QString fontFamily = cg.readEntry("currentFontFamily", "Terminus");
int fontSize = cg.readEntry("currentFontSize", 10);
QString fontColor = cg.readEntry("currentFontColor", "#ff0000");
int fontWeight = cg.readEntry("currentFontWeight", 400);
QString fontStyle = cg.readEntry("currentFontStyle", "normal");
QFont font = QFont(fontFamily, 12, 400, FALSE);
uiAppConfig.fontComboBox_fontActive->setCurrentFont(font);
uiAppConfig.spinBox_fontSizeActive->setValue(fontSize);
uiAppConfig.kcolorcombo_fontColorActive->setColor(fontColor);
uiAppConfig.spinBox_fontWeightActive->setValue(fontWeight);
if (fontStyle == "normal")
uiAppConfig.comboBox_fontStyleActive->setCurrentIndex(0);
else if (fontStyle == "italic")
uiAppConfig.comboBox_fontStyleActive->setCurrentIndex(1);
fontFamily = cg.readEntry("fontFamily", "Terminus");
fontSize = cg.readEntry("fontSize", 10);
fontColor = cg.readEntry("fontColor", "#000000");
fontWeight = cg.readEntry("fontWeight", 400);
fontStyle = cg.readEntry("fontStyle", "normal");
font = QFont(fontFamily, 12, 400, FALSE);
uiAppConfig.fontComboBox_fontInactive->setCurrentFont(font);
uiAppConfig.spinBox_fontSizeInactive->setValue(fontSize);
uiAppConfig.kcolorcombo_fontColorInactive->setColor(fontColor);
uiAppConfig.spinBox_fontWeightInactive->setValue(fontWeight);
if (fontStyle == "normal")
uiAppConfig.comboBox_fontStyleInactive->setCurrentIndex(0);
else if (fontStyle == "italic")
uiAppConfig.comboBox_fontStyleInactive->setCurrentIndex(1);
parent->addPage(configWidget, i18n("Widget"), Applet::icon());
parent->addPage(appWidget, i18n("Appearance"), QString("preferences-desktop-theme"));
connect(parent, SIGNAL(okClicked()), this, SLOT(configAccepted()));
connect(parent, SIGNAL(applyClicked()), this, SLOT(configAccepted()));
}
void DesktopPanel::configAccepted()
{
if (debug) qDebug() << "[PTM-DP]" << "[configAccepted]";
extsysmonEngine->disconnectSource(QString("desktop"), this);
KConfigGroup cg = config();
cg.writeEntry("background", QString::number(uiWidConfig.checkBox_background->checkState()));
cg.writeEntry("layout", QString::number(uiWidConfig.checkBox_layout->checkState()));
cg.writeEntry("leftStretch", QString::number(uiWidConfig.checkBox_leftStretch->checkState()));
cg.writeEntry("rightStretch", QString::number(uiWidConfig.checkBox_rightStretch->checkState()));
cg.writeEntry("interval", QString::number(uiWidConfig.spinBox_interval->value()));
cg.writeEntry("mark", uiWidConfig.comboBox_mark->currentText());
cg.writeEntry("pattern", uiWidConfig.lineEdit_pattern->text());
cg.writeEntry("desktopcmd", uiWidConfig.lineEdit_desktopcmd->text());
cg.writeEntry("currentFontFamily", uiAppConfig.fontComboBox_fontActive->currentFont().family());
cg.writeEntry("currentFontSize", uiAppConfig.spinBox_fontSizeActive->value());
cg.writeEntry("currentFontColor", uiAppConfig.kcolorcombo_fontColorActive->color().name());
cg.writeEntry("currentFontWeight", uiAppConfig.spinBox_fontWeightActive->value());
cg.writeEntry("currentFontStyle", uiAppConfig.comboBox_fontStyleActive->currentText());
cg.writeEntry("fontFamily", uiAppConfig.fontComboBox_fontInactive->currentFont().family());
cg.writeEntry("fontSize", uiAppConfig.spinBox_fontSizeInactive->value());
cg.writeEntry("fontColor", uiAppConfig.kcolorcombo_fontColorInactive->color().name());
cg.writeEntry("fontWeight", uiAppConfig.spinBox_fontWeightInactive->value());
cg.writeEntry("fontStyle", uiAppConfig.comboBox_fontStyleInactive->currentText());
}
void DesktopPanel::configChanged()
{
if (debug) qDebug() << "[PTM-DP]" << "[configChanged]";
KConfigGroup cg = config();
configuration[QString("background")] = cg.readEntry("background", "0");
configuration[QString("desktopcmd")] = cg.readEntry("desktopcmd", "qdbus org.kde.kwin /KWin setCurrentDesktop $number");
configuration[QString("interval")] = cg.readEntry("interval", "1000");
configuration[QString("layout")] = cg.readEntry("layout", "0");
configuration[QString("leftStretch")] = cg.readEntry("leftStretch", "2");
configuration[QString("mark")] = cg.readEntry("mark", "¤");
configuration[QString("pattern")] = cg.readEntry("pattern", "[$mark$number/$total: $name]");
configuration[QString("rightStretch")] = cg.readEntry("rightStretch", "2");
desktopNames = getDesktopNames();
extsysmonEngine->connectSource(QString("desktop"), this, configuration[QString("interval")].toInt());
QString fontFamily = cg.readEntry("currentFontFamily", "Terminus");
int fontSize = cg.readEntry("currentFontSize", 10);
QString fontColor = cg.readEntry("currentFontColor", "#ff0000");
int fontWeight = cg.readEntry("currentFontWeight", 400);
QString fontStyle = cg.readEntry("currentFontStyle", "normal");
currentFormatLine[0] = ("<p align=\"center\"><span style=\" font-family:'" + fontFamily + \
"'; font-style:" + fontStyle + \
"; font-size:" + QString::number(fontSize) + \
"pt; font-weight:" + QString::number(fontWeight) + \
"; color:" + fontColor + \
";\"><pre>");
currentFormatLine[1] = ("</pre></span></p>");
fontFamily = cg.readEntry("fontFamily", "Terminus");
fontSize = cg.readEntry("fontSize", 10);
fontColor = cg.readEntry("fontColor", "#000000");
fontWeight = cg.readEntry("fontWeight", 400);
fontStyle = cg.readEntry("fontStyle", "normal");
formatLine[0] = ("<p align=\"center\"><span style=\" font-family:'" + fontFamily + \
"'; font-style:" + fontStyle + \
"; font-size:" + QString::number(fontSize) + \
"pt; font-weight:" + QString::number(fontWeight) + \
"; color:" + fontColor + \
";\"><pre>");
formatLine[1] = ("</pre></span></p>");
reinit();
}
#include "desktop-panel.moc"

View File

@ -0,0 +1,105 @@
/***************************************************************************
* This file is part of pytextmonitor *
* *
* pytextmonitor is free software: you can redistribute it and/or *
* modify it under the terms of the GNU General Public License as *
* published by the Free Software Foundation, either version 3 of the *
* License, or (at your option) any later version. *
* *
* pytextmonitor 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 General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with pytextmonitor. If not, see http://www.gnu.org/licenses/ *
***************************************************************************/
#ifndef DESKTOP_PANEL_H
#define DESKTOP_PANEL_H
#include <Plasma/Applet>
#include <Plasma/DataEngine>
#include <Plasma/Label>
#include <ui_appearance.h>
#include <ui_widget.h>
class QGraphicsLinearLayout;
class DesktopPanel;
class CustomPlasmaLabel : public Plasma::Label
{
Q_OBJECT
public:
CustomPlasmaLabel(DesktopPanel *wid, const int num);
~CustomPlasmaLabel();
int getNumber();
protected:
void mousePressEvent(QGraphicsSceneMouseEvent *event);
private:
// debug
bool debug;
// variables
int number;
DesktopPanel *widget;
};
class DesktopPanel : public Plasma::Applet
{
Q_OBJECT
public:
DesktopPanel(QObject *parent, const QVariantList &args);
~DesktopPanel();
void init();
QString parsePattern(const QString rawLine, const int num);
public slots:
// dataengine
void dataUpdated(const QString &sourceName, const Plasma::DataEngine::Data &data);
// configuration interface
void configAccepted();
void configChanged();
// event
int setCurrentDesktop(const int number);
private slots:
void reinit();
protected:
void createConfigurationInterface(KConfigDialog *parent);
private:
// functions
QStringList getDesktopNames();
void updateText();
// ui
QGraphicsLinearLayout *layout;
QList<CustomPlasmaLabel *> labels;
// debug
bool debug;
// data engine
int currentDesktop;
Plasma::DataEngine *extsysmonEngine;
// configuration interface
Ui::AppearanceWidget uiAppConfig;
Ui::ConfigWindow uiWidConfig;
// configuration
QMap<QString, QString> configuration;
QStringList desktopNames;
QStringList currentFormatLine;
QStringList formatLine;
};
K_EXPORT_PLASMA_APPLET(ptm-desktop-panel, DesktopPanel)
#endif /* DESKTOP_PANEL_H */

View File

@ -0,0 +1,25 @@
[Desktop Entry]
Encoding=UTF-8
Name=PTM Desktop Panel
Comment=A minimalistic Plasmoid script written on Python2
Comment[en]=A minimalistic Plasmoid script written on Python2
Comment[es]=Un plasmoide minimalista escrito en Python2
Comment[es]=Un script Plasmoïde minimaliste écrit sur Python2
Comment[pt_BR]=Um script Plasmoid escrito em Python2
Comment[ru]=Минималистичный плазмоид скрипт, написанный на Python2
Comment[uk]=Мінімалістичний плазмоїд, що написаний на Python2
X-KDE-ServiceTypes=Plasma/Applet
Type=Service
Icon=utilities-system-monitor
X-KDE-Library=plasma_applet_ptm-desktop-panel
X-KDE-PluginInfo-Author=Evgeniy Alekseev aka arcanis
X-KDE-PluginInfo-Email=esalexeev@gmail.com
X-KDE-PluginInfo-Name=ptm-desktop-panel
X-KDE-PluginInfo-Version=@PROJECT_VERSION@
X-KDE-PluginInfo-Website=http://arcanis.name/projects/pytextmonitor/
X-KDE-PluginInfo-Category=System Information
X-KDE-PluginInfo-Depends=
X-KDE-PluginInfo-License=GPLv3
X-KDE-PluginInfo-EnabledByDefault=true

View File

@ -0,0 +1,24 @@
find_package(KDE4 REQUIRED)
find_package(Gettext REQUIRED)
if (NOT GETTEXT_MSGFMT_EXECUTABLE)
message(FATAL_ERROR "Please install the msgfmt binary")
endif (NOT GETTEXT_MSGFMT_EXECUTABLE)
file (GLOB _po_files *.po)
set (_gmoFiles)
foreach (_current_PO_FILE ${_po_files})
get_filename_component (_lang ${_current_PO_FILE} NAME_WE)
set (_gmoFile ${CMAKE_CURRENT_BINARY_DIR}/${_lang}.gmo)
add_custom_command (OUTPUT ${_gmoFile}
COMMAND ${GETTEXT_MSGFMT_EXECUTABLE} -o ${_gmoFile} ${_current_PO_FILE}
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
DEPENDS ${_current_PO_FILE}
)
install (FILES ${CMAKE_CURRENT_BINARY_DIR}/${_lang}.gmo DESTINATION ${LOCALE_INSTALL_DIR}/${_lang}/LC_MESSAGES/ RENAME plasma_applet_netctl.mo)
list (APPEND _gmoFiles ${_gmoFile})
endforeach (_current_PO_FILE)
add_custom_target (pofiles ALL DEPENDS ${_gmoFiles})

View File

@ -0,0 +1,198 @@
# Copyright (C) 2014
# This file is distributed under the same license as the PyTextMonitor package.
#
# Evgeniy Alekseev <esalexeev@gmail.com>, 2014.
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: https://github.com/arcan1s/pytextmonitor/issues\n"
"POT-Creation-Date: 2014-07-09 10:38+0400\n"
"PO-Revision-Date: 2014-07-09 10:36+0400\n"
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
"Language-Team: English <kde-russian@lists.kde.ru>\n"
"Language: ru\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
"X-Generator: Lokalize 1.5\n"
#: desktop-panel.cpp:325
msgid "Widget"
msgstr "Widget"
#: desktop-panel.cpp:326
msgid "Appearance"
msgstr "Appearance"
#. i18n: file: appearance.ui:30
#. i18n: ectx: attribute (title), widget (QWidget, tab_active)
#: po/rc.cpp:3 rc.cpp:3
msgid "Active desktop"
msgstr "Active desktop"
#. i18n: file: appearance.ui:59
#. i18n: ectx: property (text), widget (QLabel, label_fontActive)
#. i18n: file: appearance.ui:365
#. i18n: ectx: property (text), widget (QLabel, label_fontInactive)
#. i18n: file: appearance.ui:59
#. i18n: ectx: property (text), widget (QLabel, label_fontActive)
#. i18n: file: appearance.ui:365
#. i18n: ectx: property (text), widget (QLabel, label_fontInactive)
#: po/rc.cpp:6 po/rc.cpp:24 rc.cpp:6 rc.cpp:24
msgid "Font"
msgstr "Font"
#. i18n: file: appearance.ui:105
#. i18n: ectx: property (text), widget (QLabel, label_fontSizeActive)
#. i18n: file: appearance.ui:411
#. i18n: ectx: property (text), widget (QLabel, label_fontSizeInactive)
#. i18n: file: appearance.ui:105
#. i18n: ectx: property (text), widget (QLabel, label_fontSizeActive)
#. i18n: file: appearance.ui:411
#. i18n: ectx: property (text), widget (QLabel, label_fontSizeInactive)
#: po/rc.cpp:9 po/rc.cpp:27 rc.cpp:9 rc.cpp:27
msgid "Font size"
msgstr "Font size"
#. i18n: file: appearance.ui:163
#. i18n: ectx: property (text), widget (QLabel, label_fontColorActive)
#. i18n: file: appearance.ui:469
#. i18n: ectx: property (text), widget (QLabel, label_fontColorInactive)
#. i18n: file: appearance.ui:163
#. i18n: ectx: property (text), widget (QLabel, label_fontColorActive)
#. i18n: file: appearance.ui:469
#. i18n: ectx: property (text), widget (QLabel, label_fontColorInactive)
#: po/rc.cpp:12 po/rc.cpp:30 rc.cpp:12 rc.cpp:30
msgid "Font color"
msgstr "Font color"
#. i18n: file: appearance.ui:209
#. i18n: ectx: property (text), widget (QLabel, label_fontWeightActive)
#. i18n: file: appearance.ui:515
#. i18n: ectx: property (text), widget (QLabel, label_fontWeightInactive)
#. i18n: file: appearance.ui:209
#. i18n: ectx: property (text), widget (QLabel, label_fontWeightActive)
#. i18n: file: appearance.ui:515
#. i18n: ectx: property (text), widget (QLabel, label_fontWeightInactive)
#: po/rc.cpp:15 po/rc.cpp:33 rc.cpp:15 rc.cpp:33
msgid "Font weight"
msgstr "Font weight"
#. i18n: file: appearance.ui:270
#. i18n: ectx: property (text), widget (QLabel, label_fontStyleActive)
#. i18n: file: appearance.ui:576
#. i18n: ectx: property (text), widget (QLabel, label_fontStyleInactive)
#. i18n: file: appearance.ui:270
#. i18n: ectx: property (text), widget (QLabel, label_fontStyleActive)
#. i18n: file: appearance.ui:576
#. i18n: ectx: property (text), widget (QLabel, label_fontStyleInactive)
#: po/rc.cpp:18 po/rc.cpp:36 rc.cpp:18 rc.cpp:36
msgid "Font style"
msgstr "Font style"
#. i18n: file: appearance.ui:336
#. i18n: ectx: attribute (title), widget (QWidget, tab_inactive)
#: po/rc.cpp:21 rc.cpp:21
msgid "Inactive desktop"
msgstr "Inactive desktop"
#. i18n: file: widget.ui:41
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_background)
#: po/rc.cpp:39 rc.cpp:39
msgid "Enable background"
msgstr "Enable background"
#. i18n: file: widget.ui:48
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_layout)
#: po/rc.cpp:42 rc.cpp:42
msgid "Vertical layout"
msgstr "Vertical layout"
#. i18n: file: widget.ui:55
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_leftStretch)
#: po/rc.cpp:45 rc.cpp:45
msgid "Add stretch to left/top of the layout"
msgstr "Add stretch to left/top of the layout"
#. i18n: file: widget.ui:62
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_rightStretch)
#: po/rc.cpp:48 rc.cpp:48
msgid "Add stretch to right/bottom of the layout"
msgstr "Add stretch to right/bottom of the layout"
#. i18n: file: widget.ui:77
#. i18n: ectx: property (text), widget (QLabel, label_interval)
#: po/rc.cpp:51 rc.cpp:51
msgid "Time interval"
msgstr "Time interval"
#. i18n: file: widget.ui:132
#. i18n: ectx: property (text), widget (QLabel, label_mark)
#: po/rc.cpp:54 rc.cpp:54
msgid "Mark"
msgstr "Mark"
#. i18n: file: widget.ui:139
#. i18n: ectx: property (toolTip), widget (QComboBox, comboBox_mark)
#: po/rc.cpp:57 rc.cpp:57
msgid "A mark which will be shown if this desktop is active"
msgstr "A mark which will be shown if this desktop is active"
#. i18n: file: widget.ui:229
#. i18n: ectx: property (text), widget (QLabel, label_pattern)
#: po/rc.cpp:60 rc.cpp:60
msgid "Pattern"
msgstr "Pattern"
#. i18n: file: widget.ui:239
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_pattern)
#: po/rc.cpp:63 rc.cpp:63
msgid ""
"$mark - show mark if the current desktop is active\n"
"$name - desktop name\n"
"$number - desktop number\n"
"$total - total number of desktops"
msgstr ""
"$mark - show mark if the current desktop is active\n"
"$name - desktop name\n"
"$number - desktop number\n"
"$total - total number of desktops"
#. i18n: file: widget.ui:256
#. i18n: ectx: property (text), widget (QLabel, label_desktopcmd)
#: po/rc.cpp:69 rc.cpp:69
msgid "Command to change desktop"
msgstr "Command to change desktop"
#. i18n: file: widget.ui:263
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_desktopcmd)
#: po/rc.cpp:72 rc.cpp:72
msgid "Command which will change the current desktop"
msgstr "Command which will change the current desktop"
#: po/rc.cpp:73 rc.cpp:73
msgctxt "NAME OF TRANSLATORS"
msgid "Your names"
msgstr "Evgeniy Alekseev"
#: po/rc.cpp:74 rc.cpp:74
msgctxt "EMAIL OF TRANSLATORS"
msgid "Your emails"
msgstr "esalexeev@gmail.com"
#~ msgid "Set font family"
#~ msgstr "Set font family"
#~ msgid "Set font size"
#~ msgstr "Set font size"
#~ msgid "Set font color"
#~ msgstr "Set font color"
#~ msgid "Set font weight"
#~ msgstr "Set font weight"
#~ msgid "Set font style"
#~ msgstr "Set font style"

View File

@ -0,0 +1,179 @@
# Copyright (C) 2014
# This file is distributed under the same license as the PyTextMonitor package.
#
# Ernesto Avilés Vzqz <whippiii@gmail.com>, 2014.
# Evgeniy Alekseev <esalexeev@gmail.com>, 2014.
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: https://github.com/arcan1s/pytextmonitor/issues\n"
"POT-Creation-Date: 2014-07-09 10:38+0400\n"
"PO-Revision-Date: 2014-06-05 10:21+0400\n"
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
"Language-Team: Spanish <kde-spanish@lists.kde.ru>\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Lokalize 1.5\n"
#: desktop-panel.cpp:325
msgid "Widget"
msgstr "Widget"
#: desktop-panel.cpp:326
msgid "Appearance"
msgstr "Apariencia"
#. i18n: file: appearance.ui:30
#. i18n: ectx: attribute (title), widget (QWidget, tab_active)
#: po/rc.cpp:3 rc.cpp:3
msgid "Active desktop"
msgstr ""
#. i18n: file: appearance.ui:59
#. i18n: ectx: property (text), widget (QLabel, label_fontActive)
#. i18n: file: appearance.ui:365
#. i18n: ectx: property (text), widget (QLabel, label_fontInactive)
#. i18n: file: appearance.ui:59
#. i18n: ectx: property (text), widget (QLabel, label_fontActive)
#. i18n: file: appearance.ui:365
#. i18n: ectx: property (text), widget (QLabel, label_fontInactive)
#: po/rc.cpp:6 po/rc.cpp:24 rc.cpp:6 rc.cpp:24
msgid "Font"
msgstr "Fuente"
#. i18n: file: appearance.ui:105
#. i18n: ectx: property (text), widget (QLabel, label_fontSizeActive)
#. i18n: file: appearance.ui:411
#. i18n: ectx: property (text), widget (QLabel, label_fontSizeInactive)
#. i18n: file: appearance.ui:105
#. i18n: ectx: property (text), widget (QLabel, label_fontSizeActive)
#. i18n: file: appearance.ui:411
#. i18n: ectx: property (text), widget (QLabel, label_fontSizeInactive)
#: po/rc.cpp:9 po/rc.cpp:27 rc.cpp:9 rc.cpp:27
msgid "Font size"
msgstr "Tamaño de fuente"
#. i18n: file: appearance.ui:163
#. i18n: ectx: property (text), widget (QLabel, label_fontColorActive)
#. i18n: file: appearance.ui:469
#. i18n: ectx: property (text), widget (QLabel, label_fontColorInactive)
#. i18n: file: appearance.ui:163
#. i18n: ectx: property (text), widget (QLabel, label_fontColorActive)
#. i18n: file: appearance.ui:469
#. i18n: ectx: property (text), widget (QLabel, label_fontColorInactive)
#: po/rc.cpp:12 po/rc.cpp:30 rc.cpp:12 rc.cpp:30
msgid "Font color"
msgstr "Color de fuente"
#. i18n: file: appearance.ui:209
#. i18n: ectx: property (text), widget (QLabel, label_fontWeightActive)
#. i18n: file: appearance.ui:515
#. i18n: ectx: property (text), widget (QLabel, label_fontWeightInactive)
#. i18n: file: appearance.ui:209
#. i18n: ectx: property (text), widget (QLabel, label_fontWeightActive)
#. i18n: file: appearance.ui:515
#. i18n: ectx: property (text), widget (QLabel, label_fontWeightInactive)
#: po/rc.cpp:15 po/rc.cpp:33 rc.cpp:15 rc.cpp:33
msgid "Font weight"
msgstr "Grosor de la fuente"
#. i18n: file: appearance.ui:270
#. i18n: ectx: property (text), widget (QLabel, label_fontStyleActive)
#. i18n: file: appearance.ui:576
#. i18n: ectx: property (text), widget (QLabel, label_fontStyleInactive)
#. i18n: file: appearance.ui:270
#. i18n: ectx: property (text), widget (QLabel, label_fontStyleActive)
#. i18n: file: appearance.ui:576
#. i18n: ectx: property (text), widget (QLabel, label_fontStyleInactive)
#: po/rc.cpp:18 po/rc.cpp:36 rc.cpp:18 rc.cpp:36
msgid "Font style"
msgstr "Estilo de fuente"
#. i18n: file: appearance.ui:336
#. i18n: ectx: attribute (title), widget (QWidget, tab_inactive)
#: po/rc.cpp:21 rc.cpp:21
msgid "Inactive desktop"
msgstr ""
#. i18n: file: widget.ui:41
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_background)
#: po/rc.cpp:39 rc.cpp:39
msgid "Enable background"
msgstr ""
#. i18n: file: widget.ui:48
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_layout)
#: po/rc.cpp:42 rc.cpp:42
msgid "Vertical layout"
msgstr "Orientación vertical"
#. i18n: file: widget.ui:55
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_leftStretch)
#: po/rc.cpp:45 rc.cpp:45
msgid "Add stretch to left/top of the layout"
msgstr "Añadir extensión a la izquierda/superior de la distribución"
#. i18n: file: widget.ui:62
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_rightStretch)
#: po/rc.cpp:48 rc.cpp:48
msgid "Add stretch to right/bottom of the layout"
msgstr "Añadir extensión a la derecha/inferior de la distribución"
#. i18n: file: widget.ui:77
#. i18n: ectx: property (text), widget (QLabel, label_interval)
#: po/rc.cpp:51 rc.cpp:51
msgid "Time interval"
msgstr "Intervalo de tiempo"
#. i18n: file: widget.ui:132
#. i18n: ectx: property (text), widget (QLabel, label_mark)
#: po/rc.cpp:54 rc.cpp:54
msgid "Mark"
msgstr ""
#. i18n: file: widget.ui:139
#. i18n: ectx: property (toolTip), widget (QComboBox, comboBox_mark)
#: po/rc.cpp:57 rc.cpp:57
msgid "A mark which will be shown if this desktop is active"
msgstr ""
#. i18n: file: widget.ui:229
#. i18n: ectx: property (text), widget (QLabel, label_pattern)
#: po/rc.cpp:60 rc.cpp:60
msgid "Pattern"
msgstr ""
#. i18n: file: widget.ui:239
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_pattern)
#: po/rc.cpp:63 rc.cpp:63
msgid ""
"$mark - show mark if the current desktop is active\n"
"$name - desktop name\n"
"$number - desktop number\n"
"$total - total number of desktops"
msgstr ""
#. i18n: file: widget.ui:256
#. i18n: ectx: property (text), widget (QLabel, label_desktopcmd)
#: po/rc.cpp:69 rc.cpp:69
msgid "Command to change desktop"
msgstr ""
#. i18n: file: widget.ui:263
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_desktopcmd)
#: po/rc.cpp:72 rc.cpp:72
msgid "Command which will change the current desktop"
msgstr ""
#: po/rc.cpp:73 rc.cpp:73
msgctxt "NAME OF TRANSLATORS"
msgid "Your names"
msgstr "Tu nombre"
#: po/rc.cpp:74 rc.cpp:74
msgctxt "EMAIL OF TRANSLATORS"
msgid "Your emails"
msgstr "Tus correos"

View File

@ -0,0 +1,81 @@
#!/bin/sh
BASEDIR="../" # root of translatable sources
PROJECT="plasma_applet_ptm-desktop-panel" # project name
BUGADDR="https://github.com/arcan1s/pytextmonitor/issues" # MSGID-Bugs
WDIR=`pwd` # working dir
SATELLITE_LIST=satellite.list
BACKGROUND_LIST=background.list
add_list()
{
LIST=$1
if [ -z "$LIST" ]
then
echo ">>ERR<< add_list() - missing parameter LIST - exiting"
return
fi
if [ -f "$LIST" ]
then
cat $LIST | while read ROW
do
echo "tr2i18n(\"${ROW}\")" >> ${WDIR}/rc.cpp
done
else
echo ">>ERR<< add_list() - file $LIST does not exist."
fi
}
echo "Preparing rc files"
cd ${BASEDIR}
# we use simple sorting to make sure the lines do not jump around too much from system to system
find . -name '*.rc' -o -name '*.ui' -o -name '*.kcfg' | sort > ${WDIR}/rcfiles.list
xargs --arg-file=${WDIR}/rcfiles.list extractrc > ${WDIR}/rc.cpp
# additional string for KAboutData
echo 'i18nc("NAME OF TRANSLATORS","Your names");' >> ${WDIR}/rc.cpp
echo 'i18nc("EMAIL OF TRANSLATORS","Your emails");' >> ${WDIR}/rc.cpp
cd ${WDIR}
# Add Satellite list
add_list "$SATELLITE_LIST"
# Add Background list
add_list "$BACKGROUND_LIST"
echo "Done preparing rc files"
echo "Extracting messages"
cd ${BASEDIR}
# see above on sorting
find . -name '*.cpp' -o -name '*.h' -o -name '*.c' | sort > ${WDIR}/infiles.list
echo "rc.cpp" >> ${WDIR}/infiles.list
cd ${WDIR}
xgettext --from-code=UTF-8 -C -kde -ci18n -ki18n:1 -ki18nc:1c,2 -ki18np:1,2 -ki18ncp:1c,2,3 -ktr2i18n:1 \
-kI18N_NOOP:1 -kI18N_NOOP2:1c,2 -kaliasLocale -kki18n:1 -kki18nc:1c,2 -kki18np:1,2 -kki18ncp:1c,2,3 \
--msgid-bugs-address="${BUGADDR}" \
--files-from=infiles.list -D ${BASEDIR} -D ${WDIR} -o ${PROJECT}.pot || { echo "error while calling xgettext. aborting."; exit 1; }
echo "Done extracting messages"
echo "Merging translations"
catalogs=`find . -name '*.po'`
for cat in $catalogs; do
echo $cat
msgmerge -o $cat.new $cat ${PROJECT}.pot
mv $cat.new $cat
done
echo "Done merging translations"
echo "Cleaning up"
cd ${WDIR}
rm rcfiles.list
rm infiles.list
rm rc.cpp
echo "Done"

View File

@ -0,0 +1,180 @@
# Copyright (C) 2014
# This file is distributed under the same license as the PyTextMonitor package.
#
# Evgeniy Alekseev <esalexeev@gmail.com>, 2014.
# Mermouy <mermouy@gmail.com>, 2014.
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: https://github.com/arcan1s/pytextmonitor/issues\n"
"POT-Creation-Date: 2014-07-09 10:38+0400\n"
"PO-Revision-Date: 2014-06-05 19:24+0400\n"
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
"Language-Team: French <kde-french@lists.kde.ru>\n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
"X-Generator: Lokalize 1.5\n"
#: desktop-panel.cpp:325
msgid "Widget"
msgstr "Widget"
#: desktop-panel.cpp:326
msgid "Appearance"
msgstr "Apparence"
#. i18n: file: appearance.ui:30
#. i18n: ectx: attribute (title), widget (QWidget, tab_active)
#: po/rc.cpp:3 rc.cpp:3
msgid "Active desktop"
msgstr ""
#. i18n: file: appearance.ui:59
#. i18n: ectx: property (text), widget (QLabel, label_fontActive)
#. i18n: file: appearance.ui:365
#. i18n: ectx: property (text), widget (QLabel, label_fontInactive)
#. i18n: file: appearance.ui:59
#. i18n: ectx: property (text), widget (QLabel, label_fontActive)
#. i18n: file: appearance.ui:365
#. i18n: ectx: property (text), widget (QLabel, label_fontInactive)
#: po/rc.cpp:6 po/rc.cpp:24 rc.cpp:6 rc.cpp:24
msgid "Font"
msgstr "Police"
#. i18n: file: appearance.ui:105
#. i18n: ectx: property (text), widget (QLabel, label_fontSizeActive)
#. i18n: file: appearance.ui:411
#. i18n: ectx: property (text), widget (QLabel, label_fontSizeInactive)
#. i18n: file: appearance.ui:105
#. i18n: ectx: property (text), widget (QLabel, label_fontSizeActive)
#. i18n: file: appearance.ui:411
#. i18n: ectx: property (text), widget (QLabel, label_fontSizeInactive)
#: po/rc.cpp:9 po/rc.cpp:27 rc.cpp:9 rc.cpp:27
msgid "Font size"
msgstr "Taille de la police"
#. i18n: file: appearance.ui:163
#. i18n: ectx: property (text), widget (QLabel, label_fontColorActive)
#. i18n: file: appearance.ui:469
#. i18n: ectx: property (text), widget (QLabel, label_fontColorInactive)
#. i18n: file: appearance.ui:163
#. i18n: ectx: property (text), widget (QLabel, label_fontColorActive)
#. i18n: file: appearance.ui:469
#. i18n: ectx: property (text), widget (QLabel, label_fontColorInactive)
#: po/rc.cpp:12 po/rc.cpp:30 rc.cpp:12 rc.cpp:30
msgid "Font color"
msgstr "Couleur de la police"
#. i18n: file: appearance.ui:209
#. i18n: ectx: property (text), widget (QLabel, label_fontWeightActive)
#. i18n: file: appearance.ui:515
#. i18n: ectx: property (text), widget (QLabel, label_fontWeightInactive)
#. i18n: file: appearance.ui:209
#. i18n: ectx: property (text), widget (QLabel, label_fontWeightActive)
#. i18n: file: appearance.ui:515
#. i18n: ectx: property (text), widget (QLabel, label_fontWeightInactive)
#: po/rc.cpp:15 po/rc.cpp:33 rc.cpp:15 rc.cpp:33
msgid "Font weight"
msgstr "Épaisseur de la police"
#. i18n: file: appearance.ui:270
#. i18n: ectx: property (text), widget (QLabel, label_fontStyleActive)
#. i18n: file: appearance.ui:576
#. i18n: ectx: property (text), widget (QLabel, label_fontStyleInactive)
#. i18n: file: appearance.ui:270
#. i18n: ectx: property (text), widget (QLabel, label_fontStyleActive)
#. i18n: file: appearance.ui:576
#. i18n: ectx: property (text), widget (QLabel, label_fontStyleInactive)
#: po/rc.cpp:18 po/rc.cpp:36 rc.cpp:18 rc.cpp:36
msgid "Font style"
msgstr "Style de la police"
#. i18n: file: appearance.ui:336
#. i18n: ectx: attribute (title), widget (QWidget, tab_inactive)
#: po/rc.cpp:21 rc.cpp:21
msgid "Inactive desktop"
msgstr ""
#. i18n: file: widget.ui:41
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_background)
#: po/rc.cpp:39 rc.cpp:39
msgid "Enable background"
msgstr ""
#. i18n: file: widget.ui:48
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_layout)
#: po/rc.cpp:42 rc.cpp:42
msgid "Vertical layout"
msgstr "Positionnement vertical"
#. i18n: file: widget.ui:55
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_leftStretch)
#: po/rc.cpp:45 rc.cpp:45
msgid "Add stretch to left/top of the layout"
msgstr "Étirer le positionnement vers haut/gauche"
#. i18n: file: widget.ui:62
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_rightStretch)
#: po/rc.cpp:48 rc.cpp:48
msgid "Add stretch to right/bottom of the layout"
msgstr "Étirer le positionnement vers bas/droite"
#. i18n: file: widget.ui:77
#. i18n: ectx: property (text), widget (QLabel, label_interval)
#: po/rc.cpp:51 rc.cpp:51
msgid "Time interval"
msgstr "Intervalle"
#. i18n: file: widget.ui:132
#. i18n: ectx: property (text), widget (QLabel, label_mark)
#: po/rc.cpp:54 rc.cpp:54
msgid "Mark"
msgstr ""
#. i18n: file: widget.ui:139
#. i18n: ectx: property (toolTip), widget (QComboBox, comboBox_mark)
#: po/rc.cpp:57 rc.cpp:57
msgid "A mark which will be shown if this desktop is active"
msgstr ""
#. i18n: file: widget.ui:229
#. i18n: ectx: property (text), widget (QLabel, label_pattern)
#: po/rc.cpp:60 rc.cpp:60
msgid "Pattern"
msgstr ""
#. i18n: file: widget.ui:239
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_pattern)
#: po/rc.cpp:63 rc.cpp:63
msgid ""
"$mark - show mark if the current desktop is active\n"
"$name - desktop name\n"
"$number - desktop number\n"
"$total - total number of desktops"
msgstr ""
#. i18n: file: widget.ui:256
#. i18n: ectx: property (text), widget (QLabel, label_desktopcmd)
#: po/rc.cpp:69 rc.cpp:69
msgid "Command to change desktop"
msgstr ""
#. i18n: file: widget.ui:263
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_desktopcmd)
#: po/rc.cpp:72 rc.cpp:72
msgid "Command which will change the current desktop"
msgstr ""
#: po/rc.cpp:73 rc.cpp:73
msgctxt "NAME OF TRANSLATORS"
msgid "Your names"
msgstr "Evgeniy Alekseev"
#: po/rc.cpp:74 rc.cpp:74
msgctxt "EMAIL OF TRANSLATORS"
msgid "Your emails"
msgstr "esalexeev@gmail.com"

View File

@ -0,0 +1,178 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: https://github.com/arcan1s/pytextmonitor/issues\n"
"POT-Creation-Date: 2014-07-09 10:38+0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
#: desktop-panel.cpp:325
msgid "Widget"
msgstr ""
#: desktop-panel.cpp:326
msgid "Appearance"
msgstr ""
#. i18n: file: appearance.ui:30
#. i18n: ectx: attribute (title), widget (QWidget, tab_active)
#: po/rc.cpp:3 rc.cpp:3
msgid "Active desktop"
msgstr ""
#. i18n: file: appearance.ui:59
#. i18n: ectx: property (text), widget (QLabel, label_fontActive)
#. i18n: file: appearance.ui:365
#. i18n: ectx: property (text), widget (QLabel, label_fontInactive)
#. i18n: file: appearance.ui:59
#. i18n: ectx: property (text), widget (QLabel, label_fontActive)
#. i18n: file: appearance.ui:365
#. i18n: ectx: property (text), widget (QLabel, label_fontInactive)
#: po/rc.cpp:6 po/rc.cpp:24 rc.cpp:6 rc.cpp:24
msgid "Font"
msgstr ""
#. i18n: file: appearance.ui:105
#. i18n: ectx: property (text), widget (QLabel, label_fontSizeActive)
#. i18n: file: appearance.ui:411
#. i18n: ectx: property (text), widget (QLabel, label_fontSizeInactive)
#. i18n: file: appearance.ui:105
#. i18n: ectx: property (text), widget (QLabel, label_fontSizeActive)
#. i18n: file: appearance.ui:411
#. i18n: ectx: property (text), widget (QLabel, label_fontSizeInactive)
#: po/rc.cpp:9 po/rc.cpp:27 rc.cpp:9 rc.cpp:27
msgid "Font size"
msgstr ""
#. i18n: file: appearance.ui:163
#. i18n: ectx: property (text), widget (QLabel, label_fontColorActive)
#. i18n: file: appearance.ui:469
#. i18n: ectx: property (text), widget (QLabel, label_fontColorInactive)
#. i18n: file: appearance.ui:163
#. i18n: ectx: property (text), widget (QLabel, label_fontColorActive)
#. i18n: file: appearance.ui:469
#. i18n: ectx: property (text), widget (QLabel, label_fontColorInactive)
#: po/rc.cpp:12 po/rc.cpp:30 rc.cpp:12 rc.cpp:30
msgid "Font color"
msgstr ""
#. i18n: file: appearance.ui:209
#. i18n: ectx: property (text), widget (QLabel, label_fontWeightActive)
#. i18n: file: appearance.ui:515
#. i18n: ectx: property (text), widget (QLabel, label_fontWeightInactive)
#. i18n: file: appearance.ui:209
#. i18n: ectx: property (text), widget (QLabel, label_fontWeightActive)
#. i18n: file: appearance.ui:515
#. i18n: ectx: property (text), widget (QLabel, label_fontWeightInactive)
#: po/rc.cpp:15 po/rc.cpp:33 rc.cpp:15 rc.cpp:33
msgid "Font weight"
msgstr ""
#. i18n: file: appearance.ui:270
#. i18n: ectx: property (text), widget (QLabel, label_fontStyleActive)
#. i18n: file: appearance.ui:576
#. i18n: ectx: property (text), widget (QLabel, label_fontStyleInactive)
#. i18n: file: appearance.ui:270
#. i18n: ectx: property (text), widget (QLabel, label_fontStyleActive)
#. i18n: file: appearance.ui:576
#. i18n: ectx: property (text), widget (QLabel, label_fontStyleInactive)
#: po/rc.cpp:18 po/rc.cpp:36 rc.cpp:18 rc.cpp:36
msgid "Font style"
msgstr ""
#. i18n: file: appearance.ui:336
#. i18n: ectx: attribute (title), widget (QWidget, tab_inactive)
#: po/rc.cpp:21 rc.cpp:21
msgid "Inactive desktop"
msgstr ""
#. i18n: file: widget.ui:41
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_background)
#: po/rc.cpp:39 rc.cpp:39
msgid "Enable background"
msgstr ""
#. i18n: file: widget.ui:48
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_layout)
#: po/rc.cpp:42 rc.cpp:42
msgid "Vertical layout"
msgstr ""
#. i18n: file: widget.ui:55
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_leftStretch)
#: po/rc.cpp:45 rc.cpp:45
msgid "Add stretch to left/top of the layout"
msgstr ""
#. i18n: file: widget.ui:62
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_rightStretch)
#: po/rc.cpp:48 rc.cpp:48
msgid "Add stretch to right/bottom of the layout"
msgstr ""
#. i18n: file: widget.ui:77
#. i18n: ectx: property (text), widget (QLabel, label_interval)
#: po/rc.cpp:51 rc.cpp:51
msgid "Time interval"
msgstr ""
#. i18n: file: widget.ui:132
#. i18n: ectx: property (text), widget (QLabel, label_mark)
#: po/rc.cpp:54 rc.cpp:54
msgid "Mark"
msgstr ""
#. i18n: file: widget.ui:139
#. i18n: ectx: property (toolTip), widget (QComboBox, comboBox_mark)
#: po/rc.cpp:57 rc.cpp:57
msgid "A mark which will be shown if this desktop is active"
msgstr ""
#. i18n: file: widget.ui:229
#. i18n: ectx: property (text), widget (QLabel, label_pattern)
#: po/rc.cpp:60 rc.cpp:60
msgid "Pattern"
msgstr ""
#. i18n: file: widget.ui:239
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_pattern)
#: po/rc.cpp:63 rc.cpp:63
msgid ""
"$mark - show mark if the current desktop is active\n"
"$name - desktop name\n"
"$number - desktop number\n"
"$total - total number of desktops"
msgstr ""
#. i18n: file: widget.ui:256
#. i18n: ectx: property (text), widget (QLabel, label_desktopcmd)
#: po/rc.cpp:69 rc.cpp:69
msgid "Command to change desktop"
msgstr ""
#. i18n: file: widget.ui:263
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_desktopcmd)
#: po/rc.cpp:72 rc.cpp:72
msgid "Command which will change the current desktop"
msgstr ""
#: po/rc.cpp:73 rc.cpp:73
msgctxt "NAME OF TRANSLATORS"
msgid "Your names"
msgstr ""
#: po/rc.cpp:74 rc.cpp:74
msgctxt "EMAIL OF TRANSLATORS"
msgid "Your emails"
msgstr ""

View File

@ -0,0 +1,178 @@
# Copyright (C) 2014
# This file is distributed under the same license as the PyTextMonitor package.
#
# Evgeniy Alekseev <esalexeev@gmail.com>, 2014.
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: https://github.com/arcan1s/pytextmonitor/issues\n"
"POT-Creation-Date: 2014-07-09 10:38+0400\n"
"PO-Revision-Date: 2014-06-09 01:47+0400\n"
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
"Language-Team: Brazilian Portuguese <kde-russian@lists.kde.ru>\n"
"Language: pt_BR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
"X-Generator: Lokalize 1.5\n"
#: desktop-panel.cpp:325
msgid "Widget"
msgstr "Widget"
#: desktop-panel.cpp:326
msgid "Appearance"
msgstr "Aparência"
#. i18n: file: appearance.ui:30
#. i18n: ectx: attribute (title), widget (QWidget, tab_active)
#: po/rc.cpp:3 rc.cpp:3
msgid "Active desktop"
msgstr ""
#. i18n: file: appearance.ui:59
#. i18n: ectx: property (text), widget (QLabel, label_fontActive)
#. i18n: file: appearance.ui:365
#. i18n: ectx: property (text), widget (QLabel, label_fontInactive)
#. i18n: file: appearance.ui:59
#. i18n: ectx: property (text), widget (QLabel, label_fontActive)
#. i18n: file: appearance.ui:365
#. i18n: ectx: property (text), widget (QLabel, label_fontInactive)
#: po/rc.cpp:6 po/rc.cpp:24 rc.cpp:6 rc.cpp:24
msgid "Font"
msgstr "Tamanho da fonte"
#. i18n: file: appearance.ui:105
#. i18n: ectx: property (text), widget (QLabel, label_fontSizeActive)
#. i18n: file: appearance.ui:411
#. i18n: ectx: property (text), widget (QLabel, label_fontSizeInactive)
#. i18n: file: appearance.ui:105
#. i18n: ectx: property (text), widget (QLabel, label_fontSizeActive)
#. i18n: file: appearance.ui:411
#. i18n: ectx: property (text), widget (QLabel, label_fontSizeInactive)
#: po/rc.cpp:9 po/rc.cpp:27 rc.cpp:9 rc.cpp:27
msgid "Font size"
msgstr "Tamanho da fonte"
#. i18n: file: appearance.ui:163
#. i18n: ectx: property (text), widget (QLabel, label_fontColorActive)
#. i18n: file: appearance.ui:469
#. i18n: ectx: property (text), widget (QLabel, label_fontColorInactive)
#. i18n: file: appearance.ui:163
#. i18n: ectx: property (text), widget (QLabel, label_fontColorActive)
#. i18n: file: appearance.ui:469
#. i18n: ectx: property (text), widget (QLabel, label_fontColorInactive)
#: po/rc.cpp:12 po/rc.cpp:30 rc.cpp:12 rc.cpp:30
msgid "Font color"
msgstr "Cor da fonte"
#. i18n: file: appearance.ui:209
#. i18n: ectx: property (text), widget (QLabel, label_fontWeightActive)
#. i18n: file: appearance.ui:515
#. i18n: ectx: property (text), widget (QLabel, label_fontWeightInactive)
#. i18n: file: appearance.ui:209
#. i18n: ectx: property (text), widget (QLabel, label_fontWeightActive)
#. i18n: file: appearance.ui:515
#. i18n: ectx: property (text), widget (QLabel, label_fontWeightInactive)
#: po/rc.cpp:15 po/rc.cpp:33 rc.cpp:15 rc.cpp:33
msgid "Font weight"
msgstr "Peso da fonte"
#. i18n: file: appearance.ui:270
#. i18n: ectx: property (text), widget (QLabel, label_fontStyleActive)
#. i18n: file: appearance.ui:576
#. i18n: ectx: property (text), widget (QLabel, label_fontStyleInactive)
#. i18n: file: appearance.ui:270
#. i18n: ectx: property (text), widget (QLabel, label_fontStyleActive)
#. i18n: file: appearance.ui:576
#. i18n: ectx: property (text), widget (QLabel, label_fontStyleInactive)
#: po/rc.cpp:18 po/rc.cpp:36 rc.cpp:18 rc.cpp:36
msgid "Font style"
msgstr "Estilo da fonte"
#. i18n: file: appearance.ui:336
#. i18n: ectx: attribute (title), widget (QWidget, tab_inactive)
#: po/rc.cpp:21 rc.cpp:21
msgid "Inactive desktop"
msgstr ""
#. i18n: file: widget.ui:41
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_background)
#: po/rc.cpp:39 rc.cpp:39
msgid "Enable background"
msgstr ""
#. i18n: file: widget.ui:48
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_layout)
#: po/rc.cpp:42 rc.cpp:42
msgid "Vertical layout"
msgstr "Layout vertical"
#. i18n: file: widget.ui:55
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_leftStretch)
#: po/rc.cpp:45 rc.cpp:45
msgid "Add stretch to left/top of the layout"
msgstr "Adicionar esticamento à esquerda/topo do layout"
#. i18n: file: widget.ui:62
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_rightStretch)
#: po/rc.cpp:48 rc.cpp:48
msgid "Add stretch to right/bottom of the layout"
msgstr "Adicionar esticamento à direita/inferior do layout"
#. i18n: file: widget.ui:77
#. i18n: ectx: property (text), widget (QLabel, label_interval)
#: po/rc.cpp:51 rc.cpp:51
msgid "Time interval"
msgstr "Intervalo de tempo"
#. i18n: file: widget.ui:132
#. i18n: ectx: property (text), widget (QLabel, label_mark)
#: po/rc.cpp:54 rc.cpp:54
msgid "Mark"
msgstr ""
#. i18n: file: widget.ui:139
#. i18n: ectx: property (toolTip), widget (QComboBox, comboBox_mark)
#: po/rc.cpp:57 rc.cpp:57
msgid "A mark which will be shown if this desktop is active"
msgstr ""
#. i18n: file: widget.ui:229
#. i18n: ectx: property (text), widget (QLabel, label_pattern)
#: po/rc.cpp:60 rc.cpp:60
msgid "Pattern"
msgstr ""
#. i18n: file: widget.ui:239
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_pattern)
#: po/rc.cpp:63 rc.cpp:63
msgid ""
"$mark - show mark if the current desktop is active\n"
"$name - desktop name\n"
"$number - desktop number\n"
"$total - total number of desktops"
msgstr ""
#. i18n: file: widget.ui:256
#. i18n: ectx: property (text), widget (QLabel, label_desktopcmd)
#: po/rc.cpp:69 rc.cpp:69
msgid "Command to change desktop"
msgstr ""
#. i18n: file: widget.ui:263
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_desktopcmd)
#: po/rc.cpp:72 rc.cpp:72
msgid "Command which will change the current desktop"
msgstr ""
#: po/rc.cpp:73 rc.cpp:73
msgctxt "NAME OF TRANSLATORS"
msgid "Your names"
msgstr "under"
#: po/rc.cpp:74 rc.cpp:74
msgctxt "EMAIL OF TRANSLATORS"
msgid "Your emails"
msgstr "dreanazous@gmail.com"

View File

@ -0,0 +1,184 @@
# Copyright (C) 2014
# This file is distributed under the same license as the PyTextMonitor package.
#
# Evgeniy Alekseev <esalexeev@gmail.com>, 2014.
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: https://github.com/arcan1s/pytextmonitor/issues\n"
"POT-Creation-Date: 2014-07-09 10:38+0400\n"
"PO-Revision-Date: 2014-07-09 10:42+0400\n"
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
"Language-Team: Russian <kde-russian@lists.kde.ru>\n"
"Language: ru\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
"X-Generator: Lokalize 1.5\n"
#: desktop-panel.cpp:325
msgid "Widget"
msgstr "Виджет"
#: desktop-panel.cpp:326
msgid "Appearance"
msgstr "Внешний вид"
#. i18n: file: appearance.ui:30
#. i18n: ectx: attribute (title), widget (QWidget, tab_active)
#: po/rc.cpp:3 rc.cpp:3
msgid "Active desktop"
msgstr "Активный рабочий стол"
#. i18n: file: appearance.ui:59
#. i18n: ectx: property (text), widget (QLabel, label_fontActive)
#. i18n: file: appearance.ui:365
#. i18n: ectx: property (text), widget (QLabel, label_fontInactive)
#. i18n: file: appearance.ui:59
#. i18n: ectx: property (text), widget (QLabel, label_fontActive)
#. i18n: file: appearance.ui:365
#. i18n: ectx: property (text), widget (QLabel, label_fontInactive)
#: po/rc.cpp:6 po/rc.cpp:24 rc.cpp:6 rc.cpp:24
msgid "Font"
msgstr "Шрифт"
#. i18n: file: appearance.ui:105
#. i18n: ectx: property (text), widget (QLabel, label_fontSizeActive)
#. i18n: file: appearance.ui:411
#. i18n: ectx: property (text), widget (QLabel, label_fontSizeInactive)
#. i18n: file: appearance.ui:105
#. i18n: ectx: property (text), widget (QLabel, label_fontSizeActive)
#. i18n: file: appearance.ui:411
#. i18n: ectx: property (text), widget (QLabel, label_fontSizeInactive)
#: po/rc.cpp:9 po/rc.cpp:27 rc.cpp:9 rc.cpp:27
msgid "Font size"
msgstr "Размер шрифта"
#. i18n: file: appearance.ui:163
#. i18n: ectx: property (text), widget (QLabel, label_fontColorActive)
#. i18n: file: appearance.ui:469
#. i18n: ectx: property (text), widget (QLabel, label_fontColorInactive)
#. i18n: file: appearance.ui:163
#. i18n: ectx: property (text), widget (QLabel, label_fontColorActive)
#. i18n: file: appearance.ui:469
#. i18n: ectx: property (text), widget (QLabel, label_fontColorInactive)
#: po/rc.cpp:12 po/rc.cpp:30 rc.cpp:12 rc.cpp:30
msgid "Font color"
msgstr "Цвет шрифта"
#. i18n: file: appearance.ui:209
#. i18n: ectx: property (text), widget (QLabel, label_fontWeightActive)
#. i18n: file: appearance.ui:515
#. i18n: ectx: property (text), widget (QLabel, label_fontWeightInactive)
#. i18n: file: appearance.ui:209
#. i18n: ectx: property (text), widget (QLabel, label_fontWeightActive)
#. i18n: file: appearance.ui:515
#. i18n: ectx: property (text), widget (QLabel, label_fontWeightInactive)
#: po/rc.cpp:15 po/rc.cpp:33 rc.cpp:15 rc.cpp:33
msgid "Font weight"
msgstr "Толщина шрифта"
#. i18n: file: appearance.ui:270
#. i18n: ectx: property (text), widget (QLabel, label_fontStyleActive)
#. i18n: file: appearance.ui:576
#. i18n: ectx: property (text), widget (QLabel, label_fontStyleInactive)
#. i18n: file: appearance.ui:270
#. i18n: ectx: property (text), widget (QLabel, label_fontStyleActive)
#. i18n: file: appearance.ui:576
#. i18n: ectx: property (text), widget (QLabel, label_fontStyleInactive)
#: po/rc.cpp:18 po/rc.cpp:36 rc.cpp:18 rc.cpp:36
msgid "Font style"
msgstr "Стиль шрифта"
#. i18n: file: appearance.ui:336
#. i18n: ectx: attribute (title), widget (QWidget, tab_inactive)
#: po/rc.cpp:21 rc.cpp:21
msgid "Inactive desktop"
msgstr "Неактивный рабочий стол"
#. i18n: file: widget.ui:41
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_background)
#: po/rc.cpp:39 rc.cpp:39
msgid "Enable background"
msgstr "Включить фон"
#. i18n: file: widget.ui:48
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_layout)
#: po/rc.cpp:42 rc.cpp:42
msgid "Vertical layout"
msgstr "Вертикальная разметка"
#. i18n: file: widget.ui:55
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_leftStretch)
#: po/rc.cpp:45 rc.cpp:45
msgid "Add stretch to left/top of the layout"
msgstr "Добавить пустое место слева/сверху виджета"
#. i18n: file: widget.ui:62
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_rightStretch)
#: po/rc.cpp:48 rc.cpp:48
msgid "Add stretch to right/bottom of the layout"
msgstr "Добавить пустое место справа/снизу виджета"
#. i18n: file: widget.ui:77
#. i18n: ectx: property (text), widget (QLabel, label_interval)
#: po/rc.cpp:51 rc.cpp:51
msgid "Time interval"
msgstr "Интервал обновления"
#. i18n: file: widget.ui:132
#. i18n: ectx: property (text), widget (QLabel, label_mark)
#: po/rc.cpp:54 rc.cpp:54
msgid "Mark"
msgstr "Метка"
#. i18n: file: widget.ui:139
#. i18n: ectx: property (toolTip), widget (QComboBox, comboBox_mark)
#: po/rc.cpp:57 rc.cpp:57
msgid "A mark which will be shown if this desktop is active"
msgstr "Метка, которая будет показана, если данный рабочий стол активен"
#. i18n: file: widget.ui:229
#. i18n: ectx: property (text), widget (QLabel, label_pattern)
#: po/rc.cpp:60 rc.cpp:60
msgid "Pattern"
msgstr "Шаблон"
#. i18n: file: widget.ui:239
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_pattern)
#: po/rc.cpp:63 rc.cpp:63
msgid ""
"$mark - show mark if the current desktop is active\n"
"$name - desktop name\n"
"$number - desktop number\n"
"$total - total number of desktops"
msgstr ""
"$mark - показать метку, если данный рабочий стол активен\n"
"$name - имя рабочего стола\n"
"$number - номер рабочего стола\n"
"$total - общее число рабочий столов"
#. i18n: file: widget.ui:256
#. i18n: ectx: property (text), widget (QLabel, label_desktopcmd)
#: po/rc.cpp:69 rc.cpp:69
msgid "Command to change desktop"
msgstr "Команда"
#. i18n: file: widget.ui:263
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_desktopcmd)
#: po/rc.cpp:72 rc.cpp:72
msgid "Command which will change the current desktop"
msgstr "Команда которая изменит текущий рабочий стол"
#: po/rc.cpp:73 rc.cpp:73
msgctxt "NAME OF TRANSLATORS"
msgid "Your names"
msgstr "Evgeniy Alekseev"
#: po/rc.cpp:74 rc.cpp:74
msgctxt "EMAIL OF TRANSLATORS"
msgid "Your emails"
msgstr "esalexeev@gmail.com"

View File

@ -0,0 +1,179 @@
# Copyright (C) 2014
# This file is distributed under the same license as the PyTextMonitor package.
#
# Evgeniy Alekseev <esalexeev@gmail.com>, 2014.
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: https://github.com/arcan1s/pytextmonitor/issues\n"
"POT-Creation-Date: 2014-07-09 10:38+0400\n"
"PO-Revision-Date: 2014-06-06 01:23+0400\n"
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
"Language-Team: Ukrainian <kde-ukrainian@lists.kde.ru>\n"
"Language: ua\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
"X-Generator: Lokalize 1.5\n"
#: desktop-panel.cpp:325
msgid "Widget"
msgstr "Віджет"
#: desktop-panel.cpp:326
msgid "Appearance"
msgstr "Зовнішній вигляд"
#. i18n: file: appearance.ui:30
#. i18n: ectx: attribute (title), widget (QWidget, tab_active)
#: po/rc.cpp:3 rc.cpp:3
msgid "Active desktop"
msgstr ""
#. i18n: file: appearance.ui:59
#. i18n: ectx: property (text), widget (QLabel, label_fontActive)
#. i18n: file: appearance.ui:365
#. i18n: ectx: property (text), widget (QLabel, label_fontInactive)
#. i18n: file: appearance.ui:59
#. i18n: ectx: property (text), widget (QLabel, label_fontActive)
#. i18n: file: appearance.ui:365
#. i18n: ectx: property (text), widget (QLabel, label_fontInactive)
#: po/rc.cpp:6 po/rc.cpp:24 rc.cpp:6 rc.cpp:24
msgid "Font"
msgstr "Шрифт"
#. i18n: file: appearance.ui:105
#. i18n: ectx: property (text), widget (QLabel, label_fontSizeActive)
#. i18n: file: appearance.ui:411
#. i18n: ectx: property (text), widget (QLabel, label_fontSizeInactive)
#. i18n: file: appearance.ui:105
#. i18n: ectx: property (text), widget (QLabel, label_fontSizeActive)
#. i18n: file: appearance.ui:411
#. i18n: ectx: property (text), widget (QLabel, label_fontSizeInactive)
#: po/rc.cpp:9 po/rc.cpp:27 rc.cpp:9 rc.cpp:27
msgid "Font size"
msgstr "Розмір шрифту"
#. i18n: file: appearance.ui:163
#. i18n: ectx: property (text), widget (QLabel, label_fontColorActive)
#. i18n: file: appearance.ui:469
#. i18n: ectx: property (text), widget (QLabel, label_fontColorInactive)
#. i18n: file: appearance.ui:163
#. i18n: ectx: property (text), widget (QLabel, label_fontColorActive)
#. i18n: file: appearance.ui:469
#. i18n: ectx: property (text), widget (QLabel, label_fontColorInactive)
#: po/rc.cpp:12 po/rc.cpp:30 rc.cpp:12 rc.cpp:30
msgid "Font color"
msgstr "Колір шрифту"
#. i18n: file: appearance.ui:209
#. i18n: ectx: property (text), widget (QLabel, label_fontWeightActive)
#. i18n: file: appearance.ui:515
#. i18n: ectx: property (text), widget (QLabel, label_fontWeightInactive)
#. i18n: file: appearance.ui:209
#. i18n: ectx: property (text), widget (QLabel, label_fontWeightActive)
#. i18n: file: appearance.ui:515
#. i18n: ectx: property (text), widget (QLabel, label_fontWeightInactive)
#: po/rc.cpp:15 po/rc.cpp:33 rc.cpp:15 rc.cpp:33
msgid "Font weight"
msgstr "Ширина шрифту"
#. i18n: file: appearance.ui:270
#. i18n: ectx: property (text), widget (QLabel, label_fontStyleActive)
#. i18n: file: appearance.ui:576
#. i18n: ectx: property (text), widget (QLabel, label_fontStyleInactive)
#. i18n: file: appearance.ui:270
#. i18n: ectx: property (text), widget (QLabel, label_fontStyleActive)
#. i18n: file: appearance.ui:576
#. i18n: ectx: property (text), widget (QLabel, label_fontStyleInactive)
#: po/rc.cpp:18 po/rc.cpp:36 rc.cpp:18 rc.cpp:36
msgid "Font style"
msgstr "Стиль шрифту"
#. i18n: file: appearance.ui:336
#. i18n: ectx: attribute (title), widget (QWidget, tab_inactive)
#: po/rc.cpp:21 rc.cpp:21
msgid "Inactive desktop"
msgstr ""
#. i18n: file: widget.ui:41
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_background)
#: po/rc.cpp:39 rc.cpp:39
msgid "Enable background"
msgstr ""
#. i18n: file: widget.ui:48
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_layout)
#: po/rc.cpp:42 rc.cpp:42
msgid "Vertical layout"
msgstr "Вертикальна розмітка"
#. i18n: file: widget.ui:55
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_leftStretch)
#: po/rc.cpp:45 rc.cpp:45
msgid "Add stretch to left/top of the layout"
msgstr "Додати порожнє місце ліворуч/вгорі віджету"
#. i18n: file: widget.ui:62
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_rightStretch)
#: po/rc.cpp:48 rc.cpp:48
msgid "Add stretch to right/bottom of the layout"
msgstr "Додати порожнє місце праворуч/внизу віджету"
#. i18n: file: widget.ui:77
#. i18n: ectx: property (text), widget (QLabel, label_interval)
#: po/rc.cpp:51 rc.cpp:51
msgid "Time interval"
msgstr "Інтервал оновлення"
#. i18n: file: widget.ui:132
#. i18n: ectx: property (text), widget (QLabel, label_mark)
#: po/rc.cpp:54 rc.cpp:54
msgid "Mark"
msgstr ""
#. i18n: file: widget.ui:139
#. i18n: ectx: property (toolTip), widget (QComboBox, comboBox_mark)
#: po/rc.cpp:57 rc.cpp:57
msgid "A mark which will be shown if this desktop is active"
msgstr ""
#. i18n: file: widget.ui:229
#. i18n: ectx: property (text), widget (QLabel, label_pattern)
#: po/rc.cpp:60 rc.cpp:60
msgid "Pattern"
msgstr ""
#. i18n: file: widget.ui:239
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_pattern)
#: po/rc.cpp:63 rc.cpp:63
msgid ""
"$mark - show mark if the current desktop is active\n"
"$name - desktop name\n"
"$number - desktop number\n"
"$total - total number of desktops"
msgstr ""
#. i18n: file: widget.ui:256
#. i18n: ectx: property (text), widget (QLabel, label_desktopcmd)
#: po/rc.cpp:69 rc.cpp:69
msgid "Command to change desktop"
msgstr ""
#. i18n: file: widget.ui:263
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_desktopcmd)
#: po/rc.cpp:72 rc.cpp:72
msgid "Command which will change the current desktop"
msgstr ""
#: po/rc.cpp:73 rc.cpp:73
msgctxt "NAME OF TRANSLATORS"
msgid "Your names"
msgstr "Slobodyan Victor"
#: po/rc.cpp:74 rc.cpp:74
msgctxt "EMAIL OF TRANSLATORS"
msgid "Your emails"
msgstr "sarumyan@i.ua"

View File

@ -0,0 +1,290 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>ConfigWindow</class>
<widget class="QWidget" name="ConfigWindow">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>480</width>
<height>343</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>480</width>
<height>320</height>
</size>
</property>
<property name="windowTitle">
<string notr="true">Configuration Window</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<widget class="QScrollArea" name="scrollArea">
<property name="widgetResizable">
<bool>true</bool>
</property>
<widget class="QWidget" name="scrollAreaWidgetContents">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>464</width>
<height>327</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QCheckBox" name="checkBox_background">
<property name="text">
<string>Enable background</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBox_layout">
<property name="text">
<string>Vertical layout</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBox_leftStretch">
<property name="text">
<string>Add stretch to left/top of the layout</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBox_rightStretch">
<property name="text">
<string>Add stretch to right/bottom of the layout</string>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="layout_interval">
<item>
<widget class="QLabel" name="label_interval">
<property name="minimumSize">
<size>
<width>200</width>
<height>0</height>
</size>
</property>
<property name="text">
<string>Time interval</string>
</property>
</widget>
</item>
<item>
<spacer name="spacer_interval">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QSpinBox" name="spinBox_interval">
<property name="minimumSize">
<size>
<width>180</width>
<height>0</height>
</size>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="minimum">
<number>1</number>
</property>
<property name="maximum">
<number>10000</number>
</property>
<property name="singleStep">
<number>500</number>
</property>
<property name="value">
<number>1000</number>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="layout_mark">
<item>
<widget class="QLabel" name="label_mark">
<property name="minimumSize">
<size>
<width>200</width>
<height>0</height>
</size>
</property>
<property name="text">
<string>Mark</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="comboBox_mark">
<property name="toolTip">
<string>A mark which will be shown if this desktop is active</string>
</property>
<property name="editable">
<bool>true</bool>
</property>
<item>
<property name="text">
<string notr="true">#</string>
</property>
</item>
<item>
<property name="text">
<string notr="true">$</string>
</property>
</item>
<item>
<property name="text">
<string notr="true">%</string>
</property>
</item>
<item>
<property name="text">
<string notr="true">&amp;</string>
</property>
</item>
<item>
<property name="text">
<string notr="true">*</string>
</property>
</item>
<item>
<property name="text">
<string notr="true">@</string>
</property>
</item>
<item>
<property name="text">
<string notr="true">¤</string>
</property>
</item>
<item>
<property name="text">
<string notr="true">¶</string>
</property>
</item>
<item>
<property name="text">
<string notr="true">·</string>
</property>
</item>
<item>
<property name="text">
<string notr="true">º</string>
</property>
</item>
<item>
<property name="text">
<string notr="true">×</string>
</property>
</item>
<item>
<property name="text">
<string notr="true">†</string>
</property>
</item>
<item>
<property name="text">
<string notr="true">•</string>
</property>
</item>
<item>
<property name="text">
<string notr="true">(current)</string>
</property>
</item>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="layout_pattern">
<item>
<widget class="QLabel" name="label_pattern">
<property name="minimumSize">
<size>
<width>200</width>
<height>0</height>
</size>
</property>
<property name="text">
<string>Pattern</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="lineEdit_pattern">
<property name="toolTip">
<string>$mark - show mark if the current desktop is active
$name - desktop name
$number - desktop number
$total - total number of desktops</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="layout_desktopcmd">
<item>
<widget class="QLabel" name="label_desktopcmd">
<property name="minimumSize">
<size>
<width>200</width>
<height>0</height>
</size>
</property>
<property name="text">
<string>Command to change desktop</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="lineEdit_desktopcmd">
<property name="toolTip">
<string>Command which will change the current desktop</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<spacer name="spacer_widget">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>152</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>

View File

@ -4,6 +4,9 @@
# Custom command, separator is '@@'
#CUSTOM=wget -qO- http://ifconfig.me/ip
# Command which returns number of the current desktop
#DESKTOPCMD=qdbus org.kde.kwin /KWin currentDesktop
# Set GPU device
# May be 'nvidia' (for nvidia), 'ati' (for ATI RADEON), 'disable' or 'auto'
#GPUDEV=auto

View File

@ -26,6 +26,7 @@
#include <QProcessEnvironment>
#include <QRegExp>
#include <QTextCodec>
#include <QThread>
ExtendedSysMon::ExtendedSysMon(QObject* parent, const QVariantList& args)
@ -88,11 +89,47 @@ QString ExtendedSysMon::getAutoGpu()
}
QStringList ExtendedSysMon::getDesktopNames()
{
if (debug) qDebug() << "[DE]" << "[getDesktopNames]";
QStringList list;
QString fileName = KGlobal::dirs()->findResource("config", "kwinrc");
if (debug) qDebug() << "[DE]" << "[getDesktopNames]" << ":" << "Configuration file" << fileName;
QFile confFile(fileName);
if (!confFile.open(QIODevice::ReadOnly)) return list;
QString fileStr;
QStringList value;
bool desktopSection = false;
while (true) {
fileStr = QString(confFile.readLine()).trimmed();
if (fileStr[0] == QChar('#')) continue;
if (fileStr[0] == QChar(';')) continue;
if (fileStr[0] == QChar('[')) desktopSection = false;
if (fileStr == QString("[Desktops]")) desktopSection = true;
if (desktopSection) {
if (fileStr.contains(QChar('='))) {
value.clear();
for (int i=1; i<fileStr.split(QChar('=')).count(); i++)
value.append(fileStr.split(QChar('='))[i]);
if (fileStr.split(QChar('='))[0].contains(QString("Name_")))
list.append(value.join(QChar('=')));
}
}
if (confFile.atEnd())
break;
}
confFile.close();
return list;
}
QStringList ExtendedSysMon::sources() const
{
if (debug) qDebug() << "[DE]" << "[sources]";
QStringList source;
source.append(QString("custom"));
source.append(QString("desktop"));
source.append(QString("gpu"));
source.append(QString("gputemp"));
source.append(QString("hddtemp"));
@ -104,12 +141,23 @@ QStringList ExtendedSysMon::sources() const
}
void ExtendedSysMon::initValues()
{
if (debug) qDebug() << "[DE]" << "[initValues]";
QStringList sourceList = sources();
for (int i=0; i<sourceList.count(); i++)
sourceRequestEvent(sourceList[i]);
}
void ExtendedSysMon::readConfiguration()
{
if (debug) qDebug() << "[DE]" << "[readConfiguration]";
// pre-setup
QMap<QString, QString> rawConfig;
rawConfig[QString("CUSTOM")] = QString("wget -qO- http://ifconfig.me/ip");
rawConfig[QString("DESKTOP")] = QString("");
rawConfig[QString("DESKTOPCMD")] = QString("qdbus org.kde.kwin /KWin currentDesktop");
rawConfig[QString("GPUDEV")] = QString("auto");
rawConfig[QString("HDDDEV")] = QString("all");
rawConfig[QString("HDDTEMPCMD")] = QString("sudo hddtemp");
@ -122,8 +170,7 @@ void ExtendedSysMon::readConfiguration()
QString fileName = KGlobal::dirs()->findResource("config", "extsysmon.conf");
if (debug) qDebug() << "[DE]" << "[readConfiguration]" << ":" << "Configuration file" << fileName;
QFile confFile(fileName);
bool ok = confFile.open(QIODevice::ReadOnly);
if (!ok) {
if (!confFile.open(QIODevice::ReadOnly)) {
configuration = updateConfiguration(rawConfig);
return;
}
@ -157,6 +204,16 @@ void ExtendedSysMon::setKeys()
key = QString("custom") + QString::number(i);
setData(source, key, QString(""));
}
// desktop
source = QString("desktop");
key = QString("list");
setData(source, key, QString(""));
key = QString("number");
setData(source, key, 0);
key = QString("currentName");
setData(source, key, QString(""));
key = QString("currentNumber");
setData(source, key, 0);
// gpu
source = QString("gpu");
key = QString("GPU");
@ -197,6 +254,8 @@ void ExtendedSysMon::setKeys()
setData(source, key, QString(""));
key = QString("psTotal");
setData(source, key, QString("0"));
// initialization of values
initValues();
}
@ -209,6 +268,10 @@ void ExtendedSysMon::setProcesses()
connect(processes[QString("custom")][i], SIGNAL(finished(int, QProcess::ExitStatus)),
this, SLOT(setCustomCmd(int, QProcess::ExitStatus)));
}
// desktop
processes[QString("desktop")].append(new QProcess);
connect(processes[QString("desktop")][0], SIGNAL(finished(int, QProcess::ExitStatus)),
this, SLOT(setCurrentDesktop(int, QProcess::ExitStatus)));
// gpu
processes[QString("gpu")].append(new QProcess);
connect(processes[QString("gpu")][0], SIGNAL(finished(int, QProcess::ExitStatus)),
@ -254,12 +317,15 @@ QMap<QString, QString> ExtendedSysMon::updateConfiguration(const QMap<QString, Q
value = rawConfig[key];
key.remove(QChar(' '));
if ((key != QString("CUSTOM")) &&
(key != QString("DESKTOPCMD")) &&
(key != QString("HDDTEMPCMD")) &&
(key != QString("PKGCMD")))
value.remove(QChar(' '));
config[key] = value;
}
// update values
// desktop names
config[QString("DESKTOP")] = getDesktopNames().join(QString(";;"));
// gpudev
if (config[QString("GPUDEV")] == QString("disable"))
config[QString("GPUDEV")] = QString("disable");
@ -305,13 +371,48 @@ QMap<QString, QString> ExtendedSysMon::updateConfiguration(const QMap<QString, Q
}
void ExtendedSysMon::getCurrentDesktop(const QString cmd)
{
if (debug) qDebug() << "[DE]" << "[getCurrentDesktop]";
if (debug) qDebug() << "[DE]" << "[getCurrentDesktop]" << ":" << "Run function with cmd" << cmd;
if (debug) qDebug() << "[DE]" << "[getCurrentDesktop]" << ":" << "Run cmd" << QString("bash -c \"") + cmd + QString("\"");
if ((processes[QString("desktop")][0]->state() != QProcess::Running) &&
(processes[QString("desktop")][0]->state() != QProcess::Starting))
processes[QString("desktop")][0]->start(QString("bash -c \"") + cmd + QString("\""));
}
void ExtendedSysMon::setCurrentDesktop(int exitCode, QProcess::ExitStatus exitStatus)
{
Q_UNUSED(exitStatus)
if (debug) qDebug() << "[DE]" << "[setCurrentDesktop]";
if (debug) qDebug() << "[DE]" << "[setCurrentDesktop]" << ":" << "Cmd returns" << exitCode;
QString qoutput = QTextCodec::codecForMib(106)->toUnicode(processes[QString("desktop")][0]->readAllStandardOutput()).trimmed();
int number = qoutput.toInt();
QString key, source, value;
source = QString("desktop");
key = QString("list");
setData(source, key, configuration[QString("DESKTOP")]);
key = QString("number");
setData(source, key, configuration[QString("DESKTOP")].split(QString(";;")).count());
key = QString("currentName");
setData(source, key, configuration[QString("DESKTOP")].split(QString(";;"))[number-1]);
key = QString("currentNumber");
setData(source, key, number);
}
void ExtendedSysMon::getCustomCmd(const QString cmd, const int number)
{
if (debug) qDebug() << "[DE]" << "[getCustomCmd]";
if (debug) qDebug() << "[DE]" << "[getCustomCmd]" << ":" << "Run function with cmd" << cmd;
if (debug) qDebug() << "[DE]" << "[getCustomCmd]" << ":" << "Run function with number" << number;
if (debug) qDebug() << "[DE]" << "[getCustomCmd]" << ":" << "Run cmd" << QString("bash -c \"") + cmd + QString("\"");
processes[QString("custom")][number]->start(QString("bash -c \"") + cmd + QString("\""));
if ((processes[QString("custom")][number]->state() != QProcess::Running) &&
(processes[QString("custom")][number]->state() != QProcess::Starting))
processes[QString("custom")][number]->start(QString("bash -c \"") + cmd + QString("\""));
}
@ -347,7 +448,9 @@ void ExtendedSysMon::getGpu(const QString device)
else if (device == QString("ati"))
cmd = QString("aticonfig --od-getclocks");
if (debug) qDebug() << "[DE]" << "[getGpu]" << ":" << "Run cmd" << cmd;
processes[QString("gpu")][0]->start(cmd);
if ((processes[QString("gpu")][0]->state() != QProcess::Running) &&
(processes[QString("gpu")][0]->state() != QProcess::Starting))
processes[QString("gpu")][0]->start(cmd);
}
@ -400,7 +503,9 @@ void ExtendedSysMon::getGpuTemp(const QString device)
else if (device == QString("ati"))
cmd = QString("aticonfig --od-gettemperature");
if (debug) qDebug() << "[DE]" << "[getGpuTemp]" << ":" << "Run cmd" << cmd;
processes[QString("gputemp")][0]->start(cmd);
if ((processes[QString("gputemp")][0]->state() != QProcess::Running) &&
(processes[QString("gputemp")][0]->state() != QProcess::Running))
processes[QString("gputemp")][0]->start(cmd);
}
@ -446,7 +551,9 @@ void ExtendedSysMon::getHddTemp(const QString cmd, const QString device, const i
if (debug) qDebug() << "[DE]" << "[getHddTemp]" << ":" << "Run function with device" << device;
if (debug) qDebug() << "[DE]" << "[getHddTemp]" << ":" << "Run function with number" << number;
if (debug) qDebug() << "[DE]" << "[getHddTemp]" << ":" << "Run cmd" << cmd + QString(" ") + device;
processes[QString("hddtemp")][number]->start(cmd + QString(" ") + device);
if ((processes[QString("hddtemp")][number]->state() != QProcess::Running) &&
(processes[QString("hddtemp")][number]->state() != QProcess::Starting))
processes[QString("hddtemp")][number]->start(cmd + QString(" ") + device);
}
@ -483,31 +590,23 @@ void ExtendedSysMon::getPlayerInfo(const QString playerName,
if (debug) qDebug() << "[DE]" << "[getPlayerInfo]" << ":" << "Run function with MPD parameters" <<
mpdAddress + QString(":") + mpdPort;
QString cmd;
if (playerName == QString("amarok")) {
if (playerName == QString("amarok"))
// amarok
cmd = QString("bash -c \"qdbus org.kde.amarok /Player GetMetadata && qdbus org.kde.amarok /Player PositionGet\"");
if (debug) qDebug() << "[DE]" << "[getPlayerInfo]" << ":" << "Run cmd" << cmd;
processes[QString("player")][0]->start(cmd);
}
else if (playerName == QString("clementine")) {
else if (playerName == QString("clementine"))
// clementine
cmd = QString("bash -c \"qdbus org.mpris.clementine /Player GetMetadata && qdbus org.mpris.clementine /Player PositionGet\"");
if (debug) qDebug() << "[DE]" << "[getPlayerInfo]" << ":" << "Run cmd" << cmd;
processes[QString("player")][0]->start(cmd);
}
else if (playerName == QString("mpd")) {
else if (playerName == QString("mpd"))
// mpd
cmd = QString("bash -c \"echo 'currentsong\nstatus\nclose' | curl --connect-timeout 1 -fsm 3 telnet://") +
mpdAddress + QString(":") + mpdPort + QString("\"");
if (debug) qDebug() << "[DE]" << "[getPlayerInfo]" << ":" << "Run cmd" << cmd;
processes[QString("player")][0]->start(cmd);
}
else if (playerName == QString("qmmp")) {
else if (playerName == QString("qmmp"))
// qmmp
cmd = QString("qmmp --status");
if (debug) qDebug() << "[DE]" << "[getPlayerInfo]" << ":" << "Run cmd" << cmd;
cmd = QString("bash -c \"pgrep qmmp && qmmp --status || echo 'null'\"");
if (debug) qDebug() << "[DE]" << "[getPlayerInfo]" << ":" << "Run cmd" << cmd;
if ((processes[QString("player")][0]->state() != QProcess::Running) &&
(processes[QString("player")][0]->state() != QProcess::Starting))
processes[QString("player")][0]->start(cmd);
}
}
@ -635,10 +734,14 @@ void ExtendedSysMon::getPsStats()
QString cmd;
cmd = QString("ps --no-headers -o command");
if (debug) qDebug() << "[DE]" << "[getPsStats]" << ":" << "Run cmd" << cmd;
processes[QString("ps")][0]->start(cmd);
if ((processes[QString("ps")][0]->state() != QProcess::Running) &&
(processes[QString("ps")][0]->state() != QProcess::Starting))
processes[QString("ps")][0]->start(cmd);
cmd = QString("ps -e --no-headers -o command");
if (debug) qDebug() << "[DE]" << "[getPsStats]" << ":" << "Run cmd" << cmd;
processes[QString("ps")][1]->start(cmd);
if ((processes[QString("ps")][1]->state() != QProcess::Running) &&
(processes[QString("ps")][1]->state() != QProcess::Starting))
processes[QString("ps")][1]->start(cmd);
}
@ -662,7 +765,7 @@ void ExtendedSysMon::setPs(int exitCode, QProcess::ExitStatus exitStatus)
psList.append(qoutput.split(QChar('\n'), QString::SkipEmptyParts)[i]);
QString source = QString("ps");
QString key = QString("psCount");
setData(source, key, QString::number(psList.count()));
setData(source, key, psList.count());
key = QString("ps");
setData(source, key, psList.join(QString(",")));
}
@ -670,7 +773,7 @@ void ExtendedSysMon::setPs(int exitCode, QProcess::ExitStatus exitStatus)
// pstotal
QString source = QString("ps");
QString key = QString("psTotal");
setData(source, key, QString::number(qoutput.split(QChar('\n'), QString::SkipEmptyParts).count()));
setData(source, key, qoutput.split(QChar('\n'), QString::SkipEmptyParts).count());
}
}
}
@ -684,7 +787,9 @@ void ExtendedSysMon::getUpgradeInfo(const QString pkgCommand, const int number)
if (debug) qDebug() << "[DE]" << "[getUpgradeInfo]" << ":" << "Run function with number" << number;
QString cmd = QString("bash -c \"") + pkgCommand + QString(" | wc -l\"");
if (debug) qDebug() << "[DE]" << "[getUpgradeInfo]" << ":" << "Run cmd" << cmd;
processes[QString("pkg")][number]->start(cmd);
if ((processes[QString("pkg")][number]->state() != QProcess::Running) &&
(processes[QString("pkg")][number]->state() != QProcess::Starting))
processes[QString("pkg")][number]->start(cmd);
}
@ -728,6 +833,9 @@ bool ExtendedSysMon::updateSourceEvent(const QString &source)
for (int i=0; i<configuration[QString("CUSTOM")].split(QString("@@"), QString::SkipEmptyParts).count(); i++)
getCustomCmd(configuration[QString("CUSTOM")].split(QString("@@"), QString::SkipEmptyParts)[i], i);
}
else if (source == QString("desktop")) {
getCurrentDesktop(configuration[QString("DESKTOPCMD")]);
}
else if (source == QString("gpu")) {
getGpu(configuration[QString("GPUDEV")]);
}

View File

@ -28,6 +28,7 @@ class ExtendedSysMon : public Plasma::DataEngine
public:
ExtendedSysMon(QObject *parent, const QVariantList &args);
// update functions
void getCurrentDesktop(const QString cmd);
void getCustomCmd(const QString cmd,
const int number = 0);
void getGpu(const QString device);
@ -47,6 +48,7 @@ protected:
QStringList sources() const;
private slots:
void setCurrentDesktop(int exitCode, QProcess::ExitStatus exitStatus);
void setCustomCmd(int exitCode, QProcess::ExitStatus exitStatus);
void setGpu(int exitCode, QProcess::ExitStatus exitStatus);
void setGpuTemp(int exitCode, QProcess::ExitStatus exitStatus);
@ -64,6 +66,8 @@ private:
// reread configuration
QString getAllHdd();
QString getAutoGpu();
QStringList getDesktopNames();
void initValues();
void readConfiguration();
void setKeys();
void setProcesses();

View File

@ -1,7 +1,7 @@
[Desktop Entry]
Encoding=UTF-8
Name=Extended SystemMonitor DataEngine
Comment=Adds gpu, gputemp and hddtemp to DataEngine
Comment=Adds some additional functions to System DataEngine
ServiceTypes=Plasma/DataEngine
Type=Service
Icon=utilities-system-monitor

View File

@ -55,6 +55,7 @@ class ConfigDefinition:
settings.set('font_style', str(self.configpage['appearance'].ui.comboBox_style.currentText()))
settings.set('font_weight', self.configpage['appearance'].ui.spinBox_weight.value())
settings.set('background', self.configpage['advanced'].ui.checkBox_background.checkState())
settings.set('layout', self.configpage['advanced'].ui.checkBox_layout.checkState())
settings.set('popup', self.configpage['advanced'].ui.checkBox_popup.checkState())
settings.set('left_stretch', self.configpage['advanced'].ui.checkBox_leftStretch.checkState())
@ -97,6 +98,7 @@ class ConfigDefinition:
for i in range(self.configpage['dataengine'].ui.listWidget_customCommand.count()):
item.append(self.configpage['dataengine'].ui.listWidget_customCommand.item(i).text())
deConfigFile.write("CUSTOM=" + str(item.join(QString('@@'))) + "\n")
deConfigFile.write("DESKTOPCMD=" + str(self.configpage['dataengine'].ui.lineEdit_desktopCmd.text()) + "\n")
deConfigFile.write("GPUDEV=" + str(self.configpage['dataengine'].ui.comboBox_gpudev.currentText()) + "\n")
deConfigFile.write("HDDDEV=" + str(self.configpage['dataengine'].ui.comboBox_hdddev.currentText()) + "\n")
deConfigFile.write("HDDTEMPCMD=" + str(self.configpage['dataengine'].ui.lineEdit_hddtempCmd.text()) + "\n")
@ -123,7 +125,7 @@ class ConfigDefinition:
# disconnecting from source and clear layout
self.parent.disconnectFromSource()
labelOrder = "---------------"
labelOrder = "----------------"
for label in self.defaults['order'].keys():
if (self.configpage['widget'].checkboxes[self.defaults['order'][label]].checkState() > 0):
pos = self.configpage['widget'].sliders[self.defaults['order'][label]].value() - 1
@ -154,6 +156,7 @@ class ConfigDefinition:
self.configpage['appearance'].ui.comboBox_style.setCurrentIndex(1)
self.configpage['appearance'].ui.spinBox_weight.setValue(settings.get('font_weight', 400).toInt()[0])
self.configpage['advanced'].ui.checkBox_background.setCheckState(settings.get('background', 2).toInt()[0])
self.configpage['advanced'].ui.checkBox_layout.setCheckState(settings.get('layout', 0).toInt()[0])
self.configpage['advanced'].ui.checkBox_popup.setCheckState(settings.get('popup', 2).toInt()[0])
self.configpage['advanced'].ui.checkBox_leftStretch.setCheckState(settings.get('left_stretch', 2).toInt()[0])
@ -219,9 +222,9 @@ class ConfigDefinition:
self.configpage['tooltip'].ui.kcolorcombo_down.setColor(QColor(str(settings.get('down_color', '#00ffff'))))
self.configpage['tooltip'].ui.kcolorcombo_up.setColor(QColor(str(settings.get('up_color', '#ff00ff'))))
deSettings = {'CUSTOM':'wget -qO- http://ifconfig.me/ip', 'GPUDEV':'auto', 'HDDDEV':'all',
'HDDTEMPCMD':'sudo hddtemp', 'MPDADDRESS':'localhost', 'MPDPORT':'6600', 'PKGCMD':'pacman -Qu',
'PKGNULL':'0', 'PLAYER':'amarok'}
deSettings = {'CUSTOM':'wget -qO- http://ifconfig.me/ip', 'DESKTOPCMD':'qdbus org.kde.kwin /KWin currentDesktop',
'GPUDEV':'auto', 'HDDDEV':'all', 'HDDTEMPCMD':'sudo hddtemp', 'MPDADDRESS':'localhost',
'MPDPORT':'6600', 'PKGCMD':'pacman -Qu', 'PKGNULL':'0', 'PLAYER':'amarok'}
dataengineConfig = unicode(KGlobal.dirs().localkdedir()) + "/share/config/extsysmon.conf"
try:
with open(dataengineConfig, 'r') as deConfigFile:
@ -233,6 +236,7 @@ class ConfigDefinition:
for item in deSettings['CUSTOM'].split('@@'):
self.configpage['dataengine'].ui.listWidget_customCommand.addItem(item)
index = self.configpage['dataengine'].ui.comboBox_gpudev.findText(deSettings['GPUDEV'])
self.configpage['dataengine'].ui.lineEdit_desktopCmd.setText(deSettings['DESKTOPCMD'])
self.configpage['dataengine'].ui.comboBox_gpudev.setCurrentIndex(index)
self.configpage['dataengine'].ui.comboBox_hdddev.addItem("all")
self.configpage['dataengine'].ui.comboBox_hdddev.addItem("disable")

View File

@ -59,6 +59,8 @@ class DataEngine:
dataEngines['system'].connectSource("cpu/cpu" + str(core) + "/clock", self.parent, interval)
if (bools['custom'] > 0):
dataEngines['ext'].connectSource("custom", self.parent, interval)
if (bools['desktop'] > 0):
dataEngines['ext'].connectSource("desktop", self.parent, interval)
if (bools['disk'] > 0):
for item in names['disk']:
dataEngines['system'].connectSource(item + "/Rate/rblk", self.parent, interval)
@ -138,6 +140,11 @@ class DataEngine:
updatedData['value'] = {}
for singleData in data.keys():
updatedData['value'][str(singleData.toLower())] = str(data[singleData].toUtf8()).decode("utf-8")
elif (sourceName == "desktop"):
updatedData['name'] = "desktop"
updatedData['value'] = {}
updatedData['value']['current'] = data[QString(u'currentNumber')]
updatedData['value']['names'] = [str(desktop.toUtf8()).decode("utf-8") for desktop in data[QString(u'list')].split(';;')]
elif ((sourceName[:4] == "disk") and (sourceName[-4:] == "rblk")):
updatedData['name'] = "disk-r"
updatedData['type'] = '/'.join(str(sourceName).split('/')[0:2])
@ -311,6 +318,8 @@ class DataEngine:
dataEngines['system'].disconnectSource("cpu/cpu" + str(item) + "/clock", self.parent)
elif (name == "custom"):
dataEngines['ext'].disconnectSource("custom", self.parent)
elif (name == "desktop"):
dataEngines['ext'].disconnectSource("desktop", self.parent)
elif (name == "disk"):
for item in keys['disk']:
dataEngines['system'].disconnectSource(item + "/Rate/rblk", self.parent)

View File

@ -96,12 +96,10 @@ class pyTextWidget(plasmascript.Applet):
self.timer = QTimer()
QObject.connect(self.timer, SIGNAL("timeout()"), self.startPolling)
self.theme = Plasma.Svg(self)
self.initTooltip()
self.reInit()
self.applet.setLayout(self.ptm['layout'])
self.theme = Plasma.Svg(self)
self.theme.setImagePath("widgets/background")
self.setBackgroundHints(Plasma.Applet.DefaultBackground)
self.setHasConfigurationInterface(True)
@ -219,32 +217,34 @@ class pyTextWidget(plasmascript.Applet):
# defaults
self.ptm['defaults'] = {}
self.ptm['defaults']['confBool'] = {'bat':'batBool', 'cpu':'cpuBool',
'cpuclock':'cpuclockBool', 'custom':'customBool', 'disk':'diskBool',
'gpu':'gpuBool', 'gputemp':'gputempBool', 'hdd':'hddBool',
'cpuclock':'cpuclockBool', 'custom':'customBool', 'desktop':'desktopBool',
'disk':'diskBool', 'gpu':'gpuBool', 'gputemp':'gputempBool', 'hdd':'hddBool',
'hddtemp':'hddtempBool', 'mem':'memBool', 'net':'netBool', 'pkg':'pkgBool',
'player':'playerBool', 'ps':'psBool', 'swap':'swapBool', 'temp':'tempBool',
'uptime':'uptimeBool', 'time':'timeBool'}
self.ptm['defaults']['confColor'] = {'cpu':'cpu_color', 'cpuclock':'cpuclock_color',
'down':'down_color', 'mem':'mem_color', 'swap':'swap_color', 'up':'up_color'}
self.ptm['defaults']['confFormat'] = {'bat':'batFormat', 'cpu':'cpuFormat',
'cpuclock':'cpuclockFormat', 'custom':'customFormat', 'disk':'diskFormat',
'gpu':'gpuFormat', 'gputemp':'gputempFormat', 'hdd':'hddFormat',
'cpuclock':'cpuclockFormat', 'custom':'customFormat', 'desktop':'desktopFormat',
'disk':'diskFormat', 'gpu':'gpuFormat', 'gputemp':'gputempFormat', 'hdd':'hddFormat',
'hddtemp':'hddtempFormat', 'mem':'memFormat', 'net':'netFormat',
'pkg':'pkgFormat', 'player':'playerFormat', 'ps':'psFormat', 'swap':'swapFormat',
'temp':'tempFormat', 'time':'timeFormat', 'uptime':'uptimeFormat'}
self.ptm['defaults']['bool'] = {'bat':0, 'cpu':2, 'cpuclock':0, 'custom':0,
'disk':0, 'gpu':0, 'gputemp':0, 'hdd':0, 'hddtemp':0, 'mem':2, 'net':2,
'pkg':0, 'player':0, 'ps':0, 'swap':2, 'temp':0, 'time':0, 'uptime':0}
'desktop':0, 'disk':0, 'gpu':0, 'gputemp':0, 'hdd':0, 'hddtemp':0, 'mem':2,
'net':2, 'pkg':0, 'player':0, 'ps':0, 'swap':2, 'temp':0, 'time':0, 'uptime':0}
self.ptm['defaults']['format'] = {'bat':'[bat: $bat%$ac]', 'cpu':'[cpu: $cpu%]',
'cpuclock':'[mhz: $cpucl]', 'custom':'[$custom]', 'disk':'[disk: $hddr0/$hddw0 KB/s]',
'gpu':'[gpu: $gpu%]', 'gputemp':'[gpu temp: $gputemp&deg;C]', 'hdd':'[hdd: $hdd0%]',
'cpuclock':'[mhz: $cpucl]', 'custom':'[$custom]', 'desktop':'[$number/$total: $name]',
'disk':'[disk: $hddr0/$hddw0 KB/s]', 'gpu':'[gpu: $gpu%]',
'gputemp':'[gpu temp: $gputemp&deg;C]', 'hdd':'[hdd: $hdd0%]',
'hddtemp':'[hdd temp: $hddtemp0&deg;C]', 'mem':'[mem: $mem%]',
'net':'[$netdev: $down/$upKB/s]', 'pkg':'[upgrade: $pkgcount0]',
'player':'[$artist - $title]', 'ps':'[proc: $pscount]', 'swap':'[swap: $swap%]',
'temp':'[temp: $temp0&deg;C]', 'time':'[$time]', 'uptime':'[uptime: $uptime]'}
self.ptm['defaults']['order'] = {'1':'cpu', '2':'temp', '3':'mem', '4':'swap', '5':'net',
'6':'bat', '7':'cpuclock', '8':'uptime', '9':'gpu', 'a':'gputemp', 'b':'hdd',
'c':'hddtemp', 'd':'player', 'e':'time', 'f':'custom', 'g':'ps', 'h':'pkg', 'i':'disk'}
'c':'hddtemp', 'd':'player', 'e':'time', 'f':'custom', 'g':'ps', 'h':'pkg', 'i':'disk',
'j':'desktop'}
# disk devices for r/w speed
self.ptm['defaults']['disk'] = []
# labels
@ -271,6 +271,7 @@ class pyTextWidget(plasmascript.Applet):
for i in range(numCores):
self.ptm['values']['cpu'][i] = 0.0
self.ptm['values']['cpuclock'][i] = 0.0
self.ptm['values']['desktop'] = {'names':[], 'current':1}
self.ptm['values']['disk-r'] = {}
self.ptm['values']['disk-w'] = {}
self.ptm['values']['hdd'] = {}
@ -318,6 +319,8 @@ class pyTextWidget(plasmascript.Applet):
self.cpuText()
if (self.ptm['vars']['bools']['cpuclock'] > 0):
self.cpuclockText()
if (self.ptm['vars']['bools']['desktop'] > 0):
self.desktopText()
if (self.ptm['vars']['bools']['disk'] > 0):
self.diskText()
if (self.ptm['vars']['bools']['hdd'] > 0):
@ -456,6 +459,26 @@ class pyTextWidget(plasmascript.Applet):
self.setText("cpuclock", text)
def desktopText(self):
"""function to update desktop text"""
if self.debug: qDebug("[PTM] [main.py] [desktopText]")
line = self.ptm['vars']['formats']['desktop']
if (line.split('$name')[0] != line):
line = line.split('$name')[0] + \
self.ptm['values']['desktop']['names'][self.ptm['values']['desktop']['current']-1] + \
line.split('$name')[1]
if (line.split('$number')[0] != line):
line = line.split('$number')[0] + \
str(self.ptm['values']['desktop']['current']) + \
line.split('$number')[1]
if (line.split('$total')[0] != line):
line = line.split('$total')[0] + \
str(len(self.ptm['values']['desktop']['names'])) + \
line.split('$total')[1]
text = self.ptm['vars']['app']['format'][0] + line + self.ptm['vars']['app']['format'][1]
self.setText("desktop", text)
def diskText(self):
"""function to update hdd speed text"""
if self.debug: qDebug("[PTM] [main.py] [diskText]")
@ -510,7 +533,7 @@ class pyTextWidget(plasmascript.Applet):
for i in devices:
if (line.split('$hddtemp' + str(i))[0] != line):
line = line.split('$hddtemp' + str(i))[0] +\
getTemp(str(self.ptm['values']['hddtemp'][self.ptm['names']['hddtemp'][i]]), self.ptm['vars']['adv']['tempUnit']) +\
getTemp(str(self.ptm['values']['hddtemp'][self.ptm['names']['hddtemp'][i]]), self.ptm['vars']['adv']['tempUnits']) +\
line.split('$hddtemp' + str(i))[1]
text = self.ptm['vars']['app']['format'][0] + line + self.ptm['vars']['app']['format'][1]
self.setText("hddtemp", text)
@ -694,6 +717,19 @@ class pyTextWidget(plasmascript.Applet):
self.startPolling()
def setTransparentBackground(self, hasBackground=2):
"""function to set background to the widget"""
if self.debug: qDebug("[PTM] [main.py] [setTransparentBackground]")
if self.debug: qDebug("[PTM] [main.py] [setTransparentBackground] : Run function with hasBackground '%s'" %(hasBackground))
if (hasBackground == 2):
self.theme.setImagePath("widgets/background")
self.setBackgroundHints(Plasma.Applet.DefaultBackground)
else:
self.theme.setImagePath("")
self.setBackgroundHints(Plasma.Applet.NoBackground)
def setNetdev(self):
"""function to set network device"""
if self.debug: qDebug("[PTM] [main.py] [setNetdev]")

View File

@ -218,6 +218,8 @@ class PTMNotify:
return self.createText("processor")
elif (name == "custom"):
return self.createText("system")
elif (name == "desktop"):
return self.createText("system")
elif (name == "disk"):
return self.createText("disk")
elif (name == "gpu"):

View File

@ -49,6 +49,7 @@ class Reinit():
ptmVars['adv']['acDev'] = str(settings.get('ac_device', '/sys/class/power_supply/AC/online'))
ptmVars['adv']['acOnline'] = str(settings.get('ac_online', '(*)'))
ptmVars['adv']['acOffline'] = str(settings.get('ac_offline', '( )'))
ptmVars['adv']['background'] = settings.get('background', 2).toInt()[0]
ptmVars['adv']['batDev'] = str(settings.get('battery_device', '/sys/class/power_supply/BAT0/capacity'))
ptmVars['adv']['customTime'] = str(settings.get('custom_time', '$hh:$mm'))
ptmVars['adv']['customUptime'] = str(settings.get('custom_uptime', '$dd,$hh,$mm'))
@ -91,6 +92,7 @@ class Reinit():
if self.debug: qDebug("[PTM] [reinit.py] [reinit] : Returns names '%s'" %(ptmNames))
self.parent.applySettings('names', ptmNames)
self.parent.setTransparentBackground(ptmVars['adv']['background'])
self.parent.createLayout(ptmVars['adv']['layout'], ptmVars['adv']['leftStretch'])
ptmVars['formats'] = {}
ptmVars['tooltip']['required'] = []

View File

@ -40,31 +40,34 @@ class WidgetWindow(QWidget):
self.parent = parent
self.checkboxes = {'bat':self.ui.checkBox_bat, 'cpu':self.ui.checkBox_cpu,
'cpuclock':self.ui.checkBox_cpuclock, 'custom':self.ui.checkBox_custom,
'disk':self.ui.checkBox_hddSpeed, 'gpu':self.ui.checkBox_gpu,
'gputemp':self.ui.checkBox_gpuTemp, 'hdd':self.ui.checkBox_hdd,
'hddtemp':self.ui.checkBox_hddTemp, 'mem':self.ui.checkBox_mem,
'net':self.ui.checkBox_net, 'swap':self.ui.checkBox_swap,
'temp':self.ui.checkBox_temp, 'uptime':self.ui.checkBox_uptime,
'pkg':self.ui.checkBox_pkg, 'player':self.ui.checkBox_player,
'ps':self.ui.checkBox_ps, 'time':self.ui.checkBox_time}
'desktop':self.ui.checkBox_desktop, 'disk':self.ui.checkBox_hddSpeed,
'gpu':self.ui.checkBox_gpu, 'gputemp':self.ui.checkBox_gpuTemp,
'hdd':self.ui.checkBox_hdd, 'hddtemp':self.ui.checkBox_hddTemp,
'mem':self.ui.checkBox_mem, 'net':self.ui.checkBox_net,
'swap':self.ui.checkBox_swap, 'temp':self.ui.checkBox_temp,
'uptime':self.ui.checkBox_uptime, 'pkg':self.ui.checkBox_pkg,
'player':self.ui.checkBox_player, 'ps':self.ui.checkBox_ps,
'time':self.ui.checkBox_time}
self.lineedits = {'bat':self.ui.lineEdit_bat, 'cpu':self.ui.lineEdit_cpu,
'cpuclock':self.ui.lineEdit_cpuclock, 'custom':self.ui.lineEdit_custom,
'disk':self.ui.lineEdit_hddSpeed, 'gpu':self.ui.lineEdit_gpu,
'gputemp':self.ui.lineEdit_gpuTemp, 'hdd':self.ui.lineEdit_hdd,
'hddtemp':self.ui.lineEdit_hddTemp, 'mem':self.ui.lineEdit_mem,
'net':self.ui.lineEdit_net, 'swap':self.ui.lineEdit_swap,
'temp':self.ui.lineEdit_temp, 'uptime':self.ui.lineEdit_uptime,
'pkg':self.ui.lineEdit_pkg, 'player':self.ui.lineEdit_player,
'ps':self.ui.lineEdit_ps, 'time':self.ui.lineEdit_time}
'desktop':self.ui.lineEdit_desktop, 'disk':self.ui.lineEdit_hddSpeed,
'gpu':self.ui.lineEdit_gpu, 'gputemp':self.ui.lineEdit_gpuTemp,
'hdd':self.ui.lineEdit_hdd, 'hddtemp':self.ui.lineEdit_hddTemp,
'mem':self.ui.lineEdit_mem, 'net':self.ui.lineEdit_net,
'swap':self.ui.lineEdit_swap, 'temp':self.ui.lineEdit_temp,
'uptime':self.ui.lineEdit_uptime, 'pkg':self.ui.lineEdit_pkg,
'player':self.ui.lineEdit_player, 'ps':self.ui.lineEdit_ps,
'time':self.ui.lineEdit_time}
self.sliders = {'bat':self.ui.slider_bat, 'cpu':self.ui.slider_cpu,
'cpuclock':self.ui.slider_cpuclock, 'custom':self.ui.slider_custom,
'disk':self.ui.slider_hddSpeed, 'gpu':self.ui.slider_gpu,
'gputemp':self.ui.slider_gpuTemp, 'hdd':self.ui.slider_hdd,
'hddtemp':self.ui.slider_hddTemp, 'mem':self.ui.slider_mem,
'net':self.ui.slider_net, 'swap':self.ui.slider_swap,
'temp':self.ui.slider_temp, 'uptime':self.ui.slider_uptime,
'pkg':self.ui.slider_pkg, 'player':self.ui.slider_player,
'ps':self.ui.slider_ps, 'time':self.ui.slider_time}
'desktop':self.ui.slider_desktop, 'disk':self.ui.slider_hddSpeed,
'gpu':self.ui.slider_gpu, 'gputemp':self.ui.slider_gpuTemp,
'hdd':self.ui.slider_hdd, 'hddtemp':self.ui.slider_hddTemp,
'mem':self.ui.slider_mem, 'net':self.ui.slider_net,
'swap':self.ui.slider_swap, 'temp':self.ui.slider_temp,
'uptime':self.ui.slider_uptime, 'pkg':self.ui.slider_pkg,
'player':self.ui.slider_player, 'ps':self.ui.slider_ps,
'time':self.ui.slider_time}
for item in self.sliders.values():
QObject.connect(item, SIGNAL("valueChanged(int)"), self.setSlider)

View File

@ -43,10 +43,17 @@
<x>0</x>
<y>0</y>
<width>666</width>
<height>823</height>
<height>848</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_8">
<item>
<widget class="QCheckBox" name="checkBox_background">
<property name="text">
<string>Enable background</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBox_layout">
<property name="text">
@ -613,6 +620,7 @@ del - remove item</string>
</widget>
<tabstops>
<tabstop>scrollArea_advanced</tabstop>
<tabstop>checkBox_background</tabstop>
<tabstop>checkBox_layout</tabstop>
<tabstop>checkBox_popup</tabstop>
<tabstop>checkBox_leftStretch</tabstop>

View File

@ -99,7 +99,7 @@ del - remove item</string>
</item>
</layout>
</item>
<item row="1" column="0">
<item row="2" column="0">
<layout class="QHBoxLayout" name="layout_gpudev">
<item>
<widget class="QLabel" name="label_gpudev">
@ -152,7 +152,7 @@ del - remove item</string>
</item>
</layout>
</item>
<item row="2" column="0">
<item row="3" column="0">
<layout class="QHBoxLayout" name="layout_hdddev">
<item>
<widget class="QLabel" name="label_hdddev">
@ -185,7 +185,7 @@ del - remove item</string>
</item>
</layout>
</item>
<item row="3" column="0">
<item row="4" column="0">
<layout class="QHBoxLayout" name="layout_hddtempCmd">
<item>
<widget class="QLabel" name="label_hddtempCmd">
@ -209,7 +209,7 @@ del - remove item</string>
</item>
</layout>
</item>
<item row="4" column="0">
<item row="5" column="0">
<layout class="QHBoxLayout" name="layout_mpdaddress">
<item>
<widget class="QLabel" name="label_mpdaddress">
@ -233,7 +233,7 @@ del - remove item</string>
</item>
</layout>
</item>
<item row="5" column="0">
<item row="6" column="0">
<layout class="QHBoxLayout" name="layout_mpdport">
<item>
<widget class="QLabel" name="label_mpdport">
@ -288,7 +288,7 @@ del - remove item</string>
</item>
</layout>
</item>
<item row="6" column="0">
<item row="7" column="0">
<layout class="QVBoxLayout" name="layout_pkgCommand">
<item>
<layout class="QHBoxLayout" name="layout_pkgCommandSelect">
@ -403,7 +403,7 @@ del - remove item</string>
</item>
</layout>
</item>
<item row="7" column="0">
<item row="8" column="0">
<layout class="QHBoxLayout" name="layout_playerSelect">
<item>
<widget class="QLabel" name="label_playerSelect">
@ -456,7 +456,7 @@ del - remove item</string>
</item>
</layout>
</item>
<item row="8" column="0">
<item row="9" column="0">
<spacer name="spacer_dataengine">
<property name="orientation">
<enum>Qt::Vertical</enum>
@ -469,12 +469,53 @@ del - remove item</string>
</property>
</spacer>
</item>
<item row="1" column="0">
<layout class="QHBoxLayout" name="layout_desktopCmd">
<item>
<widget class="QLabel" name="label_desktopCmd">
<property name="minimumSize">
<size>
<width>200</width>
<height>0</height>
</size>
</property>
<property name="text">
<string>Desktop check cmd</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="lineEdit_desktopCmd">
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</widget>
</item>
</layout>
</widget>
<tabstops>
<tabstop>scrollArea_dattaengine</tabstop>
<tabstop>lineEdit_customCommand</tabstop>
<tabstop>pushButton_customCommand</tabstop>
<tabstop>listWidget_customCommand</tabstop>
<tabstop>lineEdit_desktopCmd</tabstop>
<tabstop>comboBox_gpudev</tabstop>
<tabstop>comboBox_hdddev</tabstop>
<tabstop>lineEdit_hddtempCmd</tabstop>
<tabstop>lineEdit_mpdaddress</tabstop>
<tabstop>spinBox_mpdport</tabstop>
<tabstop>comboBox_pkgCommand</tabstop>
<tabstop>spinBox_pkgCommandNum</tabstop>
<tabstop>pushButton_pkgCommand</tabstop>
<tabstop>listWidget_pkgCommand</tabstop>
<tabstop>comboBox_playerSelect</tabstop>
</tabstops>
<resources/>
<connections/>
</ui>

View File

@ -54,9 +54,9 @@
<property name="geometry">
<rect>
<x>0</x>
<y>-103</y>
<y>-139</y>
<width>666</width>
<height>660</height>
<height>696</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_7">
@ -104,7 +104,7 @@ $custom - custom time format</string>
<number>1</number>
</property>
<property name="maximum">
<number>18</number>
<number>19</number>
</property>
<property name="pageStep">
<number>1</number>
@ -160,7 +160,7 @@ $custom - custom format</string>
<number>1</number>
</property>
<property name="maximum">
<number>18</number>
<number>19</number>
</property>
<property name="pageStep">
<number>1</number>
@ -226,7 +226,7 @@ $cpuN - load CPU for core N, %</string>
<number>1</number>
</property>
<property name="maximum">
<number>18</number>
<number>19</number>
</property>
<property name="pageStep">
<number>1</number>
@ -292,7 +292,7 @@ $cpuclN - CPU clock for core N, MHz</string>
<number>1</number>
</property>
<property name="maximum">
<number>18</number>
<number>19</number>
</property>
<property name="pageStep">
<number>1</number>
@ -350,7 +350,7 @@ $cpuclN - CPU clock for core N, MHz</string>
<number>1</number>
</property>
<property name="maximum">
<number>18</number>
<number>19</number>
</property>
<property name="pageStep">
<number>1</number>
@ -408,7 +408,7 @@ $cpuclN - CPU clock for core N, MHz</string>
<number>1</number>
</property>
<property name="maximum">
<number>18</number>
<number>19</number>
</property>
<property name="pageStep">
<number>1</number>
@ -466,7 +466,7 @@ $cpuclN - CPU clock for core N, MHz</string>
<number>1</number>
</property>
<property name="maximum">
<number>18</number>
<number>19</number>
</property>
<property name="pageStep">
<number>1</number>
@ -531,7 +531,7 @@ $memtotgb - total RAM, GB</string>
<number>1</number>
</property>
<property name="maximum">
<number>18</number>
<number>19</number>
</property>
<property name="pageStep">
<number>1</number>
@ -596,7 +596,7 @@ $swaptotgb - total swap, GB</string>
<number>1</number>
</property>
<property name="maximum">
<number>18</number>
<number>19</number>
</property>
<property name="pageStep">
<number>1</number>
@ -658,7 +658,7 @@ $hddtotgbN - total size of mount point N (from 0), GB. Example: $hddtotgb0</stri
<number>1</number>
</property>
<property name="maximum">
<number>18</number>
<number>19</number>
</property>
<property name="pageStep">
<number>1</number>
@ -717,7 +717,7 @@ $hddwN - write speed HDD N (from 0), KB/s. Example: $hddw0</string>
<number>1</number>
</property>
<property name="maximum">
<number>18</number>
<number>19</number>
</property>
<property name="pageStep">
<number>1</number>
@ -775,7 +775,7 @@ $hddwN - write speed HDD N (from 0), KB/s. Example: $hddw0</string>
<number>1</number>
</property>
<property name="maximum">
<number>18</number>
<number>19</number>
</property>
<property name="pageStep">
<number>1</number>
@ -838,7 +838,7 @@ $netdev - current network device</string>
<number>1</number>
</property>
<property name="maximum">
<number>18</number>
<number>19</number>
</property>
<property name="pageStep">
<number>1</number>
@ -897,7 +897,7 @@ $ac - AC status</string>
<number>1</number>
</property>
<property name="maximum">
<number>18</number>
<number>19</number>
</property>
<property name="pageStep">
<number>1</number>
@ -959,7 +959,7 @@ $title - song title</string>
<number>1</number>
</property>
<property name="maximum">
<number>18</number>
<number>19</number>
</property>
<property name="pageStep">
<number>1</number>
@ -1019,7 +1019,7 @@ $ps - list of running processes comma separated</string>
<number>1</number>
</property>
<property name="maximum">
<number>18</number>
<number>19</number>
</property>
<property name="pageStep">
<number>1</number>
@ -1077,7 +1077,7 @@ $ps - list of running processes comma separated</string>
<number>1</number>
</property>
<property name="maximum">
<number>18</number>
<number>19</number>
</property>
<property name="pageStep">
<number>1</number>
@ -1135,7 +1135,7 @@ $ps - list of running processes comma separated</string>
<number>1</number>
</property>
<property name="maximum">
<number>18</number>
<number>19</number>
</property>
<property name="pageStep">
<number>1</number>
@ -1153,6 +1153,66 @@ $ps - list of running processes comma separated</string>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="layout_desktop">
<item>
<widget class="QCheckBox" name="checkBox_desktop">
<property name="minimumSize">
<size>
<width>200</width>
<height>0</height>
</size>
</property>
<property name="text">
<string>Current desktop</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="lineEdit_desktop">
<property name="toolTip">
<string>$name - desktop name
$number - desktop number
$total - total number of desktops</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item>
<widget class="QSlider" name="slider_desktop">
<property name="maximumSize">
<size>
<width>120</width>
<height>16777215</height>
</size>
</property>
<property name="minimum">
<number>1</number>
</property>
<property name="maximum">
<number>19</number>
</property>
<property name="pageStep">
<number>1</number>
</property>
<property name="value">
<number>19</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="tickPosition">
<enum>QSlider::TicksAbove</enum>
</property>
</widget>
</item>
</layout>
</item>
<item>
<spacer name="spacer_elements">
<property name="orientation">

View File

@ -1,7 +1,14 @@
[Desktop Entry]
Encoding=UTF-8
Name=Py Text Monitor
ServiceTypes=Plasma/Applet
Comment=A minimalistic Plasmoid script written on Python2
Comment[en]=A minimalistic Plasmoid script written on Python2
Comment[es]=Un plasmoide minimalista escrito en Python2
Comment[es]=Un script Plasmoïde minimaliste écrit sur Python2
Comment[pt_BR]=Um script Plasmoid escrito em Python2
Comment[ru]=Минималистичный плазмоид скрипт, написанный на Python2
Comment[uk]=Мінімалістичний плазмоїд, що написаний на Python2
X-KDE-ServiceTypes=Plasma/Applet
Type=Service
Icon=utilities-system-monitor
@ -13,7 +20,7 @@ X-KDE-PluginInfo-Author=Evgeniy Alekseev aka arcanis
X-KDE-PluginInfo-Email=esalexeev@gmail.com
X-KDE-PluginInfo-Name=pytextmonitor
X-KDE-PluginInfo-Version=@PROJECT_VERSION@
X-KDE-PluginInfo-Website=http://kde-look.org/
X-KDE-PluginInfo-Website=http://arcanis.name/projects/pytextmonitor/
X-KDE-PluginInfo-Category=System Information
X-KDE-PluginInfo-Depends=
X-KDE-PluginInfo-License=GPLv3

View File

@ -6,10 +6,10 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: http://kde-look.org/content/show.php?content=157124\n"
"POT-Creation-Date: 2014-06-04 22:48+0400\n"
"PO-Revision-Date: 2014-06-04 22:48+0400\n"
"POT-Creation-Date: 2014-07-09 13:13+0400\n"
"PO-Revision-Date: 2014-07-09 13:14+0400\n"
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
"Language-Team: Russian <kde-russian@lists.kde.ru>\n"
"Language-Team: English <kde-russian@lists.kde.ru>\n"
"Language: ru\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@ -18,63 +18,67 @@ msgstr ""
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
"X-Generator: Lokalize 1.5\n"
#: code/configdef.py:273
#: code/configdef.py:277
msgid "Widget"
msgstr "Widget"
#: code/configdef.py:275
#: code/configdef.py:279
msgid "Advanced"
msgstr "Advanced"
#: code/configdef.py:277
#: code/configdef.py:281
msgid "Tooltip"
msgstr "Tooltip"
#: code/configdef.py:279
#: code/configdef.py:283
msgid "Appearance"
msgstr "Appearance"
#: code/configdef.py:281
#: code/configdef.py:285
msgid "DataEngine"
msgstr "DataEngine"
#: code/main.py:117
#: code/main.py:115
msgid "Run ksysguard"
msgstr "Run ksysguard"
#: code/main.py:119
#: code/main.py:117
msgid "Show README"
msgstr "Show README"
#: code/main.py:121
#: code/main.py:119
msgid "Update text"
msgstr "Update text"
#: rc.cpp:3 rc.cpp:129 rc.cpp:150 rc.cpp:197 rc.cpp:224
#: rc.cpp:3 rc.cpp:132 rc.cpp:153 rc.cpp:203 rc.cpp:230
msgid "Form"
msgstr "Form"
#: rc.cpp:6
msgid "Enable background"
msgstr "Enable background"
#: rc.cpp:9
msgid "Vertical layout"
msgstr "Vertical layout"
#: rc.cpp:9
#: rc.cpp:12
msgid "Enable popup on mouse click"
msgstr "Enable popup on mouse click"
#: rc.cpp:12
#: rc.cpp:15
msgid "Add stretch to left/top of the layout"
msgstr "Add stretch to left/top of the layout"
#: rc.cpp:15
#: rc.cpp:18
msgid "Add stretch to right/bottom of the layout"
msgstr "Add stretch to right/bottom of the layout"
#: rc.cpp:18
#: rc.cpp:21
msgid "Custom time format"
msgstr "Custom time format"
#: rc.cpp:21
#: rc.cpp:24
msgid ""
"$dddd - long weekday\n"
"$ddd - short weekday\n"
@ -110,11 +114,11 @@ msgstr ""
"$ss - seconds\n"
"$s - seconds w\\o zero"
#: rc.cpp:39
#: rc.cpp:42
msgid "Custom uptime format"
msgstr "Custom uptime format"
#: rc.cpp:42
#: rc.cpp:45
msgid ""
"$dd - uptime days\n"
"$d - uptime days without zero\n"
@ -130,19 +134,19 @@ msgstr ""
"$mm - uptime minutes\n"
"$m - uptime minutes without zero"
#: rc.cpp:50
#: rc.cpp:53
msgid "Temperature units"
msgstr "Temperature units"
#: rc.cpp:53
#: rc.cpp:56
msgid "Temperature devices"
msgstr "Temperature devices"
#: rc.cpp:56 rc.cpp:66 rc.cpp:76 rc.cpp:86 rc.cpp:159 rc.cpp:187
#: rc.cpp:59 rc.cpp:69 rc.cpp:79 rc.cpp:89 rc.cpp:162 rc.cpp:190
msgid "Add"
msgstr "Add"
#: rc.cpp:59 rc.cpp:69 rc.cpp:79 rc.cpp:89 rc.cpp:162 rc.cpp:190
#: rc.cpp:62 rc.cpp:72 rc.cpp:82 rc.cpp:92 rc.cpp:165 rc.cpp:193
msgid ""
"Editable\n"
"del - remove item"
@ -150,131 +154,135 @@ msgstr ""
"Editable\n"
"del - remove item"
#: rc.cpp:63
#: rc.cpp:66
msgid "Mount points"
msgstr "Mount points"
#: rc.cpp:73
#: rc.cpp:76
msgid "HDD devices (speed)"
msgstr "HDD (speed)"
#: rc.cpp:83
#: rc.cpp:86
msgid "HDD devices (temp)"
msgstr "HDD (temp)"
#: rc.cpp:93
#: rc.cpp:96
msgid "Network directory"
msgstr "Network directory"
#: rc.cpp:96
#: rc.cpp:99
msgid "\"/sys/class/net\" by default"
msgstr "\"/sys/class/net\" by default"
#: rc.cpp:99
#: rc.cpp:102
msgid "Disable auto select device and set specified device"
msgstr "Disable auto select device and set specified device"
#: rc.cpp:102
#: rc.cpp:105
msgid "Set network device"
msgstr "Set network device"
#: rc.cpp:105
#: rc.cpp:108
msgid "Battery device"
msgstr "Battery device"
#: rc.cpp:108
#: rc.cpp:111
msgid "\"/sys/class/power_supply/BAT0/capacity\" by default"
msgstr "\"/sys/class/power_supply/BAT0/capacity\" by default"
#: rc.cpp:111
#: rc.cpp:114
msgid "AC online tag"
msgstr "AC online tag"
#: rc.cpp:114
#: rc.cpp:117
msgid "Line, which returns when AC is online"
msgstr "Line, which returns when AC is online"
#: rc.cpp:117
#: rc.cpp:120
msgid "AC offline tag"
msgstr "AC offline tag"
#: rc.cpp:120
#: rc.cpp:123
msgid "Line, which returns when AC is offline"
msgstr "Line, which returns when AC is offline"
#: rc.cpp:123
#: rc.cpp:126
msgid "AC device"
msgstr "AC device"
#: rc.cpp:126
#: rc.cpp:129
msgid "\"/sys/class/power_supply/AC/online\" by default"
msgstr "\"/sys/class/power_supply/AC/online\" by default"
#: rc.cpp:132
#: rc.cpp:135
msgid "Time interval"
msgstr "Time interval"
#: rc.cpp:135
#: rc.cpp:138
msgid "Font"
msgstr "Font"
#: rc.cpp:138
#: rc.cpp:141
msgid "Font size"
msgstr "Font size"
#: rc.cpp:141
#: rc.cpp:144
msgid "Font color"
msgstr "Font color"
#: rc.cpp:144
#: rc.cpp:147
msgid "Font style"
msgstr "Font style"
#: rc.cpp:147
#: rc.cpp:150
msgid "Font weight"
msgstr "Font weight"
#: rc.cpp:153
#: rc.cpp:156
msgid "Custom command"
msgstr "Custom command"
#: rc.cpp:156
#: rc.cpp:159
msgid "Custom command to run"
msgstr "Custom command to run"
#: rc.cpp:166
#: rc.cpp:169
msgid "GPU device"
msgstr "GPU device"
#: rc.cpp:169 rc.cpp:311
#: rc.cpp:172 rc.cpp:317
msgid "HDD"
msgstr "HDD"
#: rc.cpp:172
msgid "hddtemp cmd"
msgstr ""
#: rc.cpp:175
msgid "hddtemp cmd"
msgstr "hddtemp cmd"
#: rc.cpp:178
msgid "MPD address"
msgstr "MPD address"
#: rc.cpp:178
#: rc.cpp:181
msgid "MPD port"
msgstr "MPD port"
#: rc.cpp:181 rc.cpp:369
#: rc.cpp:184 rc.cpp:375
msgid "Package manager"
msgstr "Package manager"
#: rc.cpp:184
#: rc.cpp:187
msgid "Number of null lines"
msgstr "Number of null lines"
#: rc.cpp:194 rc.cpp:351
#: rc.cpp:197 rc.cpp:357
msgid "Music player"
msgstr "Music player"
#: rc.cpp:200
msgid "Desktop check cmd"
msgstr "Desktop check cmd"
#: rc.cpp:206
msgid ""
"CPU, CPU clock, memory, swap and network labels support graphical tooltip. "
"To enable them just make needed checkbox fully checked."
@ -282,35 +290,35 @@ msgstr ""
"CPU, CPU clock, memory, swap and network labels support graphical tooltip. "
"To enable them just make needed checkbox fully checked."
#: rc.cpp:203
#: rc.cpp:209
msgid "Number of values for tooltips"
msgstr "Number of values for tooltips"
#: rc.cpp:206
#: rc.cpp:212
msgid "CPU clock color"
msgstr "CPU clock color"
#: rc.cpp:209
#: rc.cpp:215
msgid "Swap color"
msgstr "Swap color"
#: rc.cpp:212
#: rc.cpp:218
msgid "CPU color"
msgstr "CPU color"
#: rc.cpp:215
#: rc.cpp:221
msgid "Download speed color"
msgstr "Download speed color"
#: rc.cpp:218
#: rc.cpp:224
msgid "Memory color"
msgstr "Memory color"
#: rc.cpp:221
#: rc.cpp:227
msgid "Upload speed color"
msgstr "Upload speed color"
#: rc.cpp:227
#: rc.cpp:233
msgid ""
"Detailed information may be found on <a href=\"http://arcanis.name/projects/"
"pytextmonitor/\">project homepage</a>"
@ -318,11 +326,11 @@ msgstr ""
"Detailed information may be found on <a href=\"http://arcanis.name/projects/"
"pytextmonitor/\">project homepage</a>"
#: rc.cpp:230
#: rc.cpp:236
msgid "Time"
msgstr "Time"
#: rc.cpp:233
#: rc.cpp:239
msgid ""
"$time - time in default format\n"
"$isotime - time in ISO format\n"
@ -336,11 +344,11 @@ msgstr ""
"$longtime - time in log format\n"
"$custom - custom time format"
#: rc.cpp:240
#: rc.cpp:246
msgid "Uptime"
msgstr "Uptime"
#: rc.cpp:243
#: rc.cpp:249
msgid ""
"$uptime - system uptime\n"
"$custom - custom format"
@ -348,11 +356,11 @@ msgstr ""
"$uptime - system uptime\n"
"$custom - custom format"
#: rc.cpp:247
#: rc.cpp:253
msgid "CPU"
msgstr "CPU"
#: rc.cpp:251
#: rc.cpp:257
msgid ""
"$cpu - total load CPU, %\n"
"$cpu0 - load CPU for core 0, %\n"
@ -368,11 +376,11 @@ msgstr ""
"...\n"
"$cpuN - load CPU for core N, %"
#: rc.cpp:259
#: rc.cpp:265
msgid "CPU Clock"
msgstr "CPU Clock"
#: rc.cpp:262
#: rc.cpp:268
msgid ""
"$cpucl - average CPU clock, MHz\n"
"$cpucl0 - CPU clock for core 0, MHz\n"
@ -388,35 +396,35 @@ msgstr ""
"...\n"
"$cpuclN - CPU clock for core N, MHz"
#: rc.cpp:270
#: rc.cpp:276
msgid "Temperature"
msgstr "Temperature"
#: rc.cpp:273
#: rc.cpp:279
msgid "$tempN - physical temperature on device N (from 0). Example: $temp0"
msgstr "$tempN - physical temperature on device N (from 0). Example: $temp0"
#: rc.cpp:276
#: rc.cpp:282
msgid "GPU"
msgstr "GPU"
#: rc.cpp:280
#: rc.cpp:286
msgid "$gpu - gpu usage, %"
msgstr "$gpu - gpu usage, %"
#: rc.cpp:283
#: rc.cpp:289
msgid "GPU Temp"
msgstr "GPU Temp"
#: rc.cpp:286
#: rc.cpp:292
msgid "$gputemp - physical temperature on GPU"
msgstr "$gputemp - physical temperature on GPU"
#: rc.cpp:289
#: rc.cpp:295
msgid "Memory"
msgstr "Memory"
#: rc.cpp:293
#: rc.cpp:299
msgid ""
"$mem - RAM usage, %\n"
"$memmb - RAM usage, MB\n"
@ -430,11 +438,11 @@ msgstr ""
"$memtotmb - total RAM, MB\n"
"$memtotgb - total RAM, GB"
#: rc.cpp:300
#: rc.cpp:306
msgid "Swap"
msgstr "Swap"
#: rc.cpp:304
#: rc.cpp:310
msgid ""
"$swap - swap usage, %\n"
"$swapmb - swap usage, MB\n"
@ -448,7 +456,7 @@ msgstr ""
"$swaptotmb - total swap, MB\n"
"$swaptotgb - total swap, GB"
#: rc.cpp:315
#: rc.cpp:321
msgid ""
"$hddN - usage for mount point N (from 0), %. Example: $hdd0\n"
"$hddmbN - usage for mount point N (from 0), MB. Example: $hddmb0\n"
@ -462,11 +470,11 @@ msgstr ""
"$hddtotmbN - total size of mount point N (from 0), MB. Example: $hddtotmb0\n"
"$hddtotgbN - total size of mount point N (from 0), GB. Example: $hddtotgb0"
#: rc.cpp:322
#: rc.cpp:328
msgid "HDD speed"
msgstr "HDD speed"
#: rc.cpp:325
#: rc.cpp:331
msgid ""
"$hddrN - read speed HDD N (from 0), KB/s. Example: $hddr0\n"
"$hddwN - write speed HDD N (from 0), KB/s. Example: $hddw0"
@ -474,21 +482,21 @@ msgstr ""
"$hddrN - read speed HDD N (from 0), KB/s. Example: $hddr0\n"
"$hddwN - write speed HDD N (from 0), KB/s. Example: $hddw0"
#: rc.cpp:329
#: rc.cpp:335
msgid "HDD temp"
msgstr "HDD temp"
#: rc.cpp:332
#: rc.cpp:338
msgid ""
"$hddtempN - physical temperature on device N (from 0). Example: $hddtemp0"
msgstr ""
"$hddtempN - physical temperature on device N (from 0). Example: $hddtemp0"
#: rc.cpp:335
#: rc.cpp:341
msgid "Network"
msgstr "Network"
#: rc.cpp:338
#: rc.cpp:344
msgid ""
"$down - download speed, KB/s\n"
"$up - upload speed, KB/s\n"
@ -498,11 +506,11 @@ msgstr ""
"$up - upload speed, KB/s\n"
"$netdev - current network device"
#: rc.cpp:343
#: rc.cpp:349
msgid "Battery"
msgstr "Battery"
#: rc.cpp:347
#: rc.cpp:353
msgid ""
"$bat - battery charge, %\n"
"$ac - AC status"
@ -510,7 +518,7 @@ msgstr ""
"$bat - battery charge, %\n"
"$ac - AC status"
#: rc.cpp:354
#: rc.cpp:360
msgid ""
"$album - song album\n"
"$artist - song artist\n"
@ -524,11 +532,11 @@ msgstr ""
"$time - song duration\n"
"$title - song title"
#: rc.cpp:361
#: rc.cpp:367
msgid "Processes"
msgstr "Processes"
#: rc.cpp:364
#: rc.cpp:370
msgid ""
"$pscount - number of running processes\n"
"$pstotal - total number of running processes\n"
@ -538,30 +546,44 @@ msgstr ""
"$pstotal - total number of running processes\n"
"$ps - list of running processes comma separated"
#: rc.cpp:372
msgid ""
"$pkgcountN - number of packages which are available for updates, command N. "
"For example $pkgcount0"
msgstr ""
"$pkgcountN - number of packages which are available for updates, command N. "
"For example $pkgcount0"
#: rc.cpp:375
msgid "Custom"
msgstr "Custom"
#: rc.cpp:378
msgid ""
"$pkgcountN - number of packages which are available for updates, command N. "
"For example $pkgcount0"
msgstr ""
"$pkgcountN - number of packages which are available for updates, command N. "
"For example $pkgcount0"
#: rc.cpp:381
msgid "Custom"
msgstr "Custom"
#: rc.cpp:384
msgid ""
"$customN - get output from custom command N (from N). Example `$custom0`"
msgstr ""
"$customN - get output from custom command N (from N). Example `$custom0`"
#: rc.cpp:379
#: rc.cpp:387
msgid "Current desktop"
msgstr "Current desktop"
#: rc.cpp:390
msgid ""
"$name - desktop name\n"
"$number - desktop number\n"
"$total - total number of desktops"
msgstr ""
"$name - desktop name\n"
"$number - desktop number\n"
"$total - total number of desktops"
#: rc.cpp:393
msgctxt "NAME OF TRANSLATORS"
msgid "Your names"
msgstr "Evgeniy Alekseev"
#: rc.cpp:380
#: rc.cpp:394
msgctxt "EMAIL OF TRANSLATORS"
msgid "Your emails"
msgstr "esalexeev@gmail.com"

View File

@ -7,10 +7,10 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: http://kde-look.org/content/show.php?content=157124\n"
"POT-Creation-Date: 2014-06-04 22:48+0400\n"
"POT-Creation-Date: 2014-07-09 13:13+0400\n"
"PO-Revision-Date: 2014-06-05 10:21+0400\n"
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
"Language-Team: Spanish <kde-russian@lists.kde.ru>\n"
"Language-Team: Spanish <kde-spanish@lists.kde.ru>\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@ -18,63 +18,67 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Lokalize 1.5\n"
#: code/configdef.py:273
#: code/configdef.py:277
msgid "Widget"
msgstr "Widget"
#: code/configdef.py:275
#: code/configdef.py:279
msgid "Advanced"
msgstr "Avanzado"
#: code/configdef.py:277
#: code/configdef.py:281
msgid "Tooltip"
msgstr "Ventana emergente"
#: code/configdef.py:279
#: code/configdef.py:283
msgid "Appearance"
msgstr "Apariencia"
#: code/configdef.py:281
#: code/configdef.py:285
msgid "DataEngine"
msgstr "DataEngine"
#: code/main.py:117
#: code/main.py:115
msgid "Run ksysguard"
msgstr "Ejecutar ksysguard"
#: code/main.py:119
#: code/main.py:117
msgid "Show README"
msgstr "Mostrar el README"
#: code/main.py:121
#: code/main.py:119
msgid "Update text"
msgstr "Actualizar texto"
#: rc.cpp:3 rc.cpp:129 rc.cpp:150 rc.cpp:197 rc.cpp:224
#: rc.cpp:3 rc.cpp:132 rc.cpp:153 rc.cpp:203 rc.cpp:230
msgid "Form"
msgstr "Formulario"
#: rc.cpp:6
msgid "Enable background"
msgstr ""
#: rc.cpp:9
msgid "Vertical layout"
msgstr "Orientación vertical"
#: rc.cpp:9
#: rc.cpp:12
msgid "Enable popup on mouse click"
msgstr "Habilitar ventana emergente al hacer clic"
#: rc.cpp:12
#: rc.cpp:15
msgid "Add stretch to left/top of the layout"
msgstr "Añadir extensión a la izquierda/superior de la distribución"
#: rc.cpp:15
#: rc.cpp:18
msgid "Add stretch to right/bottom of the layout"
msgstr "Añadir extensión a la derecha/inferior de la distribución"
#: rc.cpp:18
#: rc.cpp:21
msgid "Custom time format"
msgstr "Formato personalizado para la hora"
#: rc.cpp:21
#: rc.cpp:24
msgid ""
"$dddd - long weekday\n"
"$ddd - short weekday\n"
@ -110,11 +114,11 @@ msgstr ""
"$ss - segundos\n"
"$s - segundos (sin ceros)"
#: rc.cpp:39
#: rc.cpp:42
msgid "Custom uptime format"
msgstr "Formato personalizado para el tiempo de actividad del sistema"
#: rc.cpp:42
#: rc.cpp:45
msgid ""
"$dd - uptime days\n"
"$d - uptime days without zero\n"
@ -130,19 +134,19 @@ msgstr ""
"$mm - minutos\n"
"$m - minutos (sin ceros)"
#: rc.cpp:50
#: rc.cpp:53
msgid "Temperature units"
msgstr "Unidades de temperatura"
#: rc.cpp:53
#: rc.cpp:56
msgid "Temperature devices"
msgstr "Dispositivos de temperatura"
#: rc.cpp:56 rc.cpp:66 rc.cpp:76 rc.cpp:86 rc.cpp:159 rc.cpp:187
#: rc.cpp:59 rc.cpp:69 rc.cpp:79 rc.cpp:89 rc.cpp:162 rc.cpp:190
msgid "Add"
msgstr "Añadir"
#: rc.cpp:59 rc.cpp:69 rc.cpp:79 rc.cpp:89 rc.cpp:162 rc.cpp:190
#: rc.cpp:62 rc.cpp:72 rc.cpp:82 rc.cpp:92 rc.cpp:165 rc.cpp:193
msgid ""
"Editable\n"
"del - remove item"
@ -150,131 +154,135 @@ msgstr ""
"Editable\n"
"del - eliminar elemento"
#: rc.cpp:63
#: rc.cpp:66
msgid "Mount points"
msgstr "Puntos de montaje"
#: rc.cpp:73
#: rc.cpp:76
msgid "HDD devices (speed)"
msgstr "Disco duro (velocidad)"
#: rc.cpp:83
#: rc.cpp:86
msgid "HDD devices (temp)"
msgstr "Disco duro (temperatura)"
#: rc.cpp:93
#: rc.cpp:96
msgid "Network directory"
msgstr "Directorio de la red"
#: rc.cpp:96
#: rc.cpp:99
msgid "\"/sys/class/net\" by default"
msgstr "\"/sys/class/net\" por defecto"
#: rc.cpp:99
#: rc.cpp:102
msgid "Disable auto select device and set specified device"
msgstr "Inhabilitar selección automática del dispositivo y especificar uno"
#: rc.cpp:102
#: rc.cpp:105
msgid "Set network device"
msgstr "Establecer dispositivo de red"
#: rc.cpp:105
#: rc.cpp:108
msgid "Battery device"
msgstr "Dispositivo de batería"
#: rc.cpp:108
#: rc.cpp:111
msgid "\"/sys/class/power_supply/BAT0/capacity\" by default"
msgstr "\"/sys/class/power_supply/BAT0/capacity\" por defecto"
#: rc.cpp:111
#: rc.cpp:114
msgid "AC online tag"
msgstr "Etiqueta para alimentación conectada"
#: rc.cpp:114
#: rc.cpp:117
msgid "Line, which returns when AC is online"
msgstr "Línea que devuelve si la alimentación está conectada"
#: rc.cpp:117
#: rc.cpp:120
msgid "AC offline tag"
msgstr "Etiqueta para la alimentación desconectada"
#: rc.cpp:120
#: rc.cpp:123
msgid "Line, which returns when AC is offline"
msgstr "Línea que devuelve si la alimentación está desconectada"
#: rc.cpp:123
#: rc.cpp:126
msgid "AC device"
msgstr "Dispositivo de alimentación"
#: rc.cpp:126
#: rc.cpp:129
msgid "\"/sys/class/power_supply/AC/online\" by default"
msgstr "\"/sys/class/power_supply/AC/online\" por defecto"
#: rc.cpp:132
#: rc.cpp:135
msgid "Time interval"
msgstr "Intervalo de tiempo"
#: rc.cpp:135
#: rc.cpp:138
msgid "Font"
msgstr "Fuente"
#: rc.cpp:138
#: rc.cpp:141
msgid "Font size"
msgstr "Tamaño de fuente"
#: rc.cpp:141
#: rc.cpp:144
msgid "Font color"
msgstr "Color de fuente"
#: rc.cpp:144
#: rc.cpp:147
msgid "Font style"
msgstr "Estilo de fuente"
#: rc.cpp:147
#: rc.cpp:150
msgid "Font weight"
msgstr "Grosor de la fuente"
#: rc.cpp:153
#: rc.cpp:156
msgid "Custom command"
msgstr "Comando personalizado"
#: rc.cpp:156
#: rc.cpp:159
msgid "Custom command to run"
msgstr "Comando personalizado para ejecutar"
#: rc.cpp:166
#: rc.cpp:169
msgid "GPU device"
msgstr "Dispositivo de GPU"
#: rc.cpp:169 rc.cpp:311
#: rc.cpp:172 rc.cpp:317
msgid "HDD"
msgstr "Disco duro"
#: rc.cpp:172
#: rc.cpp:175
msgid "hddtemp cmd"
msgstr "Comando hddtemp"
#: rc.cpp:175
#: rc.cpp:178
msgid "MPD address"
msgstr "Dirección de MPD"
#: rc.cpp:178
#: rc.cpp:181
msgid "MPD port"
msgstr "Puerto de MPD"
#: rc.cpp:181 rc.cpp:369
#: rc.cpp:184 rc.cpp:375
msgid "Package manager"
msgstr "Gestor de paquetes"
#: rc.cpp:184
#: rc.cpp:187
msgid "Number of null lines"
msgstr "Número de líneas nulas"
#: rc.cpp:194 rc.cpp:351
#: rc.cpp:197 rc.cpp:357
msgid "Music player"
msgstr "Reproductor de música"
#: rc.cpp:200
msgid "Desktop check cmd"
msgstr ""
#: rc.cpp:206
msgid ""
"CPU, CPU clock, memory, swap and network labels support graphical tooltip. "
"To enable them just make needed checkbox fully checked."
@ -283,35 +291,35 @@ msgstr ""
"ventanas emergentes. Para habilitarlas habilite la caja de seleccione la "
"casilla de verificación pertinente."
#: rc.cpp:203
#: rc.cpp:209
msgid "Number of values for tooltips"
msgstr "Número de valores para las ventanas emergentes"
#: rc.cpp:206
#: rc.cpp:212
msgid "CPU clock color"
msgstr "Color de la frecuencia de la CPU"
#: rc.cpp:209
#: rc.cpp:215
msgid "Swap color"
msgstr "Color de la swap"
#: rc.cpp:212
#: rc.cpp:218
msgid "CPU color"
msgstr "Color de la CPU"
#: rc.cpp:215
#: rc.cpp:221
msgid "Download speed color"
msgstr "Color de la velocidad de recepción"
#: rc.cpp:218
#: rc.cpp:224
msgid "Memory color"
msgstr "Color de la memoria"
#: rc.cpp:221
#: rc.cpp:227
msgid "Upload speed color"
msgstr "Color de la velocidad de envío"
#: rc.cpp:227
#: rc.cpp:233
msgid ""
"Detailed information may be found on <a href=\"http://arcanis.name/projects/"
"pytextmonitor/\">project homepage</a>"
@ -319,11 +327,11 @@ msgstr ""
"Puede encontrar información detallada en el <a href=\"http://arcanis.name/"
"projects/pytextmonitor/\">sitio del proyecto</a>"
#: rc.cpp:230
#: rc.cpp:236
msgid "Time"
msgstr "Hora"
#: rc.cpp:233
#: rc.cpp:239
msgid ""
"$time - time in default format\n"
"$isotime - time in ISO format\n"
@ -337,11 +345,11 @@ msgstr ""
"$longtime - hora en formato largo\n"
"$custom - hora en formato personalizado"
#: rc.cpp:240
#: rc.cpp:246
msgid "Uptime"
msgstr "Tiempo de actividad"
#: rc.cpp:243
#: rc.cpp:249
msgid ""
"$uptime - system uptime\n"
"$custom - custom format"
@ -349,11 +357,11 @@ msgstr ""
"$uptime - tiempo de actividad del sistema\n"
"$custom - formato personalizado"
#: rc.cpp:247
#: rc.cpp:253
msgid "CPU"
msgstr "CPU"
#: rc.cpp:251
#: rc.cpp:257
msgid ""
"$cpu - total load CPU, %\n"
"$cpu0 - load CPU for core 0, %\n"
@ -369,11 +377,11 @@ msgstr ""
"...\n"
"$cpuN - carga de la CPU para el núcleo N, %"
#: rc.cpp:259
#: rc.cpp:265
msgid "CPU Clock"
msgstr "Frecuencia de la CPU"
#: rc.cpp:262
#: rc.cpp:268
msgid ""
"$cpucl - average CPU clock, MHz\n"
"$cpucl0 - CPU clock for core 0, MHz\n"
@ -389,37 +397,37 @@ msgstr ""
"...\n"
"$cpuclN - frecuencia de la CPU para el núcleo N, MHz"
#: rc.cpp:270
#: rc.cpp:276
msgid "Temperature"
msgstr "Temperatura"
#: rc.cpp:273
#: rc.cpp:279
msgid "$tempN - physical temperature on device N (from 0). Example: $temp0"
msgstr ""
"$tempN - temperatura física en el dispositivo N (a partir de 0). Ejemplo: "
"$temp0"
#: rc.cpp:276
#: rc.cpp:282
msgid "GPU"
msgstr "GPU"
#: rc.cpp:280
#: rc.cpp:286
msgid "$gpu - gpu usage, %"
msgstr "$gpu - uso de la GPU, %"
#: rc.cpp:283
#: rc.cpp:289
msgid "GPU Temp"
msgstr "Temperatura de la GPU"
#: rc.cpp:286
#: rc.cpp:292
msgid "$gputemp - physical temperature on GPU"
msgstr "$gputemp - temperatura física de la GPU"
#: rc.cpp:289
#: rc.cpp:295
msgid "Memory"
msgstr "Memoria"
#: rc.cpp:293
#: rc.cpp:299
msgid ""
"$mem - RAM usage, %\n"
"$memmb - RAM usage, MB\n"
@ -433,11 +441,11 @@ msgstr ""
"$memtotmb - uso total de la RAM, MB\n"
"$memtotgb - uso total de la RAM, GB"
#: rc.cpp:300
#: rc.cpp:306
msgid "Swap"
msgstr "Swap"
#: rc.cpp:304
#: rc.cpp:310
msgid ""
"$swap - swap usage, %\n"
"$swapmb - swap usage, MB\n"
@ -451,7 +459,7 @@ msgstr ""
"$swaptotmb - uso total de la swap, MB\n"
"$swaptotgb - uso total de la swap, GB"
#: rc.cpp:315
#: rc.cpp:321
msgid ""
"$hddN - usage for mount point N (from 0), %. Example: $hdd0\n"
"$hddmbN - usage for mount point N (from 0), MB. Example: $hddmb0\n"
@ -469,36 +477,36 @@ msgstr ""
"$hddtotgbN - uso total para el punto de montaje N (a partir de 0), GB. "
"Ejemplo: $hddtotgb0"
#: rc.cpp:322
#: rc.cpp:328
msgid "HDD speed"
msgstr "Velocidad del disco duro"
#: rc.cpp:325
#: rc.cpp:331
msgid ""
"$hddrN - read speed HDD N (from 0), KB/s. Example: $hddr0\n"
"$hddwN - write speed HDD N (from 0), KB/s. Example: $hddw0"
msgstr ""
"$hddrN - velocidad de lectura del disco N (a partir de 0), KB/s. Por ejemplo: "
"$hddr0\n"
"$hddrN - velocidad de lectura del disco N (a partir de 0), KB/s. Por "
"ejemplo: $hddr0\n"
"$hddwN - velocidad de escritura del disco N (a partir de 0), KB/s. Por "
"ejemplo: $hddw0"
#: rc.cpp:329
#: rc.cpp:335
msgid "HDD temp"
msgstr "Temperatura del disco duro"
#: rc.cpp:332
#: rc.cpp:338
msgid ""
"$hddtempN - physical temperature on device N (from 0). Example: $hddtemp0"
msgstr ""
"$hddtempN - temperatura física en el dispositivo N (a partir de 0). Ejemplo: "
"$hddtemp0"
#: rc.cpp:335
#: rc.cpp:341
msgid "Network"
msgstr "Red"
#: rc.cpp:338
#: rc.cpp:344
msgid ""
"$down - download speed, KB/s\n"
"$up - upload speed, KB/s\n"
@ -508,11 +516,11 @@ msgstr ""
"$up - velocidad de envío, KB/s\n"
"$netdev - dispositivo de red actual"
#: rc.cpp:343
#: rc.cpp:349
msgid "Battery"
msgstr "Batería"
#: rc.cpp:347
#: rc.cpp:353
msgid ""
"$bat - battery charge, %\n"
"$ac - AC status"
@ -520,7 +528,7 @@ msgstr ""
"$bat - carga de la batería, %\n"
"$ac - estado de la alimentación"
#: rc.cpp:354
#: rc.cpp:360
msgid ""
"$album - song album\n"
"$artist - song artist\n"
@ -534,11 +542,11 @@ msgstr ""
"$time - duración de la canción\n"
"$title - título de la canción"
#: rc.cpp:361
#: rc.cpp:367
msgid "Processes"
msgstr "Procesos"
#: rc.cpp:364
#: rc.cpp:370
msgid ""
"$pscount - number of running processes\n"
"$pstotal - total number of running processes\n"
@ -548,7 +556,7 @@ msgstr ""
"$pstotal - total de procesos en ejecución\n"
"$ps - listado de procesos en ejecución separados por coma"
#: rc.cpp:372
#: rc.cpp:378
msgid ""
"$pkgcountN - number of packages which are available for updates, command N. "
"For example $pkgcount0"
@ -556,23 +564,34 @@ msgstr ""
"$pkgcountN - número de paquetes con actualizaciones disponibles, comando N. "
"Por ejemplo $pkgcount0"
#: rc.cpp:375
#: rc.cpp:381
msgid "Custom"
msgstr "Personalizado"
#: rc.cpp:378
#: rc.cpp:384
msgid ""
"$customN - get output from custom command N (from N). Example `$custom0`"
msgstr ""
"$customN - obtener la salida de ejecución del comando personalizado N (a "
"partir de 0). Por ejemplo: $custom0"
#: rc.cpp:379
#: rc.cpp:387
msgid "Current desktop"
msgstr ""
#: rc.cpp:390
msgid ""
"$name - desktop name\n"
"$number - desktop number\n"
"$total - total number of desktops"
msgstr ""
#: rc.cpp:393
msgctxt "NAME OF TRANSLATORS"
msgid "Your names"
msgstr "Tu nombre"
#: rc.cpp:380
#: rc.cpp:394
msgctxt "EMAIL OF TRANSLATORS"
msgid "Your emails"
msgstr "Tus correos"

View File

@ -1,5 +1,5 @@
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# Copyright (C) 2014
# This file is distributed under the same license as the PyTextMonitor package.
#
# Evgeniy Alekseev <esalexeev@gmail.com>, 2014.
# Mermouy <mermouy@gmail.com>, 2014.
@ -7,10 +7,10 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: http://kde-look.org/content/show.php?content=157124\n"
"POT-Creation-Date: 2014-06-04 22:48+0400\n"
"POT-Creation-Date: 2014-07-09 13:13+0400\n"
"PO-Revision-Date: 2014-06-05 19:24+0400\n"
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
"Language-Team: French <kde-russian@lists.kde.ru>\n"
"Language-Team: French <kde-french@lists.kde.ru>\n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@ -19,63 +19,67 @@ msgstr ""
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
"X-Generator: Lokalize 1.5\n"
#: code/configdef.py:273
#: code/configdef.py:277
msgid "Widget"
msgstr "Widget"
#: code/configdef.py:275
#: code/configdef.py:279
msgid "Advanced"
msgstr "Avancé"
#: code/configdef.py:277
#: code/configdef.py:281
msgid "Tooltip"
msgstr "Conseil"
#: code/configdef.py:279
#: code/configdef.py:283
msgid "Appearance"
msgstr "Apparence"
#: code/configdef.py:281
#: code/configdef.py:285
msgid "DataEngine"
msgstr "Moteur de données"
#: code/main.py:117
#: code/main.py:115
msgid "Run ksysguard"
msgstr "Lancer ksysguard"
#: code/main.py:119
#: code/main.py:117
msgid "Show README"
msgstr "Voir le README"
#: code/main.py:121
#: code/main.py:119
msgid "Update text"
msgstr "Mettre à jour le texte"
#: rc.cpp:3 rc.cpp:129 rc.cpp:150 rc.cpp:197 rc.cpp:224
#: rc.cpp:3 rc.cpp:132 rc.cpp:153 rc.cpp:203 rc.cpp:230
msgid "Form"
msgstr "Entrées"
#: rc.cpp:6
msgid "Enable background"
msgstr ""
#: rc.cpp:9
msgid "Vertical layout"
msgstr "Positionnement vertical"
#: rc.cpp:9
#: rc.cpp:12
msgid "Enable popup on mouse click"
msgstr "Popup lors d'un click souris"
#: rc.cpp:12
#: rc.cpp:15
msgid "Add stretch to left/top of the layout"
msgstr "Étirer le positionnement vers haut/gauche"
#: rc.cpp:15
#: rc.cpp:18
msgid "Add stretch to right/bottom of the layout"
msgstr "Étirer le positionnement vers bas/droite"
#: rc.cpp:18
#: rc.cpp:21
msgid "Custom time format"
msgstr "Format de l'heure personnalisé"
#: rc.cpp:21
#: rc.cpp:24
msgid ""
"$dddd - long weekday\n"
"$ddd - short weekday\n"
@ -111,11 +115,11 @@ msgstr ""
"$ss - secondes\n"
"$s - secondes sans zéro"
#: rc.cpp:39
#: rc.cpp:42
msgid "Custom uptime format"
msgstr "Temps de fonctionnement personalisé"
#: rc.cpp:42
#: rc.cpp:45
msgid ""
"$dd - uptime days\n"
"$d - uptime days without zero\n"
@ -131,19 +135,19 @@ msgstr ""
"$mm - temps de fonctionnement en minutes\n"
"$m - temps de fonctionnement en minutes sans zéro"
#: rc.cpp:50
#: rc.cpp:53
msgid "Temperature units"
msgstr "Unités de température"
#: rc.cpp:53
#: rc.cpp:56
msgid "Temperature devices"
msgstr "Temperature des périphériques"
#: rc.cpp:56 rc.cpp:66 rc.cpp:76 rc.cpp:86 rc.cpp:159 rc.cpp:187
#: rc.cpp:59 rc.cpp:69 rc.cpp:79 rc.cpp:89 rc.cpp:162 rc.cpp:190
msgid "Add"
msgstr "Ajouter"
#: rc.cpp:59 rc.cpp:69 rc.cpp:79 rc.cpp:89 rc.cpp:162 rc.cpp:190
#: rc.cpp:62 rc.cpp:72 rc.cpp:82 rc.cpp:92 rc.cpp:165 rc.cpp:193
msgid ""
"Editable\n"
"del - remove item"
@ -151,133 +155,137 @@ msgstr ""
"Modifiable\n"
"del - supprimer un élément"
#: rc.cpp:63
#: rc.cpp:66
msgid "Mount points"
msgstr "Points de montage"
#: rc.cpp:73
#: rc.cpp:76
msgid "HDD devices (speed)"
msgstr "Périphériques HDD (la vitesse)"
#: rc.cpp:83
#: rc.cpp:86
msgid "HDD devices (temp)"
msgstr "Périphériques HDD (température)"
#: rc.cpp:93
#: rc.cpp:96
msgid "Network directory"
msgstr "Voisinage réseau"
#: rc.cpp:96
#: rc.cpp:99
msgid "\"/sys/class/net\" by default"
msgstr "\"/sys/class/net\" par défaut"
#: rc.cpp:99
#: rc.cpp:102
msgid "Disable auto select device and set specified device"
msgstr ""
"Désactiver la sélection automatique de périphériques et le sélectionner "
"manuellement"
#: rc.cpp:102
#: rc.cpp:105
msgid "Set network device"
msgstr "Sélectionner le périphérique réseau"
#: rc.cpp:105
#: rc.cpp:108
msgid "Battery device"
msgstr "Batterie"
#: rc.cpp:108
#: rc.cpp:111
msgid "\"/sys/class/power_supply/BAT0/capacity\" by default"
msgstr "\"/sys/class/power_supply/BAT0/capacity\" par défaut"
#: rc.cpp:111
#: rc.cpp:114
msgid "AC online tag"
msgstr "Tag alimentation branchée"
#: rc.cpp:114
#: rc.cpp:117
msgid "Line, which returns when AC is online"
msgstr "Ligne qui est renvoyée lorsque l'alimentation est branchée"
#: rc.cpp:117
#: rc.cpp:120
msgid "AC offline tag"
msgstr "Tag alimentation débranchée"
#: rc.cpp:120
#: rc.cpp:123
msgid "Line, which returns when AC is offline"
msgstr "Ligne, qui est renvoyée lorsque l'alimentation est débranchée"
#: rc.cpp:123
#: rc.cpp:126
msgid "AC device"
msgstr "Périphérique d'alimentation"
#: rc.cpp:126
#: rc.cpp:129
msgid "\"/sys/class/power_supply/AC/online\" by default"
msgstr "\"/sys/class/power_supply/AC/online\" par défaut"
#: rc.cpp:132
#: rc.cpp:135
msgid "Time interval"
msgstr "Intervalle"
#: rc.cpp:135
#: rc.cpp:138
msgid "Font"
msgstr "Police"
#: rc.cpp:138
#: rc.cpp:141
msgid "Font size"
msgstr "Taille de la police"
#: rc.cpp:141
#: rc.cpp:144
msgid "Font color"
msgstr "Couleur de la police"
#: rc.cpp:144
#: rc.cpp:147
msgid "Font style"
msgstr "Style de la police"
#: rc.cpp:147
#: rc.cpp:150
msgid "Font weight"
msgstr "Épaisseur de la police"
#: rc.cpp:153
#: rc.cpp:156
msgid "Custom command"
msgstr "Commande personnalisée"
#: rc.cpp:156
#: rc.cpp:159
msgid "Custom command to run"
msgstr "Commande personnalisée à exécuter"
#: rc.cpp:166
#: rc.cpp:169
msgid "GPU device"
msgstr "Périphérique graphique"
#: rc.cpp:169 rc.cpp:311
#: rc.cpp:172 rc.cpp:317
msgid "HDD"
msgstr "Disque dur"
#: rc.cpp:172
#: rc.cpp:175
msgid "hddtemp cmd"
msgstr "Commande de température HDD"
#: rc.cpp:175
#: rc.cpp:178
msgid "MPD address"
msgstr "Adresse MPD"
#: rc.cpp:178
#: rc.cpp:181
msgid "MPD port"
msgstr "Port MPD"
#: rc.cpp:181 rc.cpp:369
#: rc.cpp:184 rc.cpp:375
msgid "Package manager"
msgstr "Gestionnaire de paquets"
#: rc.cpp:184
#: rc.cpp:187
msgid "Number of null lines"
msgstr "Nombre d'éléments pour les conseils"
#: rc.cpp:194 rc.cpp:351
#: rc.cpp:197 rc.cpp:357
msgid "Music player"
msgstr "Lecteur audio"
#: rc.cpp:200
msgid "Desktop check cmd"
msgstr ""
#: rc.cpp:206
msgid ""
"CPU, CPU clock, memory, swap and network labels support graphical tooltip. "
"To enable them just make needed checkbox fully checked."
@ -286,35 +294,35 @@ msgstr ""
"les conseils visuels. Pour les activer cochez simplement les cases "
"correspondantes."
#: rc.cpp:203
#: rc.cpp:209
msgid "Number of values for tooltips"
msgstr "Nombre d'éléments pour les conseils"
#: rc.cpp:206
#: rc.cpp:212
msgid "CPU clock color"
msgstr "Couleur de l'horloge processeur"
#: rc.cpp:209
#: rc.cpp:215
msgid "Swap color"
msgstr "Couleur de la mémoire d'échange"
#: rc.cpp:212
#: rc.cpp:218
msgid "CPU color"
msgstr "Couleur processeur"
#: rc.cpp:215
#: rc.cpp:221
msgid "Download speed color"
msgstr "Couleur de la vitesse de téléchargement"
#: rc.cpp:218
#: rc.cpp:224
msgid "Memory color"
msgstr "Couleur de la mémoire"
#: rc.cpp:221
#: rc.cpp:227
msgid "Upload speed color"
msgstr "Couleur du téléversement"
#: rc.cpp:227
#: rc.cpp:233
msgid ""
"Detailed information may be found on <a href=\"http://arcanis.name/projects/"
"pytextmonitor/\">project homepage</a>"
@ -322,11 +330,11 @@ msgstr ""
"D'avantage d'informations se trouvent sur <a href=\"http://arcanis.name/"
"projects/pytextmonitor/\">la page du projet</a>"
#: rc.cpp:230
#: rc.cpp:236
msgid "Time"
msgstr "Durée"
#: rc.cpp:233
#: rc.cpp:239
msgid ""
"$time - time in default format\n"
"$isotime - time in ISO format\n"
@ -340,11 +348,11 @@ msgstr ""
"$longtime - l'heure au format log\n"
"$custom - l'heure, format personnalisé"
#: rc.cpp:240
#: rc.cpp:246
msgid "Uptime"
msgstr "temps de fonctionnement"
#: rc.cpp:243
#: rc.cpp:249
msgid ""
"$uptime - system uptime\n"
"$custom - custom format"
@ -352,11 +360,11 @@ msgstr ""
"$uptime - temps de fonctionnement\n"
"$custom - format personnalisé"
#: rc.cpp:247
#: rc.cpp:253
msgid "CPU"
msgstr "CPU"
#: rc.cpp:251
#: rc.cpp:257
msgid ""
"$cpu - total load CPU, %\n"
"$cpu0 - load CPU for core 0, %\n"
@ -370,11 +378,11 @@ msgstr ""
"...\n"
"$cpuN - charge processeur pour le coeur N, %"
#: rc.cpp:259
#: rc.cpp:265
msgid "CPU Clock"
msgstr "Horloge processeur"
#: rc.cpp:262
#: rc.cpp:268
msgid ""
"$cpucl - average CPU clock, MHz\n"
"$cpucl0 - CPU clock for core 0, MHz\n"
@ -388,37 +396,37 @@ msgstr ""
"...\n"
"$cpuclN - Horloge du coeur N, MHz"
#: rc.cpp:270
#: rc.cpp:276
msgid "Temperature"
msgstr "Température"
#: rc.cpp:273
#: rc.cpp:279
msgid "$tempN - physical temperature on device N (from 0). Example: $temp0"
msgstr ""
"$tempN - Température physique du périphérique N (à partir de 0). Exemple: "
"$temp0"
#: rc.cpp:276
#: rc.cpp:282
msgid "GPU"
msgstr "Processeur graphique"
#: rc.cpp:280
#: rc.cpp:286
msgid "$gpu - gpu usage, %"
msgstr "$gpu - utilisation du processeur graphique, %"
#: rc.cpp:283
#: rc.cpp:289
msgid "GPU Temp"
msgstr "Temp du processeur graphique"
#: rc.cpp:286
#: rc.cpp:292
msgid "$gputemp - physical temperature on GPU"
msgstr "$gputemp - Température physique du processeur graphique"
#: rc.cpp:289
#: rc.cpp:295
msgid "Memory"
msgstr "Mémoire"
#: rc.cpp:293
#: rc.cpp:299
msgid ""
"$mem - RAM usage, %\n"
"$memmb - RAM usage, MB\n"
@ -432,11 +440,11 @@ msgstr ""
"$memtotmb - RAM, MB\n"
"$memtotgb - RAM, GB"
#: rc.cpp:300
#: rc.cpp:306
msgid "Swap"
msgstr "mémoire d'échange (swap)"
#: rc.cpp:304
#: rc.cpp:310
msgid ""
"$swap - swap usage, %\n"
"$swapmb - swap usage, MB\n"
@ -450,7 +458,7 @@ msgstr ""
"$swaptotmb - swap, MB\n"
"$swaptotgb - swap, GB"
#: rc.cpp:315
#: rc.cpp:321
msgid ""
"$hddN - usage for mount point N (from 0), %. Example: $hdd0\n"
"$hddmbN - usage for mount point N (from 0), MB. Example: $hddmb0\n"
@ -458,7 +466,8 @@ msgid ""
"$hddtotmbN - total size of mount point N (from 0), MB. Example: $hddtotmb0\n"
"$hddtotgbN - total size of mount point N (from 0), GB. Example: $hddtotgb0"
msgstr ""
"$hddN - utilisation du point de montage N (à partir de 0), %. Exemple: $hdd0\n"
"$hddN - utilisation du point de montage N (à partir de 0), %. Exemple: "
"$hdd0\n"
"$hddmbN - utilisation du point de montage N (à partir de 0), MB. Exemple: "
"$hddmb0\n"
"$hddgbN - utilisation du point de montage N (à partir de 0), GB. Exemple: "
@ -468,11 +477,11 @@ msgstr ""
"$hddtotgbN - taille totale de point de montage N (à partir de 0), GB. "
"Exemple: $hddtotgb0"
#: rc.cpp:322
#: rc.cpp:328
msgid "HDD speed"
msgstr "Vitesse HDD"
#: rc.cpp:325
#: rc.cpp:331
msgid ""
"$hddrN - read speed HDD N (from 0), KB/s. Example: $hddr0\n"
"$hddwN - write speed HDD N (from 0), KB/s. Example: $hddw0"
@ -480,22 +489,22 @@ msgstr ""
"$hddrN - vitesse de lecture HDD N (à partir de 0), KB/s. Exemple: $hddr0\n"
"$hddwN - vitesse d'écriture HDD N (à partir de 0), KB/s. Exemple: $hddw0"
#: rc.cpp:329
#: rc.cpp:335
msgid "HDD temp"
msgstr "Température HDD"
#: rc.cpp:332
#: rc.cpp:338
msgid ""
"$hddtempN - physical temperature on device N (from 0). Example: $hddtemp0"
msgstr ""
"$hddtempN - température physique du périphérique N (à partir de 0). Exemple: "
"$hddtemp0"
#: rc.cpp:335
#: rc.cpp:341
msgid "Network"
msgstr "Réseau"
#: rc.cpp:338
#: rc.cpp:344
msgid ""
"$down - download speed, KB/s\n"
"$up - upload speed, KB/s\n"
@ -505,11 +514,11 @@ msgstr ""
"$up - vitesse ascendante, KB/s\n"
"$netdev - périphérique réseau actuel"
#: rc.cpp:343
#: rc.cpp:349
msgid "Battery"
msgstr "Batterie"
#: rc.cpp:347
#: rc.cpp:353
msgid ""
"$bat - battery charge, %\n"
"$ac - AC status"
@ -517,7 +526,7 @@ msgstr ""
"$bat - charge de la batterie, %\n"
"$ac - état de l'alimentation"
#: rc.cpp:354
#: rc.cpp:360
msgid ""
"$album - song album\n"
"$artist - song artist\n"
@ -531,11 +540,11 @@ msgstr ""
"$time - durée du morceau\n"
"$title - titre du morceau"
#: rc.cpp:361
#: rc.cpp:367
msgid "Processes"
msgstr "Processus"
#: rc.cpp:364
#: rc.cpp:370
msgid ""
"$pscount - number of running processes\n"
"$pstotal - total number of running processes\n"
@ -545,7 +554,7 @@ msgstr ""
"$pstotal - nombre total de processus actifs\n"
"$ps - liste des processus actifs séparés par une virgule"
#: rc.cpp:372
#: rc.cpp:378
msgid ""
"$pkgcountN - number of packages which are available for updates, command N. "
"For example $pkgcount0"
@ -553,23 +562,34 @@ msgstr ""
"$pkgcountN - nombre de paquets à mettre à jour, commande N. Par exemple "
"$pkgcount0"
#: rc.cpp:375
#: rc.cpp:381
msgid "Custom"
msgstr "Personnalisé"
#: rc.cpp:378
#: rc.cpp:384
msgid ""
"$customN - get output from custom command N (from N). Example `$custom0`"
msgstr ""
"$customN - sortie d'une commande personnelle N (à partir de 0). Exemple: "
"$custom0"
#: rc.cpp:379
#: rc.cpp:387
msgid "Current desktop"
msgstr ""
#: rc.cpp:390
msgid ""
"$name - desktop name\n"
"$number - desktop number\n"
"$total - total number of desktops"
msgstr ""
#: rc.cpp:393
msgctxt "NAME OF TRANSLATORS"
msgid "Your names"
msgstr "Evgeniy Alekseev"
#: rc.cpp:380
#: rc.cpp:394
msgctxt "EMAIL OF TRANSLATORS"
msgid "Your emails"
msgstr "esalexeev@gmail.com"

View File

@ -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-06-04 22:48+0400\n"
"POT-Creation-Date: 2014-07-09 13:13+0400\n"
"PO-Revision-Date: 2014-06-09 01:47+0400\n"
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
"Language-Team: Brazilian Portuguese <kde-russian@lists.kde.ru>\n"
@ -17,63 +17,67 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
"X-Generator: Lokalize 1.5\n"
#: code/configdef.py:273
#: code/configdef.py:277
msgid "Widget"
msgstr "Widget"
#: code/configdef.py:275
#: code/configdef.py:279
msgid "Advanced"
msgstr "Avançado"
#: code/configdef.py:277
#: code/configdef.py:281
msgid "Tooltip"
msgstr "Dica de contexto"
#: code/configdef.py:279
#: code/configdef.py:283
msgid "Appearance"
msgstr "Aparência"
#: code/configdef.py:281
#: code/configdef.py:285
msgid "DataEngine"
msgstr "Engine de dados"
#: code/main.py:117
#: code/main.py:115
msgid "Run ksysguard"
msgstr "Abrir ksysguard"
#: code/main.py:119
#: code/main.py:117
msgid "Show README"
msgstr "Mostrar README"
#: code/main.py:121
#: code/main.py:119
msgid "Update text"
msgstr "Atualizar texto"
#: rc.cpp:3 rc.cpp:129 rc.cpp:150 rc.cpp:197 rc.cpp:224
#: rc.cpp:3 rc.cpp:132 rc.cpp:153 rc.cpp:203 rc.cpp:230
msgid "Form"
msgstr "Forma"
#: rc.cpp:6
msgid "Enable background"
msgstr ""
#: rc.cpp:9
msgid "Vertical layout"
msgstr "Layout vertical"
#: rc.cpp:9
#: rc.cpp:12
msgid "Enable popup on mouse click"
msgstr "Ativar popup no clique do mouse"
#: rc.cpp:12
#: rc.cpp:15
msgid "Add stretch to left/top of the layout"
msgstr "Adicionar esticamento à esquerda/topo do layout"
#: rc.cpp:15
#: rc.cpp:18
msgid "Add stretch to right/bottom of the layout"
msgstr "Adicionar esticamento à direita/inferior do layout"
#: rc.cpp:18
#: rc.cpp:21
msgid "Custom time format"
msgstr "Formato de hora personalizado"
#: rc.cpp:21
#: rc.cpp:24
msgid ""
"$dddd - long weekday\n"
"$ddd - short weekday\n"
@ -107,11 +111,11 @@ msgstr ""
"$ss - segundos\n"
"$s segundos sem zeros"
#: rc.cpp:39
#: rc.cpp:42
msgid "Custom uptime format"
msgstr "Tempo em atividade com formato personalizado"
#: rc.cpp:42
#: rc.cpp:45
msgid ""
"$dd - uptime days\n"
"$d - uptime days without zero\n"
@ -127,19 +131,19 @@ msgstr ""
"$mm - tempo em atividade em minutos\n"
"$m - tempo em atividade em minuto sem zeros"
#: rc.cpp:50
#: rc.cpp:53
msgid "Temperature units"
msgstr "Unidades de temperatura"
#: rc.cpp:53
#: rc.cpp:56
msgid "Temperature devices"
msgstr "Dispositivos de temperatura"
#: rc.cpp:56 rc.cpp:66 rc.cpp:76 rc.cpp:86 rc.cpp:159 rc.cpp:187
#: rc.cpp:59 rc.cpp:69 rc.cpp:79 rc.cpp:89 rc.cpp:162 rc.cpp:190
msgid "Add"
msgstr "Adicionar"
#: rc.cpp:59 rc.cpp:69 rc.cpp:79 rc.cpp:89 rc.cpp:162 rc.cpp:190
#: rc.cpp:62 rc.cpp:72 rc.cpp:82 rc.cpp:92 rc.cpp:165 rc.cpp:193
msgid ""
"Editable\n"
"del - remove item"
@ -147,132 +151,136 @@ msgstr ""
"Editável\n"
"del - remover item"
#: rc.cpp:63
#: rc.cpp:66
msgid "Mount points"
msgstr "Pontos de montagem"
#: rc.cpp:73
#: rc.cpp:76
msgid "HDD devices (speed)"
msgstr "Dispositivos HDD (velocidade) "
#: rc.cpp:83
#: rc.cpp:86
msgid "HDD devices (temp)"
msgstr "Dispositivos HDD (temperatura)"
#: rc.cpp:93
#: rc.cpp:96
msgid "Network directory"
msgstr "Diretório de rede"
#: rc.cpp:96
#: rc.cpp:99
msgid "\"/sys/class/net\" by default"
msgstr "\"/sys/class/power_supply/AC/online\" por padrão"
#: rc.cpp:99
#: rc.cpp:102
msgid "Disable auto select device and set specified device"
msgstr ""
"Desativar auto seleção de dispositivos e escolher um dispositivo específico"
#: rc.cpp:102
#: rc.cpp:105
msgid "Set network device"
msgstr "Escolher dispositivo de rede"
#: rc.cpp:105
#: rc.cpp:108
msgid "Battery device"
msgstr "Dispositivo do carregador"
#: rc.cpp:108
#: rc.cpp:111
msgid "\"/sys/class/power_supply/BAT0/capacity\" by default"
msgstr "\"/sys/class/power_supply/BAT0/capacity\" por padrão"
#: rc.cpp:111
#: rc.cpp:114
msgid "AC online tag"
msgstr "Rótulo com carregador conectado"
#: rc.cpp:114
#: rc.cpp:117
msgid "Line, which returns when AC is online"
msgstr "Linha, que aparece quando o carregador está conectado"
#: rc.cpp:117
#: rc.cpp:120
msgid "AC offline tag"
msgstr "Rótulo com carregador desconectado"
#: rc.cpp:120
#: rc.cpp:123
msgid "Line, which returns when AC is offline"
msgstr "Linha, que aparece quando o carregador está offline"
#: rc.cpp:123
#: rc.cpp:126
msgid "AC device"
msgstr "Dispositivo do carregador"
#: rc.cpp:126
#: rc.cpp:129
msgid "\"/sys/class/power_supply/AC/online\" by default"
msgstr "\"/sys/class/power_supply/AC/online\" por padrão"
#: rc.cpp:132
#: rc.cpp:135
msgid "Time interval"
msgstr "Intervalo de tempo"
#: rc.cpp:135
#: rc.cpp:138
msgid "Font"
msgstr "Tamanho da fonte"
#: rc.cpp:138
#: rc.cpp:141
msgid "Font size"
msgstr "Tamanho da fonte"
#: rc.cpp:141
#: rc.cpp:144
msgid "Font color"
msgstr "Cor da fonte"
#: rc.cpp:144
#: rc.cpp:147
msgid "Font style"
msgstr "Estilo da fonte"
#: rc.cpp:147
#: rc.cpp:150
msgid "Font weight"
msgstr "Peso da fonte"
#: rc.cpp:153
#: rc.cpp:156
msgid "Custom command"
msgstr "Comando personalizado"
#: rc.cpp:156
#: rc.cpp:159
msgid "Custom command to run"
msgstr "Comando personalizado para usar"
#: rc.cpp:166
#: rc.cpp:169
msgid "GPU device"
msgstr "Dispositivo GPU"
#: rc.cpp:169 rc.cpp:311
#: rc.cpp:172 rc.cpp:317
msgid "HDD"
msgstr "HDD"
#: rc.cpp:172
#: rc.cpp:175
msgid "hddtemp cmd"
msgstr "comando hddtemp "
#: rc.cpp:175
#: rc.cpp:178
msgid "MPD address"
msgstr "Endereço do MPD"
#: rc.cpp:178
#: rc.cpp:181
msgid "MPD port"
msgstr "Porta do MPD"
#: rc.cpp:181 rc.cpp:369
#: rc.cpp:184 rc.cpp:375
msgid "Package manager"
msgstr "Gerenciador de pacotes"
#: rc.cpp:184
#: rc.cpp:187
msgid "Number of null lines"
msgstr "Número de valores para dicas de contexto"
#: rc.cpp:194 rc.cpp:351
#: rc.cpp:197 rc.cpp:357
msgid "Music player"
msgstr "Reprodutor de áudio"
#: rc.cpp:200
msgid "Desktop check cmd"
msgstr ""
#: rc.cpp:206
msgid ""
"CPU, CPU clock, memory, swap and network labels support graphical tooltip. "
"To enable them just make needed checkbox fully checked."
@ -280,47 +288,47 @@ msgstr ""
"Os rótulos de CPU, frequência de GPU, memória, swap e rede suportam dica de "
"contexto gráfica. Para ativá-los, basta selecionar a caixa necessária."
#: rc.cpp:203
#: rc.cpp:209
msgid "Number of values for tooltips"
msgstr "Número de valores para dicas de contexto"
#: rc.cpp:206
#: rc.cpp:212
msgid "CPU clock color"
msgstr "Cor da frequência da GPU"
#: rc.cpp:209
#: rc.cpp:215
msgid "Swap color"
msgstr "Cor do swap"
#: rc.cpp:212
#: rc.cpp:218
msgid "CPU color"
msgstr "Cor da frequência da GPU"
#: rc.cpp:215
#: rc.cpp:221
msgid "Download speed color"
msgstr "Cor da velocidade de download"
#: rc.cpp:218
#: rc.cpp:224
msgid "Memory color"
msgstr "Cor da memória"
#: rc.cpp:221
#: rc.cpp:227
msgid "Upload speed color"
msgstr "Cor da velocidade de upload"
#: rc.cpp:227
#: rc.cpp:233
msgid ""
"Detailed information may be found on <a href=\"http://arcanis.name/projects/"
"pytextmonitor/\">project homepage</a>"
msgstr ""
"Informações detalhadas podem ser encontradas na <a "
"href=\"http://arcanis.name/projects/pytextmonitor/\">página do projeto</a>"
"Informações detalhadas podem ser encontradas na <a href=\"http://arcanis."
"name/projects/pytextmonitor/\">página do projeto</a>"
#: rc.cpp:230
#: rc.cpp:236
msgid "Time"
msgstr "Hora"
#: rc.cpp:233
#: rc.cpp:239
msgid ""
"$time - time in default format\n"
"$isotime - time in ISO format\n"
@ -334,11 +342,11 @@ msgstr ""
"$longtime - hora em formato completo\n"
"$custom - hora em formato personalizado"
#: rc.cpp:240
#: rc.cpp:246
msgid "Uptime"
msgstr "Tempo em atividade"
#: rc.cpp:243
#: rc.cpp:249
msgid ""
"$uptime - system uptime\n"
"$custom - custom format"
@ -346,11 +354,11 @@ msgstr ""
"$uptime - tempo em atividade do sistema\n"
"$custom - formato personalizado "
#: rc.cpp:247
#: rc.cpp:253
msgid "CPU"
msgstr "CPU"
#: rc.cpp:251
#: rc.cpp:257
msgid ""
"$cpu - total load CPU, %\n"
"$cpu0 - load CPU for core 0, %\n"
@ -366,11 +374,11 @@ msgstr ""
"...\n"
"$cpuN - carga total para o núcleo N da CPU, %"
#: rc.cpp:259
#: rc.cpp:265
msgid "CPU Clock"
msgstr "Frequência da CPU "
#: rc.cpp:262
#: rc.cpp:268
msgid ""
"$cpucl - average CPU clock, MHz\n"
"$cpucl0 - CPU clock for core 0, MHz\n"
@ -386,37 +394,37 @@ msgstr ""
"...\n"
"$cpuclN - frequência da CPU para o núcleo N, MHz"
#: rc.cpp:270
#: rc.cpp:276
msgid "Temperature"
msgstr "Temperatura "
#: rc.cpp:273
#: rc.cpp:279
msgid "$tempN - physical temperature on device N (from 0). Example: $temp0"
msgstr ""
"$hddtempN - temperatura física no dispositivo N (começando por 0). Exemplo: "
"$hddtemp0"
#: rc.cpp:276
#: rc.cpp:282
msgid "GPU"
msgstr "GPU"
#: rc.cpp:280
#: rc.cpp:286
msgid "$gpu - gpu usage, %"
msgstr "$gpu - uso da GPU, %"
#: rc.cpp:283
#: rc.cpp:289
msgid "GPU Temp"
msgstr "Temperatura da GPU"
#: rc.cpp:286
#: rc.cpp:292
msgid "$gputemp - physical temperature on GPU"
msgstr "$gputemp - temperatura física da GPU"
#: rc.cpp:289
#: rc.cpp:295
msgid "Memory"
msgstr "Memória"
#: rc.cpp:293
#: rc.cpp:299
msgid ""
"$mem - RAM usage, %\n"
"$memmb - RAM usage, MB\n"
@ -430,11 +438,11 @@ msgstr ""
"$memtotmb - RAM total, MB\n"
"$memtotgb - RAM total, GB"
#: rc.cpp:300
#: rc.cpp:306
msgid "Swap"
msgstr "Swap"
#: rc.cpp:304
#: rc.cpp:310
msgid ""
"$swap - swap usage, %\n"
"$swapmb - swap usage, MB\n"
@ -448,7 +456,7 @@ msgstr ""
"$swaptotmb - swap total, MB\n"
"$swaptotgb - swap total, GB"
#: rc.cpp:315
#: rc.cpp:321
msgid ""
"$hddN - usage for mount point N (from 0), %. Example: $hdd0\n"
"$hddmbN - usage for mount point N (from 0), MB. Example: $hddmb0\n"
@ -457,7 +465,8 @@ msgid ""
"$hddtotgbN - total size of mount point N (from 0), GB. Example: $hddtotgb0"
msgstr ""
"$hddN - uso do ponto de montagem N (começando por 0), %. Exemplo: $hdd0\n"
"$hddmbN - uso do ponto de montagem N (começando por 0), MB. Exemplo: $hddmb0\n"
"$hddmbN - uso do ponto de montagem N (começando por 0), MB. Exemplo: "
"$hddmb0\n"
"$hddgbN - uso do ponto de montagem N (começando por 0), GB. Exemplo: "
"$hddgbN0\n"
"$hddtotmbN - tamanho total do ponto de montagem N (começando por 0), MB. "
@ -465,35 +474,36 @@ msgstr ""
"$hddtotgbN - tamanho total do ponto de montagem N (começando por 0), GB. "
"Exemplo: $hddtogbN"
#: rc.cpp:322
#: rc.cpp:328
msgid "HDD speed"
msgstr "Velocidade do HDD"
#: rc.cpp:325
#: rc.cpp:331
msgid ""
"$hddrN - read speed HDD N (from 0), KB/s. Example: $hddr0\n"
"$hddwN - write speed HDD N (from 0), KB/s. Example: $hddw0"
msgstr ""
"$hddrN - velocidade de leitura do HDD (começando por 0), KB/s. Exemplo: "
"$hddr0\n"
"$hddwN - velocidade de escrita do HDD (começando por 0), Kb/s. Exemplo: $hddw0"
"$hddwN - velocidade de escrita do HDD (começando por 0), Kb/s. Exemplo: "
"$hddw0"
#: rc.cpp:329
#: rc.cpp:335
msgid "HDD temp"
msgstr "Temperatura do HDD "
#: rc.cpp:332
#: rc.cpp:338
msgid ""
"$hddtempN - physical temperature on device N (from 0). Example: $hddtemp0"
msgstr ""
"$hddtempN - temperatura física no dispositivo N (começando por 0). Exemplo: "
"$hddtemp0"
#: rc.cpp:335
#: rc.cpp:341
msgid "Network"
msgstr "Rede"
#: rc.cpp:338
#: rc.cpp:344
msgid ""
"$down - download speed, KB/s\n"
"$up - upload speed, KB/s\n"
@ -503,11 +513,11 @@ msgstr ""
"$up - velocidade de upload, KB/s\n"
"$netdev - dispositivo de rede atual"
#: rc.cpp:343
#: rc.cpp:349
msgid "Battery"
msgstr "Bateria"
#: rc.cpp:347
#: rc.cpp:353
msgid ""
"$bat - battery charge, %\n"
"$ac - AC status"
@ -515,7 +525,7 @@ msgstr ""
"bateria - carga da bateria, %\n"
"$ac - status do carregador"
#: rc.cpp:354
#: rc.cpp:360
msgid ""
"$album - song album\n"
"$artist - song artist\n"
@ -529,11 +539,11 @@ msgstr ""
"$time - duração da música\n"
"$title - título da música"
#: rc.cpp:361
#: rc.cpp:367
msgid "Processes"
msgstr "Processos "
#: rc.cpp:364
#: rc.cpp:370
msgid ""
"$pscount - number of running processes\n"
"$pstotal - total number of running processes\n"
@ -543,7 +553,7 @@ msgstr ""
"$pstotal - número total de processos rodando\n"
"$ps - lista dos processos rodando separados por vírgula"
#: rc.cpp:372
#: rc.cpp:378
msgid ""
"$pkgcountN - number of packages which are available for updates, command N. "
"For example $pkgcount0"
@ -551,25 +561,34 @@ msgstr ""
"$pkgcountN - número de pacotes disponíveis para atualizar, comando N. Por "
"exemplo $pkgcount0"
#: rc.cpp:375
#: rc.cpp:381
msgid "Custom"
msgstr "Personalizado"
#: rc.cpp:378
#: rc.cpp:384
msgid ""
"$customN - get output from custom command N (from N). Example `$custom0`"
msgstr ""
"$customN - leia a saída de um comando personalizado N (a partir de N). "
"Exemplo: `$custom0`"
#: rc.cpp:379
#: rc.cpp:387
msgid "Current desktop"
msgstr ""
#: rc.cpp:390
msgid ""
"$name - desktop name\n"
"$number - desktop number\n"
"$total - total number of desktops"
msgstr ""
#: rc.cpp:393
msgctxt "NAME OF TRANSLATORS"
msgid "Your names"
msgstr "under"
#: rc.cpp:380
#: rc.cpp:394
msgctxt "EMAIL OF TRANSLATORS"
msgid "Your emails"
msgstr "dreanazous@gmail.com"

View File

@ -1,13 +1,14 @@
# Copyright (C) 2014
# This file is distributed under the same license as the PyTextMonitor package.
# Evgeniy Alekseev <esalexeev@gmail.com>, 2014.
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
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-06-04 22:48+0400\n"
"POT-Creation-Date: 2014-07-09 13:13+0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -16,63 +17,67 @@ msgstr ""
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
#: code/configdef.py:273
#: code/configdef.py:277
msgid "Widget"
msgstr ""
#: code/configdef.py:275
#: code/configdef.py:279
msgid "Advanced"
msgstr ""
#: code/configdef.py:277
#: code/configdef.py:281
msgid "Tooltip"
msgstr ""
#: code/configdef.py:279
#: code/configdef.py:283
msgid "Appearance"
msgstr ""
#: code/configdef.py:281
#: code/configdef.py:285
msgid "DataEngine"
msgstr ""
#: code/main.py:117
#: code/main.py:115
msgid "Run ksysguard"
msgstr ""
#: code/main.py:119
#: code/main.py:117
msgid "Show README"
msgstr ""
#: code/main.py:121
#: code/main.py:119
msgid "Update text"
msgstr ""
#: rc.cpp:3 rc.cpp:129 rc.cpp:150 rc.cpp:197 rc.cpp:224
#: rc.cpp:3 rc.cpp:132 rc.cpp:153 rc.cpp:203 rc.cpp:230
msgid "Form"
msgstr ""
#: rc.cpp:6
msgid "Vertical layout"
msgid "Enable background"
msgstr ""
#: rc.cpp:9
msgid "Enable popup on mouse click"
msgid "Vertical layout"
msgstr ""
#: rc.cpp:12
msgid "Add stretch to left/top of the layout"
msgid "Enable popup on mouse click"
msgstr ""
#: rc.cpp:15
msgid "Add stretch to right/bottom of the layout"
msgid "Add stretch to left/top of the layout"
msgstr ""
#: rc.cpp:18
msgid "Custom time format"
msgid "Add stretch to right/bottom of the layout"
msgstr ""
#: rc.cpp:21
msgid "Custom time format"
msgstr ""
#: rc.cpp:24
msgid ""
"$dddd - long weekday\n"
"$ddd - short weekday\n"
@ -92,11 +97,11 @@ msgid ""
"$s - seconds w\\o zero"
msgstr ""
#: rc.cpp:39
#: rc.cpp:42
msgid "Custom uptime format"
msgstr ""
#: rc.cpp:42
#: rc.cpp:45
msgid ""
"$dd - uptime days\n"
"$d - uptime days without zero\n"
@ -106,193 +111,197 @@ msgid ""
"$m - uptime minutes without zero"
msgstr ""
#: rc.cpp:50
#: rc.cpp:53
msgid "Temperature units"
msgstr ""
#: rc.cpp:53
#: rc.cpp:56
msgid "Temperature devices"
msgstr ""
#: rc.cpp:56 rc.cpp:66 rc.cpp:76 rc.cpp:86 rc.cpp:159 rc.cpp:187
#: rc.cpp:59 rc.cpp:69 rc.cpp:79 rc.cpp:89 rc.cpp:162 rc.cpp:190
msgid "Add"
msgstr ""
#: rc.cpp:59 rc.cpp:69 rc.cpp:79 rc.cpp:89 rc.cpp:162 rc.cpp:190
#: rc.cpp:62 rc.cpp:72 rc.cpp:82 rc.cpp:92 rc.cpp:165 rc.cpp:193
msgid ""
"Editable\n"
"del - remove item"
msgstr ""
#: rc.cpp:63
#: rc.cpp:66
msgid "Mount points"
msgstr ""
#: rc.cpp:73
#: rc.cpp:76
msgid "HDD devices (speed)"
msgstr ""
#: rc.cpp:83
#: rc.cpp:86
msgid "HDD devices (temp)"
msgstr ""
#: rc.cpp:93
#: rc.cpp:96
msgid "Network directory"
msgstr ""
#: rc.cpp:96
#: rc.cpp:99
msgid "\"/sys/class/net\" by default"
msgstr ""
#: rc.cpp:99
#: rc.cpp:102
msgid "Disable auto select device and set specified device"
msgstr ""
#: rc.cpp:102
#: rc.cpp:105
msgid "Set network device"
msgstr ""
#: rc.cpp:105
#: rc.cpp:108
msgid "Battery device"
msgstr ""
#: rc.cpp:108
#: rc.cpp:111
msgid "\"/sys/class/power_supply/BAT0/capacity\" by default"
msgstr ""
#: rc.cpp:111
#: rc.cpp:114
msgid "AC online tag"
msgstr ""
#: rc.cpp:114
#: rc.cpp:117
msgid "Line, which returns when AC is online"
msgstr ""
#: rc.cpp:117
#: rc.cpp:120
msgid "AC offline tag"
msgstr ""
#: rc.cpp:120
#: rc.cpp:123
msgid "Line, which returns when AC is offline"
msgstr ""
#: rc.cpp:123
#: rc.cpp:126
msgid "AC device"
msgstr ""
#: rc.cpp:126
#: rc.cpp:129
msgid "\"/sys/class/power_supply/AC/online\" by default"
msgstr ""
#: rc.cpp:132
#: rc.cpp:135
msgid "Time interval"
msgstr ""
#: rc.cpp:135
#: rc.cpp:138
msgid "Font"
msgstr ""
#: rc.cpp:138
#: rc.cpp:141
msgid "Font size"
msgstr ""
#: rc.cpp:141
#: rc.cpp:144
msgid "Font color"
msgstr ""
#: rc.cpp:144
#: rc.cpp:147
msgid "Font style"
msgstr ""
#: rc.cpp:147
#: rc.cpp:150
msgid "Font weight"
msgstr ""
#: rc.cpp:153
#: rc.cpp:156
msgid "Custom command"
msgstr ""
#: rc.cpp:156
#: rc.cpp:159
msgid "Custom command to run"
msgstr ""
#: rc.cpp:166
#: rc.cpp:169
msgid "GPU device"
msgstr ""
#: rc.cpp:169 rc.cpp:311
#: rc.cpp:172 rc.cpp:317
msgid "HDD"
msgstr ""
#: rc.cpp:172
#: rc.cpp:175
msgid "hddtemp cmd"
msgstr ""
#: rc.cpp:175
#: rc.cpp:178
msgid "MPD address"
msgstr ""
#: rc.cpp:178
#: rc.cpp:181
msgid "MPD port"
msgstr ""
#: rc.cpp:181 rc.cpp:369
#: rc.cpp:184 rc.cpp:375
msgid "Package manager"
msgstr ""
#: rc.cpp:184
#: rc.cpp:187
msgid "Number of null lines"
msgstr ""
#: rc.cpp:194 rc.cpp:351
#: rc.cpp:197 rc.cpp:357
msgid "Music player"
msgstr ""
#: rc.cpp:200
msgid "Desktop check cmd"
msgstr ""
#: rc.cpp:206
msgid ""
"CPU, CPU clock, memory, swap and network labels support graphical tooltip. "
"To enable them just make needed checkbox fully checked."
msgstr ""
#: rc.cpp:203
#: rc.cpp:209
msgid "Number of values for tooltips"
msgstr ""
#: rc.cpp:206
#: rc.cpp:212
msgid "CPU clock color"
msgstr ""
#: rc.cpp:209
#: rc.cpp:215
msgid "Swap color"
msgstr ""
#: rc.cpp:212
#: rc.cpp:218
msgid "CPU color"
msgstr ""
#: rc.cpp:215
#: rc.cpp:221
msgid "Download speed color"
msgstr ""
#: rc.cpp:218
#: rc.cpp:224
msgid "Memory color"
msgstr ""
#: rc.cpp:221
#: rc.cpp:227
msgid "Upload speed color"
msgstr ""
#: rc.cpp:227
#: rc.cpp:233
msgid ""
"Detailed information may be found on <a href=\"http://arcanis.name/projects/"
"pytextmonitor/\">project homepage</a>"
msgstr ""
#: rc.cpp:230
#: rc.cpp:236
msgid "Time"
msgstr ""
#: rc.cpp:233
#: rc.cpp:239
msgid ""
"$time - time in default format\n"
"$isotime - time in ISO format\n"
@ -301,21 +310,21 @@ msgid ""
"$custom - custom time format"
msgstr ""
#: rc.cpp:240
#: rc.cpp:246
msgid "Uptime"
msgstr ""
#: rc.cpp:243
#: rc.cpp:249
msgid ""
"$uptime - system uptime\n"
"$custom - custom format"
msgstr ""
#: rc.cpp:247
#: rc.cpp:253
msgid "CPU"
msgstr ""
#: rc.cpp:251
#: rc.cpp:257
msgid ""
"$cpu - total load CPU, %\n"
"$cpu0 - load CPU for core 0, %\n"
@ -325,11 +334,11 @@ msgid ""
"$cpuN - load CPU for core N, %"
msgstr ""
#: rc.cpp:259
#: rc.cpp:265
msgid "CPU Clock"
msgstr ""
#: rc.cpp:262
#: rc.cpp:268
msgid ""
"$cpucl - average CPU clock, MHz\n"
"$cpucl0 - CPU clock for core 0, MHz\n"
@ -339,35 +348,35 @@ msgid ""
"$cpuclN - CPU clock for core N, MHz"
msgstr ""
#: rc.cpp:270
#: rc.cpp:276
msgid "Temperature"
msgstr ""
#: rc.cpp:273
#: rc.cpp:279
msgid "$tempN - physical temperature on device N (from 0). Example: $temp0"
msgstr ""
#: rc.cpp:276
#: rc.cpp:282
msgid "GPU"
msgstr ""
#: rc.cpp:280
#: rc.cpp:286
msgid "$gpu - gpu usage, %"
msgstr ""
#: rc.cpp:283
#: rc.cpp:289
msgid "GPU Temp"
msgstr ""
#: rc.cpp:286
#: rc.cpp:292
msgid "$gputemp - physical temperature on GPU"
msgstr ""
#: rc.cpp:289
#: rc.cpp:295
msgid "Memory"
msgstr ""
#: rc.cpp:293
#: rc.cpp:299
msgid ""
"$mem - RAM usage, %\n"
"$memmb - RAM usage, MB\n"
@ -376,11 +385,11 @@ msgid ""
"$memtotgb - total RAM, GB"
msgstr ""
#: rc.cpp:300
#: rc.cpp:306
msgid "Swap"
msgstr ""
#: rc.cpp:304
#: rc.cpp:310
msgid ""
"$swap - swap usage, %\n"
"$swapmb - swap usage, MB\n"
@ -389,7 +398,7 @@ msgid ""
"$swaptotgb - total swap, GB"
msgstr ""
#: rc.cpp:315
#: rc.cpp:321
msgid ""
"$hddN - usage for mount point N (from 0), %. Example: $hdd0\n"
"$hddmbN - usage for mount point N (from 0), MB. Example: $hddmb0\n"
@ -398,47 +407,47 @@ msgid ""
"$hddtotgbN - total size of mount point N (from 0), GB. Example: $hddtotgb0"
msgstr ""
#: rc.cpp:322
#: rc.cpp:328
msgid "HDD speed"
msgstr ""
#: rc.cpp:325
#: rc.cpp:331
msgid ""
"$hddrN - read speed HDD N (from 0), KB/s. Example: $hddr0\n"
"$hddwN - write speed HDD N (from 0), KB/s. Example: $hddw0"
msgstr ""
#: rc.cpp:329
#: rc.cpp:335
msgid "HDD temp"
msgstr ""
#: rc.cpp:332
#: rc.cpp:338
msgid ""
"$hddtempN - physical temperature on device N (from 0). Example: $hddtemp0"
msgstr ""
#: rc.cpp:335
#: rc.cpp:341
msgid "Network"
msgstr ""
#: rc.cpp:338
#: rc.cpp:344
msgid ""
"$down - download speed, KB/s\n"
"$up - upload speed, KB/s\n"
"$netdev - current network device"
msgstr ""
#: rc.cpp:343
#: rc.cpp:349
msgid "Battery"
msgstr ""
#: rc.cpp:347
#: rc.cpp:353
msgid ""
"$bat - battery charge, %\n"
"$ac - AC status"
msgstr ""
#: rc.cpp:354
#: rc.cpp:360
msgid ""
"$album - song album\n"
"$artist - song artist\n"
@ -447,38 +456,49 @@ msgid ""
"$title - song title"
msgstr ""
#: rc.cpp:361
#: rc.cpp:367
msgid "Processes"
msgstr ""
#: rc.cpp:364
#: rc.cpp:370
msgid ""
"$pscount - number of running processes\n"
"$pstotal - total number of running processes\n"
"$ps - list of running processes comma separated"
msgstr ""
#: rc.cpp:372
#: rc.cpp:378
msgid ""
"$pkgcountN - number of packages which are available for updates, command N. "
"For example $pkgcount0"
msgstr ""
#: rc.cpp:375
#: rc.cpp:381
msgid "Custom"
msgstr ""
#: rc.cpp:378
#: rc.cpp:384
msgid ""
"$customN - get output from custom command N (from N). Example `$custom0`"
msgstr ""
#: rc.cpp:379
#: rc.cpp:387
msgid "Current desktop"
msgstr ""
#: rc.cpp:390
msgid ""
"$name - desktop name\n"
"$number - desktop number\n"
"$total - total number of desktops"
msgstr ""
#: rc.cpp:393
msgctxt "NAME OF TRANSLATORS"
msgid "Your names"
msgstr ""
#: rc.cpp:380
#: rc.cpp:394
msgctxt "EMAIL OF TRANSLATORS"
msgid "Your emails"
msgstr ""

View File

@ -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-06-04 22:48+0400\n"
"PO-Revision-Date: 2014-06-04 22:49+0400\n"
"POT-Creation-Date: 2014-07-09 13:13+0400\n"
"PO-Revision-Date: 2014-07-09 13:14+0400\n"
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
"Language-Team: Russian <kde-russian@lists.kde.ru>\n"
"Language: ru\n"
@ -18,63 +18,67 @@ msgstr ""
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
"X-Generator: Lokalize 1.5\n"
#: code/configdef.py:273
#: code/configdef.py:277
msgid "Widget"
msgstr "Виджет"
#: code/configdef.py:275
#: code/configdef.py:279
msgid "Advanced"
msgstr "Расширенные"
#: code/configdef.py:277
#: code/configdef.py:281
msgid "Tooltip"
msgstr "Тултип"
#: code/configdef.py:279
#: code/configdef.py:283
msgid "Appearance"
msgstr "Внешний вид"
#: code/configdef.py:281
#: code/configdef.py:285
msgid "DataEngine"
msgstr "DataEngine"
#: code/main.py:117
#: code/main.py:115
msgid "Run ksysguard"
msgstr "Запутить ksysguard"
#: code/main.py:119
#: code/main.py:117
msgid "Show README"
msgstr "Показать README"
#: code/main.py:121
#: code/main.py:119
msgid "Update text"
msgstr "Обновить текст"
#: rc.cpp:3 rc.cpp:129 rc.cpp:150 rc.cpp:197 rc.cpp:224
#: rc.cpp:3 rc.cpp:132 rc.cpp:153 rc.cpp:203 rc.cpp:230
msgid "Form"
msgstr "Form"
#: rc.cpp:6
msgid "Enable background"
msgstr "Включить фон"
#: rc.cpp:9
msgid "Vertical layout"
msgstr "Вертикальная разметка"
#: rc.cpp:9
#: rc.cpp:12
msgid "Enable popup on mouse click"
msgstr "Включить сообщения по клику мыши"
#: rc.cpp:12
#: rc.cpp:15
msgid "Add stretch to left/top of the layout"
msgstr "Добавить пустое место слева/вверху виджета"
#: rc.cpp:15
#: rc.cpp:18
msgid "Add stretch to right/bottom of the layout"
msgstr "Добавить пустое место справа/внизу виджета"
#: rc.cpp:18
#: rc.cpp:21
msgid "Custom time format"
msgstr "Свой формат времени"
#: rc.cpp:21
#: rc.cpp:24
msgid ""
"$dddd - long weekday\n"
"$ddd - short weekday\n"
@ -110,11 +114,11 @@ msgstr ""
"$ss - секунды\n"
"$s - секунды без 0"
#: rc.cpp:39
#: rc.cpp:42
msgid "Custom uptime format"
msgstr "Свой формат аптайма"
#: rc.cpp:42
#: rc.cpp:45
msgid ""
"$dd - uptime days\n"
"$d - uptime days without zero\n"
@ -130,19 +134,19 @@ msgstr ""
"$mm - минуты аптайма\n"
"$m - минуты аптайма без нулей"
#: rc.cpp:50
#: rc.cpp:53
msgid "Temperature units"
msgstr "Температурные единицы"
#: rc.cpp:53
#: rc.cpp:56
msgid "Temperature devices"
msgstr "Температурные устройства"
#: rc.cpp:56 rc.cpp:66 rc.cpp:76 rc.cpp:86 rc.cpp:159 rc.cpp:187
#: rc.cpp:59 rc.cpp:69 rc.cpp:79 rc.cpp:89 rc.cpp:162 rc.cpp:190
msgid "Add"
msgstr "Добавить"
#: rc.cpp:59 rc.cpp:69 rc.cpp:79 rc.cpp:89 rc.cpp:162 rc.cpp:190
#: rc.cpp:62 rc.cpp:72 rc.cpp:82 rc.cpp:92 rc.cpp:165 rc.cpp:193
msgid ""
"Editable\n"
"del - remove item"
@ -150,131 +154,135 @@ msgstr ""
"Редактируемо\n"
"del - удалить строку"
#: rc.cpp:63
#: rc.cpp:66
msgid "Mount points"
msgstr "Точки монтирования"
#: rc.cpp:73
#: rc.cpp:76
msgid "HDD devices (speed)"
msgstr "HDD (скорость)"
#: rc.cpp:83
#: rc.cpp:86
msgid "HDD devices (temp)"
msgstr "HDD (температура)"
#: rc.cpp:93
#: rc.cpp:96
msgid "Network directory"
msgstr "Путь к интерфейсам"
#: rc.cpp:96
#: rc.cpp:99
msgid "\"/sys/class/net\" by default"
msgstr "\"/sys/class/net\" по умолчанию"
#: rc.cpp:99
#: rc.cpp:102
msgid "Disable auto select device and set specified device"
msgstr "Отключить автовыбор устройства и использовать указанное"
#: rc.cpp:102
#: rc.cpp:105
msgid "Set network device"
msgstr "Выберете сетевое устройство"
#: rc.cpp:105
#: rc.cpp:108
msgid "Battery device"
msgstr "Устройство батареи"
#: rc.cpp:108
#: rc.cpp:111
msgid "\"/sys/class/power_supply/BAT0/capacity\" by default"
msgstr "\"/sys/class/power_supply/BAT0/capacity\" по умолчанию"
#: rc.cpp:111
#: rc.cpp:114
msgid "AC online tag"
msgstr "AC подключен"
#: rc.cpp:114
#: rc.cpp:117
msgid "Line, which returns when AC is online"
msgstr "Строка, возвращаемая при подключенном адаптере питания"
#: rc.cpp:117
#: rc.cpp:120
msgid "AC offline tag"
msgstr "AC отключен"
#: rc.cpp:120
#: rc.cpp:123
msgid "Line, which returns when AC is offline"
msgstr "Строка, возвращаемая при отключенном адаптере питания"
#: rc.cpp:123
#: rc.cpp:126
msgid "AC device"
msgstr "Устройство AC"
#: rc.cpp:126
#: rc.cpp:129
msgid "\"/sys/class/power_supply/AC/online\" by default"
msgstr "\"/sys/class/power_supply/AC/online\" по умолчанию"
#: rc.cpp:132
#: rc.cpp:135
msgid "Time interval"
msgstr "Интервал обновления"
#: rc.cpp:135
#: rc.cpp:138
msgid "Font"
msgstr "Шрифт"
#: rc.cpp:138
#: rc.cpp:141
msgid "Font size"
msgstr "Размер шрифта"
#: rc.cpp:141
#: rc.cpp:144
msgid "Font color"
msgstr "Цвет шрифта"
#: rc.cpp:144
#: rc.cpp:147
msgid "Font style"
msgstr "Стиль шрифта"
#: rc.cpp:147
#: rc.cpp:150
msgid "Font weight"
msgstr "Ширина шрифта"
#: rc.cpp:153
#: rc.cpp:156
msgid "Custom command"
msgstr "Своя команда"
#: rc.cpp:156
#: rc.cpp:159
msgid "Custom command to run"
msgstr "Своя команда для запуска"
#: rc.cpp:166
#: rc.cpp:169
msgid "GPU device"
msgstr "Устройство GPU"
#: rc.cpp:169 rc.cpp:311
#: rc.cpp:172 rc.cpp:317
msgid "HDD"
msgstr "HDD"
#: rc.cpp:172
#: rc.cpp:175
msgid "hddtemp cmd"
msgstr "Команда hddtemp"
#: rc.cpp:175
#: rc.cpp:178
msgid "MPD address"
msgstr "Адрес сервера MPD"
#: rc.cpp:178
#: rc.cpp:181
msgid "MPD port"
msgstr "Порт сервера MPD"
#: rc.cpp:181 rc.cpp:369
#: rc.cpp:184 rc.cpp:375
msgid "Package manager"
msgstr "Пакетный менеджер"
#: rc.cpp:184
#: rc.cpp:187
msgid "Number of null lines"
msgstr "Число пустых линий"
#: rc.cpp:194 rc.cpp:351
#: rc.cpp:197 rc.cpp:357
msgid "Music player"
msgstr "Музыкальный плеер"
#: rc.cpp:200
msgid "Desktop check cmd"
msgstr "Команда для проверки рабочего стола"
#: rc.cpp:206
msgid ""
"CPU, CPU clock, memory, swap and network labels support graphical tooltip. "
"To enable them just make needed checkbox fully checked."
@ -283,35 +291,35 @@ msgstr ""
"графический тултип. Чтобы включить его, просто сделайте требуемые чекбоксы "
"полностью чекнутыми."
#: rc.cpp:203
#: rc.cpp:209
msgid "Number of values for tooltips"
msgstr "Число хранящихся значений"
#: rc.cpp:206
#: rc.cpp:212
msgid "CPU clock color"
msgstr "Цвет частоты CPU"
#: rc.cpp:209
#: rc.cpp:215
msgid "Swap color"
msgstr "Цвет swap"
#: rc.cpp:212
#: rc.cpp:218
msgid "CPU color"
msgstr "Цвет CPU"
#: rc.cpp:215
#: rc.cpp:221
msgid "Download speed color"
msgstr "Цвет скорости загрузки"
#: rc.cpp:218
#: rc.cpp:224
msgid "Memory color"
msgstr "Цвет памяти"
#: rc.cpp:221
#: rc.cpp:227
msgid "Upload speed color"
msgstr "Цвет скорости отдачи"
#: rc.cpp:227
#: rc.cpp:233
msgid ""
"Detailed information may be found on <a href=\"http://arcanis.name/projects/"
"pytextmonitor/\">project homepage</a>"
@ -319,11 +327,11 @@ msgstr ""
"Подробная информация может быть найдена на <a href=\"http://arcanis.name/ru/"
"projects/pytextmonitor/\">домашней странице проекта</a>"
#: rc.cpp:230
#: rc.cpp:236
msgid "Time"
msgstr "Время"
#: rc.cpp:233
#: rc.cpp:239
msgid ""
"$time - time in default format\n"
"$isotime - time in ISO format\n"
@ -337,11 +345,11 @@ msgstr ""
"$longtime - время в длинном формате\n"
"$custom - свой формат времени"
#: rc.cpp:240
#: rc.cpp:246
msgid "Uptime"
msgstr "Время работы"
#: rc.cpp:243
#: rc.cpp:249
msgid ""
"$uptime - system uptime\n"
"$custom - custom format"
@ -349,11 +357,11 @@ msgstr ""
"$uptime - время работы\n"
"$custom - свой формат"
#: rc.cpp:247
#: rc.cpp:253
msgid "CPU"
msgstr "CPU"
#: rc.cpp:251
#: rc.cpp:257
msgid ""
"$cpu - total load CPU, %\n"
"$cpu0 - load CPU for core 0, %\n"
@ -369,11 +377,11 @@ msgstr ""
"...\n"
"$cpuN - загрузка CPU для ядра N, %"
#: rc.cpp:259
#: rc.cpp:265
msgid "CPU Clock"
msgstr "Частота CPU"
#: rc.cpp:262
#: rc.cpp:268
msgid ""
"$cpucl - average CPU clock, MHz\n"
"$cpucl0 - CPU clock for core 0, MHz\n"
@ -389,35 +397,35 @@ msgstr ""
"...\n"
"$cpuclN - частота CPU для ядра N, MHz"
#: rc.cpp:270
#: rc.cpp:276
msgid "Temperature"
msgstr "Температура"
#: rc.cpp:273
#: rc.cpp:279
msgid "$tempN - physical temperature on device N (from 0). Example: $temp0"
msgstr "$tempN - физическая температура на устройстве N (от 0). Пример: $temp0"
#: rc.cpp:276
#: rc.cpp:282
msgid "GPU"
msgstr "GPU"
#: rc.cpp:280
#: rc.cpp:286
msgid "$gpu - gpu usage, %"
msgstr "$gpu - использование GPU, %"
#: rc.cpp:283
#: rc.cpp:289
msgid "GPU Temp"
msgstr "Температура GPU"
#: rc.cpp:286
#: rc.cpp:292
msgid "$gputemp - physical temperature on GPU"
msgstr "$gputemp - физическая температура на GPU"
#: rc.cpp:289
#: rc.cpp:295
msgid "Memory"
msgstr "Память"
#: rc.cpp:293
#: rc.cpp:299
msgid ""
"$mem - RAM usage, %\n"
"$memmb - RAM usage, MB\n"
@ -431,11 +439,11 @@ msgstr ""
"$memtotmb - RAM, MB\n"
"$memtotgb - RAM, GB"
#: rc.cpp:300
#: rc.cpp:306
msgid "Swap"
msgstr "Swap"
#: rc.cpp:304
#: rc.cpp:310
msgid ""
"$swap - swap usage, %\n"
"$swapmb - swap usage, MB\n"
@ -449,7 +457,7 @@ msgstr ""
"$swaptotmb - swap, MB\n"
"$swaptotgb - swap, GB"
#: rc.cpp:315
#: rc.cpp:321
msgid ""
"$hddN - usage for mount point N (from 0), %. Example: $hdd0\n"
"$hddmbN - usage for mount point N (from 0), MB. Example: $hddmb0\n"
@ -463,11 +471,11 @@ msgstr ""
"$hddtotmbN - размер точки монтирования N (от 0), MB. Пример: $hddtotmb0\n"
"$hddtotgbN - размер точки монтирования N (от 0), GB. Пример: $hddtotgb0"
#: rc.cpp:322
#: rc.cpp:328
msgid "HDD speed"
msgstr "Скорость HDD"
#: rc.cpp:325
#: rc.cpp:331
msgid ""
"$hddrN - read speed HDD N (from 0), KB/s. Example: $hddr0\n"
"$hddwN - write speed HDD N (from 0), KB/s. Example: $hddw0"
@ -475,20 +483,20 @@ msgstr ""
"$hddrN - скорость записи на HDD N (от 0), KB/s. Например: $hddr0\n"
"$hddwN - скорость чтения с HDD N (от 0), KB/s. Например: $hddw0"
#: rc.cpp:329
#: rc.cpp:335
msgid "HDD temp"
msgstr "Температура HDD"
#: rc.cpp:332
#: rc.cpp:338
msgid ""
"$hddtempN - physical temperature on device N (from 0). Example: $hddtemp0"
msgstr "$hddtempN - температура на устройстве N (от 0). Пример: $hddtemp0"
#: rc.cpp:335
#: rc.cpp:341
msgid "Network"
msgstr "Сеть"
#: rc.cpp:338
#: rc.cpp:344
msgid ""
"$down - download speed, KB/s\n"
"$up - upload speed, KB/s\n"
@ -498,11 +506,11 @@ msgstr ""
"$up - скорость загрузки, KB/s\n"
"$netdev - текущее устройство"
#: rc.cpp:343
#: rc.cpp:349
msgid "Battery"
msgstr "Батарея"
#: rc.cpp:347
#: rc.cpp:353
msgid ""
"$bat - battery charge, %\n"
"$ac - AC status"
@ -510,7 +518,7 @@ msgstr ""
"$bat - заряд батареи, %\n"
"$ac - статус адаптера питания"
#: rc.cpp:354
#: rc.cpp:360
msgid ""
"$album - song album\n"
"$artist - song artist\n"
@ -524,11 +532,11 @@ msgstr ""
"$time - продолжительность\n"
"$title - название"
#: rc.cpp:361
#: rc.cpp:367
msgid "Processes"
msgstr "Процессы"
#: rc.cpp:364
#: rc.cpp:370
msgid ""
"$pscount - number of running processes\n"
"$pstotal - total number of running processes\n"
@ -538,7 +546,7 @@ msgstr ""
"$pstotal - общее число процессов\n"
"$ps - список запущенных процессов, разделенных запятыми"
#: rc.cpp:372
#: rc.cpp:378
msgid ""
"$pkgcountN - number of packages which are available for updates, command N. "
"For example $pkgcount0"
@ -546,21 +554,35 @@ msgstr ""
"$pkgcountN - число пакетов, которые доступны для обновления, для команды N. "
"Например, $pkgcount0"
#: rc.cpp:375
#: rc.cpp:381
msgid "Custom"
msgstr "Своя команда"
#: rc.cpp:378
#: rc.cpp:384
msgid ""
"$customN - get output from custom command N (from N). Example `$custom0`"
msgstr "$customN - получить информацию из своей команды N. Например $custom0"
#: rc.cpp:379
#: rc.cpp:387
msgid "Current desktop"
msgstr "Текущий рабочий стол"
#: rc.cpp:390
msgid ""
"$name - desktop name\n"
"$number - desktop number\n"
"$total - total number of desktops"
msgstr ""
"$name - имя рабочего стола\n"
"$number - номер рабочего стола\n"
"$total - общее число рабочих столов"
#: rc.cpp:393
msgctxt "NAME OF TRANSLATORS"
msgid "Your names"
msgstr "Evgeniy Alekseev"
#: rc.cpp:380
#: rc.cpp:394
msgctxt "EMAIL OF TRANSLATORS"
msgid "Your emails"
msgstr "esalexeev@gmail.com"

View File

@ -6,10 +6,10 @@ 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-31 14:04+0400\n"
"POT-Creation-Date: 2014-07-09 13:13+0400\n"
"PO-Revision-Date: 2014-06-06 01:23+0400\n"
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
"Language-Team: Ukrainian <kde-russian@lists.kde.ru>\n"
"Language-Team: Ukrainian <kde-ukrainian@lists.kde.ru>\n"
"Language: ua\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@ -18,63 +18,67 @@ msgstr ""
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
"X-Generator: Lokalize 1.5\n"
#: code/configdef.py:273
#: code/configdef.py:277
msgid "Widget"
msgstr "Віджет"
#: code/configdef.py:275
#: code/configdef.py:279
msgid "Advanced"
msgstr "Розширені"
#: code/configdef.py:277
#: code/configdef.py:281
msgid "Tooltip"
msgstr "Тултіп"
#: code/configdef.py:279
#: code/configdef.py:283
msgid "Appearance"
msgstr "Зовнішній вигляд"
#: code/configdef.py:281
#: code/configdef.py:285
msgid "DataEngine"
msgstr "DataEngine"
#: code/main.py:117
#: code/main.py:115
msgid "Run ksysguard"
msgstr "Запустити ksysguard"
#: code/main.py:119
#: code/main.py:117
msgid "Show README"
msgstr "Показати README"
#: code/main.py:121
#: code/main.py:119
msgid "Update text"
msgstr "Оновити текст"
#: rc.cpp:3 rc.cpp:129 rc.cpp:150 rc.cpp:197 rc.cpp:224
#: rc.cpp:3 rc.cpp:132 rc.cpp:153 rc.cpp:203 rc.cpp:230
msgid "Form"
msgstr "Form"
#: rc.cpp:6
msgid "Enable background"
msgstr ""
#: rc.cpp:9
msgid "Vertical layout"
msgstr "Вертикальна розмітка"
#: rc.cpp:9
#: rc.cpp:12
msgid "Enable popup on mouse click"
msgstr "Включити спливаючі підказки при натисканні клавіші миші"
#: rc.cpp:12
#: rc.cpp:15
msgid "Add stretch to left/top of the layout"
msgstr "Додати порожнє місце ліворуч/вгорі віджету"
#: rc.cpp:15
#: rc.cpp:18
msgid "Add stretch to right/bottom of the layout"
msgstr "Додати порожнє місце праворуч/внизу віджету"
#: rc.cpp:18
#: rc.cpp:21
msgid "Custom time format"
msgstr "Свій формат часу"
#: rc.cpp:21
#: rc.cpp:24
msgid ""
"$dddd - long weekday\n"
"$ddd - short weekday\n"
@ -110,11 +114,11 @@ msgstr ""
"$ss - секунди\n"
"$s - секунди без нулів"
#: rc.cpp:39
#: rc.cpp:42
msgid "Custom uptime format"
msgstr "Свій формат аптайму (uptime)"
#: rc.cpp:42
#: rc.cpp:45
msgid ""
"$dd - uptime days\n"
"$d - uptime days without zero\n"
@ -130,19 +134,19 @@ msgstr ""
"$mm - хвилини аптайму\n"
"$m - хвилини аптайму без нулів"
#: rc.cpp:50
#: rc.cpp:53
msgid "Temperature units"
msgstr "Одиниці виміру температури"
#: rc.cpp:53
#: rc.cpp:56
msgid "Temperature devices"
msgstr "Температурні пристрої"
#: rc.cpp:56 rc.cpp:66 rc.cpp:76 rc.cpp:86 rc.cpp:159 rc.cpp:187
#: rc.cpp:59 rc.cpp:69 rc.cpp:79 rc.cpp:89 rc.cpp:162 rc.cpp:190
msgid "Add"
msgstr "Добавити"
#: rc.cpp:59 rc.cpp:69 rc.cpp:79 rc.cpp:89 rc.cpp:162 rc.cpp:190
#: rc.cpp:62 rc.cpp:72 rc.cpp:82 rc.cpp:92 rc.cpp:165 rc.cpp:193
msgid ""
"Editable\n"
"del - remove item"
@ -150,168 +154,172 @@ msgstr ""
"Можна редагувати\n"
"del - видалити рядок"
#: rc.cpp:63
#: rc.cpp:66
msgid "Mount points"
msgstr "Точки монтування"
#: rc.cpp:73
#: rc.cpp:76
msgid "HDD devices (speed)"
msgstr "HDD (швидкість)"
#: rc.cpp:83
#: rc.cpp:86
msgid "HDD devices (temp)"
msgstr "HDD (температура)"
#: rc.cpp:93
#: rc.cpp:96
msgid "Network directory"
msgstr "Шлях до інтерфейсів"
#: rc.cpp:96
#: rc.cpp:99
msgid "\"/sys/class/net\" by default"
msgstr "\"/sys/class/net\" за замовчуванням"
#: rc.cpp:99
#: rc.cpp:102
msgid "Disable auto select device and set specified device"
msgstr "Відключити автоматичний вибір пристрою та використовувати вказаний"
#: rc.cpp:102
#: rc.cpp:105
msgid "Set network device"
msgstr "Оберіть мережевий пристрій"
#: rc.cpp:105
#: rc.cpp:108
msgid "Battery device"
msgstr "Пристрій батареї"
#: rc.cpp:108
#: rc.cpp:111
msgid "\"/sys/class/power_supply/BAT0/capacity\" by default"
msgstr "\"/sys/class/power_supply/BAT0/capacity\" за замовчуванням"
#: rc.cpp:111
#: rc.cpp:114
msgid "AC online tag"
msgstr "AC підключений"
#: rc.cpp:114
#: rc.cpp:117
msgid "Line, which returns when AC is online"
msgstr "Рядок, що повертається при підключеному адаптері живлення"
#: rc.cpp:117
#: rc.cpp:120
msgid "AC offline tag"
msgstr "AC відключений"
#: rc.cpp:120
#: rc.cpp:123
msgid "Line, which returns when AC is offline"
msgstr "Рядок, що повертається при відключеному адаптері живлення"
#: rc.cpp:123
#: rc.cpp:126
msgid "AC device"
msgstr "AC пристрій"
#: rc.cpp:126
#: rc.cpp:129
msgid "\"/sys/class/power_supply/AC/online\" by default"
msgstr "\"/sys/class/power_supply/AC/online\" за замовчуванням"
#: rc.cpp:132
#: rc.cpp:135
msgid "Time interval"
msgstr "Інтервал оновлення"
#: rc.cpp:135
#: rc.cpp:138
msgid "Font"
msgstr "Шрифт"
#: rc.cpp:138
#: rc.cpp:141
msgid "Font size"
msgstr "Розмір шрифту"
#: rc.cpp:141
#: rc.cpp:144
msgid "Font color"
msgstr "Колір шрифту"
#: rc.cpp:144
#: rc.cpp:147
msgid "Font style"
msgstr "Стиль шрифту"
#: rc.cpp:147
#: rc.cpp:150
msgid "Font weight"
msgstr "Ширина шрифту"
#: rc.cpp:153
#: rc.cpp:156
msgid "Custom command"
msgstr "Своя команда"
#: rc.cpp:156
#: rc.cpp:159
msgid "Custom command to run"
msgstr "Виконання своєї команди"
#: rc.cpp:166
#: rc.cpp:169
msgid "GPU device"
msgstr "Пристій GPU"
#: rc.cpp:169 rc.cpp:311
#: rc.cpp:172 rc.cpp:317
msgid "HDD"
msgstr "HDD"
#: rc.cpp:172
#: rc.cpp:175
msgid "hddtemp cmd"
msgstr "Команда hddtemp"
#: rc.cpp:175
#: rc.cpp:178
msgid "MPD address"
msgstr "Адреса сервера MPD"
#: rc.cpp:178
#: rc.cpp:181
msgid "MPD port"
msgstr "Порт сервера MPD"
#: rc.cpp:181 rc.cpp:369
#: rc.cpp:184 rc.cpp:375
msgid "Package manager"
msgstr "Пакетний менеджер"
#: rc.cpp:184
#: rc.cpp:187
msgid "Number of null lines"
msgstr "Кількість пустих рядків"
#: rc.cpp:194 rc.cpp:351
#: rc.cpp:197 rc.cpp:357
msgid "Music player"
msgstr "Музичний плеєр"
#: rc.cpp:200
msgid "Desktop check cmd"
msgstr ""
#: rc.cpp:206
msgid ""
"CPU, CPU clock, memory, swap and network labels support graphical tooltip. "
"To enable them just make needed checkbox fully checked."
msgstr ""
"Поля \"CPU\", \"Частота CPU\", \"Пам’ятьґЄ, \"Swap\" та \"Мережа\" "
"підтримують графічний тултіп. "
"Щоб їх задіяти, просто зробіть необхідні чекбокси повністю чекнутими."
"підтримують графічний тултіп. Щоб їх задіяти, просто зробіть необхідні "
"чекбокси повністю чекнутими."
#: rc.cpp:203
#: rc.cpp:209
msgid "Number of values for tooltips"
msgstr "Кількість значень для тултіпа"
#: rc.cpp:206
#: rc.cpp:212
msgid "CPU clock color"
msgstr "Колір частоти CPU"
#: rc.cpp:209
#: rc.cpp:215
msgid "Swap color"
msgstr "Колір swap"
#: rc.cpp:212
#: rc.cpp:218
msgid "CPU color"
msgstr "Колір CPU"
#: rc.cpp:215
#: rc.cpp:221
msgid "Download speed color"
msgstr "Колір швидкості скачування"
#: rc.cpp:218
#: rc.cpp:224
msgid "Memory color"
msgstr "Колір пам’яті"
#: rc.cpp:221
#: rc.cpp:227
msgid "Upload speed color"
msgstr "Колір швидкості віддачі"
#: rc.cpp:227
#: rc.cpp:233
msgid ""
"Detailed information may be found on <a href=\"http://arcanis.name/projects/"
"pytextmonitor/\">project homepage</a>"
@ -319,11 +327,11 @@ msgstr ""
"Детальна інформація може бути знайдена на <a href=\"http://arcanis.name/"
"projects/pytextmonitor/\">домашній сторінці проекту</a>"
#: rc.cpp:230
#: rc.cpp:236
msgid "Time"
msgstr "Час"
#: rc.cpp:233
#: rc.cpp:239
msgid ""
"$time - time in default format\n"
"$isotime - time in ISO format\n"
@ -337,11 +345,11 @@ msgstr ""
"$longtime - час у довгому форматі\n"
"$custom - свій формат часу"
#: rc.cpp:240
#: rc.cpp:246
msgid "Uptime"
msgstr "Час роботи"
#: rc.cpp:243
#: rc.cpp:249
msgid ""
"$uptime - system uptime\n"
"$custom - custom format"
@ -349,11 +357,11 @@ msgstr ""
"$uptime - час роботи\n"
"$custom - свій формат"
#: rc.cpp:247
#: rc.cpp:253
msgid "CPU"
msgstr "CPU"
#: rc.cpp:251
#: rc.cpp:257
msgid ""
"$cpu - total load CPU, %\n"
"$cpu0 - load CPU for core 0, %\n"
@ -369,11 +377,11 @@ msgstr ""
"...\n"
"$cpuN - завантаження CPU для ядра N, %"
#: rc.cpp:259
#: rc.cpp:265
msgid "CPU Clock"
msgstr "Частота CPU"
#: rc.cpp:262
#: rc.cpp:268
msgid ""
"$cpucl - average CPU clock, MHz\n"
"$cpucl0 - CPU clock for core 0, MHz\n"
@ -389,35 +397,35 @@ msgstr ""
"...\n"
"$cpuclN - частота CPU для ядра N, MHz"
#: rc.cpp:270
#: rc.cpp:276
msgid "Temperature"
msgstr "Температура"
#: rc.cpp:273
#: rc.cpp:279
msgid "$tempN - physical temperature on device N (from 0). Example: $temp0"
msgstr "$tempN - фізична температура на пристрої N (від 0). Приклад: $temp0"
#: rc.cpp:276
#: rc.cpp:282
msgid "GPU"
msgstr "GPU"
#: rc.cpp:280
#: rc.cpp:286
msgid "$gpu - gpu usage, %"
msgstr "$gpu - використання gpu, %"
#: rc.cpp:283
#: rc.cpp:289
msgid "GPU Temp"
msgstr "Температура GPU"
#: rc.cpp:286
#: rc.cpp:292
msgid "$gputemp - physical temperature on GPU"
msgstr "$gputemp - фізична температура на GPU"
#: rc.cpp:289
#: rc.cpp:295
msgid "Memory"
msgstr "Пам’ять"
#: rc.cpp:293
#: rc.cpp:299
msgid ""
"$mem - RAM usage, %\n"
"$memmb - RAM usage, MB\n"
@ -429,11 +437,11 @@ msgstr ""
"$memmb - використання RAM, MB\n"
"$memgb - використання RAM, GB"
#: rc.cpp:300
#: rc.cpp:306
msgid "Swap"
msgstr "Swap"
#: rc.cpp:304
#: rc.cpp:310
msgid ""
"$swap - swap usage, %\n"
"$swapmb - swap usage, MB\n"
@ -443,11 +451,10 @@ msgid ""
msgstr ""
"$swap - використання swap, %\n"
"$swapmb - використання swap, MB\n"
"$swapgb - використання swap, GB"
"$swaptotmb - swap, MB\n"
"$swapgb - використання swap, GB$swaptotmb - swap, MB\n"
"$swaptotgb - swap, GB"
#: rc.cpp:315
#: rc.cpp:321
msgid ""
"$hddN - usage for mount point N (from 0), %. Example: $hdd0\n"
"$hddmbN - usage for mount point N (from 0), MB. Example: $hddmb0\n"
@ -461,11 +468,11 @@ msgstr ""
"$hddtotmbN - розмір точки монтування N (від 0), MB. Приклад: $hddtotmb0\n"
"$hddtotgbN - розмір точки монтування N (від 0), GB. Приклад: $hddtotgb0"
#: rc.cpp:322
#: rc.cpp:328
msgid "HDD speed"
msgstr "Швидкість HDD"
#: rc.cpp:325
#: rc.cpp:331
msgid ""
"$hddrN - read speed HDD N (from 0), KB/s. Example: $hddr0\n"
"$hddwN - write speed HDD N (from 0), KB/s. Example: $hddw0"
@ -473,21 +480,21 @@ msgstr ""
"$hddrN - швидкість читання HDD N (від 0), KB/s. Приклад: $hddr0\n"
"$hddwN - швидкість запису HDD N (від 0), KB/s. Приклад: $hddw0"
#: rc.cpp:329
#: rc.cpp:335
msgid "HDD temp"
msgstr "Температура HDD"
#: rc.cpp:332
#: rc.cpp:338
msgid ""
"$hddtempN - physical temperature on device N (from 0). Example: $hddtemp0"
msgstr ""
"$hddtempN - фізична температура на пристрої N (від 0). Приклад: $hddtemp"
#: rc.cpp:335
#: rc.cpp:341
msgid "Network"
msgstr "Мережа"
#: rc.cpp:338
#: rc.cpp:344
msgid ""
"$down - download speed, KB/s\n"
"$up - upload speed, KB/s\n"
@ -497,11 +504,11 @@ msgstr ""
"$up - швидкість віддачі, KB/s\n"
"$netdev - поточний мережевий пристрій"
#: rc.cpp:343
#: rc.cpp:349
msgid "Battery"
msgstr "Батарея"
#: rc.cpp:347
#: rc.cpp:353
msgid ""
"$bat - battery charge, %\n"
"$ac - AC status"
@ -509,7 +516,7 @@ msgstr ""
"$bat - заряд батареї, %\n"
"$ac - статус адаптера живлення"
#: rc.cpp:354
#: rc.cpp:360
msgid ""
"$album - song album\n"
"$artist - song artist\n"
@ -523,11 +530,11 @@ msgstr ""
"$time - тривалість\n"
"$title - назва"
#: rc.cpp:361
#: rc.cpp:367
msgid "Processes"
msgstr "Процеси"
#: rc.cpp:364
#: rc.cpp:370
msgid ""
"$pscount - number of running processes\n"
"$pstotal - total number of running processes\n"
@ -537,7 +544,7 @@ msgstr ""
"$pstotal - загальна кількість процесів\n"
"$ps - перелік запущених процесів, розділених комами"
#: rc.cpp:372
#: rc.cpp:378
msgid ""
"$pkgcountN - number of packages which are available for updates, command N. "
"For example $pkgcount0"
@ -545,22 +552,33 @@ msgstr ""
"$pkgcountN - кількість пакетів, що доступні для оновлення, для команди N. "
"Наприклад: $pkgcount0"
#: rc.cpp:375
#: rc.cpp:381
msgid "Custom"
msgstr "Своя команда"
#: rc.cpp:378
#: rc.cpp:384
msgid ""
"$customN - get output from custom command N (from N). Example `$custom0`"
msgstr ""
"$customN - отримати інформацію зі своєї команди N. Наприклад `$custom0`"
#: rc.cpp:379
#: rc.cpp:387
msgid "Current desktop"
msgstr ""
#: rc.cpp:390
msgid ""
"$name - desktop name\n"
"$number - desktop number\n"
"$total - total number of desktops"
msgstr ""
#: rc.cpp:393
msgctxt "NAME OF TRANSLATORS"
msgid "Your names"
msgstr "Slobodyan Victor"
#: rc.cpp:380
#: rc.cpp:394
msgctxt "EMAIL OF TRANSLATORS"
msgid "Your emails"
msgstr "sarumyan@i.ua"

View File

@ -59,6 +59,9 @@
<li>tag <code>$ps</code> - list of running processes</li>
<li>tag <code>$pkgcountN</code> - number of packages, which available to upgrade for command N. For example, <code>$pkgcount0</code></li>
<li>tag <code>$customN</code> - returns output for custom command N. For example, <code>$custom0</code></li>
<li>tag <code>$name</code> - name of the current desktop</li>
<li>tag <code>$number</code> - number of the current desktop</li>
<li>tag <code>$total</code> - total number of desktops</li>
</ul>
<p>Label order will changed if you change slider position. HTML tags in label work normally.</p>
@ -73,6 +76,10 @@
<h2>Advanced settings</h2>
<p><strong>Enable background</strong></p>
<p>Uncheck to disable default background and set transparent one.</p>
<p><strong>Vertical layout</strong></p>
<p>Use vertical layout instead of horizontal one.</p>
@ -173,6 +180,10 @@
<p>Commands, which will be run for custom label.</p>
<p><strong>Desktop cmd</strong></p>
<p>Type a command which will be run for desktop DataEngine. Default is <code>qdbus org.kde.kwin /KWin currentDesktop</code>.</p>
<p><strong>GPU device</strong></p>
<p>Select one of supported GPU devices. <code>auto</code> will enable auto selection, <code>disable</code> will disable definition of GPU states. Default is <code>auto</code>.</p>
@ -210,9 +221,40 @@
<p>Select one of supported music playes for player label.</p>
<h2>DataEngine configuration</h2>
<h1>PTM desktop panel</h1>
<p>You may edit DataEngine configuration. It is <code>/usr/share/config/extsysmon.conf</code> or <code>$HOME/share/config/extsysmon.conf</code> depending on the type of installation. Uncomment needed line and edit it.</p>
<p>Since version 1.11.0 PyTextMonitor provides a minimalistic panel for monitoring on desktops written on <code>C++</code>. And yes, it looks like the same panel in Awesome.</p>
<h2>Desktop panel configuration</h2>
<p><strong>Enable background</strong></p>
<p>Uncheck to disable default background and set transparent one.</p>
<p><strong>Vertical layout</strong></p>
<p>Use vertical layout instead of horizontal one.</p>
<p><strong>Add stretch</strong></p>
<p>Add stretch (spacer) to the selected side of the widget.</p>
<p><strong>Mark</strong></p>
<p>Type symbol (or string) which will be shown if this desktop is active now.</p>
<p><strong>Pattern tags</strong></p>
<ul>
<li>tag <code>$mark</code> - show mark if this desktop is active</li>
<li>tag <code>$name</code> - name of the current desktop</li>
<li>tag <code>$number</code> - number of the current desktop</li>
<li>tag <code>$total</code> - total number of desktops</li>
</ul>
<p><strong>Command</strong></p>
<p>Type command which will be run on left click on the selected desktop. Available variables are same as for pattern. Default is <code>dbus org.kde.kwin /KWin setCurrentDesktop $number</code>.</p>
<h1>Instruction</h1>

View File

@ -59,6 +59,9 @@
<li>тег <code>$ps</code> - список процессов</li>
<li>тег <code>$pkgcountN</code> - число пакетов, которые могут быть обновлены, для команды N. Например, <code>$pkgcount0</code></li>
<li>тег <code>$customN</code> - возвращает результат своей команды N. Например, <code>$custom0</code></li>
<li>тег <code>$name</code> - имя текущего рабочего стола</li>
<li>тег <code>$number</code> - номер текущего рабочего стола</li>
<li>тег <code>$total</code> - общее число рабочих столов</li>
</ul>
<p>Порядок полей изменится, если вы измените позицию слайдеров. HTML теги в полях работают корректно.</p>
@ -73,6 +76,10 @@
<h2>Расширенные настройки</h2>
<p><strong>Включить фон</strong></p>
<p>Снимите галочку, чтобы отключить стандартный фон виджета и установить прозрачный.</p>
<p><strong>Вертикальная разметка</strong></p>
<p>Использовать вертикальную разметку вместо горизонтальной.</p>
@ -173,6 +180,10 @@
<p>Команды, которые будут запущены для соответствующего поля.</p>
<p><strong>Комадна для определения рабочего стола</strong></p>
<p>Введите команду, которая будет запущеная для desktop DataEngine. По умолчанию <code>qdbus org.kde.kwin /KWin currentDesktop</code>.</p>
<p><strong>Устройство GPU</strong></p>
<p>Выберите одно из поддерживаемых устройств GPU. <code>auto</code> включит автоматическое определение, <code>disable</code> отключит все мониторы GPU. По умолчанию <code>auto</code>.</p>
@ -210,9 +221,40 @@
<p>Выберите один из поддерживаемых музыкальных плееров.</p>
<h2>Настройка DataEngine</h2>
<h1>PTM desktop panel</h1>
<p>Вы можете отредактировать настройки DataEngine вручную. Откройте файл <code>/usr/share/config/extsysmon.conf</code> или <code>$HOME/.kde4/share/config/extsysmon.conf</code>, в зависимости от типа установки. Раскомментируйте требуемые строки и отредактируйте их.</p>
<p>Начиная с версии 1.11.0 PyTextMonitor предоставляет минималистичную панель для мониторинга за рабочими столами, написанный на <code>C++</code>. И да, он выглядит, как аналогичная панель в Awesome.</p>
<h2>Настройка Desktop panel</h2>
<p><strong>Включить фон</strong></p>
<p>Снимите галочку, чтобы отключить стандартный фон виджета и установить прозрачный.</p>
<p><strong>Вертикальная разметка</strong></p>
<p>Использовать вертикальную разметку вместо горизонтальной.</p>
<p><strong>Добавить пустое пространство</strong></p>
<p>Добавить пустое пространство в указанное место виджета.</p>
<p><strong>Метка</strong></p>
<p>Введите символ (или строку), которая будет показана, если данный рабочий стол сейчас активен.</p>
<p><strong>Теги шаблона</strong></p>
<ul>
<li>тег <code>$mark</code> - показать метку, если данный рабочий стол активен</li>
<li>тег <code>$name</code> - имя рабочего стола</li>
<li>тег <code>$number</code> - номер рабочего стола</li>
<li>тег <code>$total</code> - общее число рабочих столов</li>
</ul>
<p><strong>Команда</strong></p>
<p>Введите команду, которая будет запущена по клику левой кнопкой мыши на выбранном рабочем столе. Доступны те же переменные, что и для шаблонов. По умолчанию <code>dbus org.kde.kwin /KWin setCurrentDesktop $number</code>.</p>
<h1>Инструкция</h1>