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: Ver.1.10.0:
+ added tags $hddtotmb, $hddtotgb + added tags $hddtotmb, $hddtotgb
+ added tags $memtotmb, $memtotgb, $swaptotmb, $swaptotgb + 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: Вер.1.10.0:
+ добавлены теги $hddtotmb, $hddtotgb + добавлены теги $hddtotmb, $hddtotgb
+ добавлены теги $memtotmb, $memtotgb, $swaptotmb, $swaptotgb + добавлены теги $memtotmb, $memtotgb, $swaptotmb, $swaptotgb

View File

@ -2,7 +2,7 @@
pkgname=kdeplasma-applets-pytextmonitor pkgname=kdeplasma-applets-pytextmonitor
_pkgname=pytextmonitor _pkgname=pytextmonitor
pkgver=1.10.0 pkgver=1.11.0
pkgrel=1 pkgrel=1
pkgdesc="Minimalistic Plasmoid script written on Python2. It looks like widgets in Awesome WM" pkgdesc="Minimalistic Plasmoid script written on Python2. It looks like widgets in Awesome WM"
arch=('i686' 'x86_64') arch=('i686' 'x86_64')
@ -21,7 +21,7 @@ optdepends=("amarok: for music player monitor"
makedepends=('automoc4' 'cmake') makedepends=('automoc4' 'cmake')
source=(https://github.com/arcan1s/pytextmonitor/releases/download/V.${pkgver}/${_pkgname}-${pkgver}-src.tar.xz) source=(https://github.com/arcan1s/pytextmonitor/releases/download/V.${pkgver}/${_pkgname}-${pkgver}-src.tar.xz)
install=${pkgname}.install install=${pkgname}.install
md5sums=('68227097322e3949b61b7bd1c0963511') md5sums=('fac8af7e6b85925510b30917751696fa')
backup=('usr/share/config/extsysmon.conf') backup=('usr/share/config/extsysmon.conf')
prepare() { 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 `$ps` - list of running processes
* tag `$pkgcountN` - number of packages, which available to upgrade for command N. For example, `$pkgcount0` * 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 `$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. 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 Advanced settings
----------------- -----------------
**Enable background**
Uncheck to disable default background and set transparent one.
**Vertical layout** **Vertical layout**
Use vertical layout instead of horizontal one. Use vertical layout instead of horizontal one.
@ -173,6 +180,10 @@ DataEngine settings
Commands, which will be run for custom label. 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** **GPU device**
Select one of supported GPU devices. `auto` will enable auto selection, `disable` will disable definition of GPU states. Default is `auto`. 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. 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 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 `$ps` - list of running processes
* tag `$pkgcountN` - number of packages, which available to upgrade for command N. For example, `$pkgcount0` * 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 `$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. 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 Advanced settings
----------------- -----------------
**Enable background**
Uncheck to disable default background and set transparent one.
**Vertical layout** **Vertical layout**
Use vertical layout instead of horizontal one. Use vertical layout instead of horizontal one.
@ -173,6 +180,10 @@ DataEngine settings
Commands, which will be run for custom label. 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** **GPU device**
Select one of supported GPU devices. `auto` will enable auto selection, `disable` will disable definition of GPU states. Default is `auto`. 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. 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 Instruction
=========== ===========

View File

@ -60,6 +60,9 @@ PyTextMonitor - минималистичный плазмоид, написан
* тег `$ps` - список процессов * тег `$ps` - список процессов
* тег `$pkgcountN` - число пакетов, которые могут быть обновлены, для команды N. Например, `$pkgcount0` * тег `$pkgcountN` - число пакетов, которые могут быть обновлены, для команды N. Например, `$pkgcount0`
* тег `$customN` - возвращает результат своей команды N. Например, `$custom0` * тег `$customN` - возвращает результат своей команды N. Например, `$custom0`
* тег `$name` - имя текущего рабочего стола
* тег `$number` - номер текущего рабочего стола
* тег `$total` - общее число рабочих столов
Порядок полей изменится, если вы измените позицию слайдеров. HTML теги в полях работают корректно. Порядок полей изменится, если вы измените позицию слайдеров. HTML теги в полях работают корректно.
@ -75,6 +78,10 @@ PyTextMonitor - минималистичный плазмоид, написан
Расширенные настройки Расширенные настройки
--------------------- ---------------------
**Включить фон**
Снимите галочку, чтобы отключить стандартный фон виджета и установить прозрачный.
**Вертикальная разметка** **Вертикальная разметка**
Использовать вертикальную разметку вместо горизонтальной. Использовать вертикальную разметку вместо горизонтальной.
@ -173,6 +180,10 @@ PyTextMonitor - минималистичный плазмоид, написан
Команды, которые будут запущены для соответствующего поля. Команды, которые будут запущены для соответствующего поля.
**Комадна для определения рабочего стола**
Введите команду, которая будет запущеная для desktop DataEngine. По умолчанию `qdbus org.kde.kwin /KWin currentDesktop`.
**Устройство GPU** **Устройство GPU**
Выберите одно из поддерживаемых устройств GPU. `auto` включит автоматическое определение, `disable` отключит все мониторы GPU. По умолчанию `auto`. Выберите одно из поддерживаемых устройств 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) project (pytextmonitor)
set (PROJECT_VERSION_MAJOR 1) set (PROJECT_VERSION_MAJOR 1)
set (PROJECT_VERSION_MINOR 10) set (PROJECT_VERSION_MINOR 11)
set (PROJECT_VERSION_PATCH 0) set (PROJECT_VERSION_PATCH 0)
set (PROJECT_VERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}) set (PROJECT_VERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH})
@ -24,5 +24,6 @@ else ()
endif () endif ()
add_subdirectory (ext-sysmon) add_subdirectory (ext-sysmon)
add_subdirectory (desktop-panel)
add_subdirectory (ptm) add_subdirectory (ptm)
add_subdirectory (readme) 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 command, separator is '@@'
#CUSTOM=wget -qO- http://ifconfig.me/ip #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 # Set GPU device
# May be 'nvidia' (for nvidia), 'ati' (for ATI RADEON), 'disable' or 'auto' # May be 'nvidia' (for nvidia), 'ati' (for ATI RADEON), 'disable' or 'auto'
#GPUDEV=auto #GPUDEV=auto

View File

@ -26,6 +26,7 @@
#include <QProcessEnvironment> #include <QProcessEnvironment>
#include <QRegExp> #include <QRegExp>
#include <QTextCodec> #include <QTextCodec>
#include <QThread>
ExtendedSysMon::ExtendedSysMon(QObject* parent, const QVariantList& args) 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 QStringList ExtendedSysMon::sources() const
{ {
if (debug) qDebug() << "[DE]" << "[sources]"; if (debug) qDebug() << "[DE]" << "[sources]";
QStringList source; QStringList source;
source.append(QString("custom")); source.append(QString("custom"));
source.append(QString("desktop"));
source.append(QString("gpu")); source.append(QString("gpu"));
source.append(QString("gputemp")); source.append(QString("gputemp"));
source.append(QString("hddtemp")); 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() void ExtendedSysMon::readConfiguration()
{ {
if (debug) qDebug() << "[DE]" << "[readConfiguration]"; if (debug) qDebug() << "[DE]" << "[readConfiguration]";
// pre-setup // pre-setup
QMap<QString, QString> rawConfig; QMap<QString, QString> rawConfig;
rawConfig[QString("CUSTOM")] = QString("wget -qO- http://ifconfig.me/ip"); 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("GPUDEV")] = QString("auto");
rawConfig[QString("HDDDEV")] = QString("all"); rawConfig[QString("HDDDEV")] = QString("all");
rawConfig[QString("HDDTEMPCMD")] = QString("sudo hddtemp"); rawConfig[QString("HDDTEMPCMD")] = QString("sudo hddtemp");
@ -122,8 +170,7 @@ void ExtendedSysMon::readConfiguration()
QString fileName = KGlobal::dirs()->findResource("config", "extsysmon.conf"); QString fileName = KGlobal::dirs()->findResource("config", "extsysmon.conf");
if (debug) qDebug() << "[DE]" << "[readConfiguration]" << ":" << "Configuration file" << fileName; if (debug) qDebug() << "[DE]" << "[readConfiguration]" << ":" << "Configuration file" << fileName;
QFile confFile(fileName); QFile confFile(fileName);
bool ok = confFile.open(QIODevice::ReadOnly); if (!confFile.open(QIODevice::ReadOnly)) {
if (!ok) {
configuration = updateConfiguration(rawConfig); configuration = updateConfiguration(rawConfig);
return; return;
} }
@ -157,6 +204,16 @@ void ExtendedSysMon::setKeys()
key = QString("custom") + QString::number(i); key = QString("custom") + QString::number(i);
setData(source, key, QString("")); 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 // gpu
source = QString("gpu"); source = QString("gpu");
key = QString("GPU"); key = QString("GPU");
@ -197,6 +254,8 @@ void ExtendedSysMon::setKeys()
setData(source, key, QString("")); setData(source, key, QString(""));
key = QString("psTotal"); key = QString("psTotal");
setData(source, key, QString("0")); 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)), connect(processes[QString("custom")][i], SIGNAL(finished(int, QProcess::ExitStatus)),
this, SLOT(setCustomCmd(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 // gpu
processes[QString("gpu")].append(new QProcess); processes[QString("gpu")].append(new QProcess);
connect(processes[QString("gpu")][0], SIGNAL(finished(int, QProcess::ExitStatus)), 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]; value = rawConfig[key];
key.remove(QChar(' ')); key.remove(QChar(' '));
if ((key != QString("CUSTOM")) && if ((key != QString("CUSTOM")) &&
(key != QString("DESKTOPCMD")) &&
(key != QString("HDDTEMPCMD")) && (key != QString("HDDTEMPCMD")) &&
(key != QString("PKGCMD"))) (key != QString("PKGCMD")))
value.remove(QChar(' ')); value.remove(QChar(' '));
config[key] = value; config[key] = value;
} }
// update values // update values
// desktop names
config[QString("DESKTOP")] = getDesktopNames().join(QString(";;"));
// gpudev // gpudev
if (config[QString("GPUDEV")] == QString("disable")) if (config[QString("GPUDEV")] == QString("disable"))
config[QString("GPUDEV")] = QString("disable"); config[QString("GPUDEV")] = QString("disable");
@ -305,12 +371,47 @@ 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) void ExtendedSysMon::getCustomCmd(const QString cmd, const int number)
{ {
if (debug) qDebug() << "[DE]" << "[getCustomCmd]"; if (debug) qDebug() << "[DE]" << "[getCustomCmd]";
if (debug) qDebug() << "[DE]" << "[getCustomCmd]" << ":" << "Run function with cmd" << cmd; 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 function with number" << number;
if (debug) qDebug() << "[DE]" << "[getCustomCmd]" << ":" << "Run cmd" << QString("bash -c \"") + cmd + QString("\""); if (debug) qDebug() << "[DE]" << "[getCustomCmd]" << ":" << "Run cmd" << 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("\"")); processes[QString("custom")][number]->start(QString("bash -c \"") + cmd + QString("\""));
} }
@ -347,6 +448,8 @@ void ExtendedSysMon::getGpu(const QString device)
else if (device == QString("ati")) else if (device == QString("ati"))
cmd = QString("aticonfig --od-getclocks"); cmd = QString("aticonfig --od-getclocks");
if (debug) qDebug() << "[DE]" << "[getGpu]" << ":" << "Run cmd" << cmd; if (debug) qDebug() << "[DE]" << "[getGpu]" << ":" << "Run cmd" << cmd;
if ((processes[QString("gpu")][0]->state() != QProcess::Running) &&
(processes[QString("gpu")][0]->state() != QProcess::Starting))
processes[QString("gpu")][0]->start(cmd); processes[QString("gpu")][0]->start(cmd);
} }
@ -400,6 +503,8 @@ void ExtendedSysMon::getGpuTemp(const QString device)
else if (device == QString("ati")) else if (device == QString("ati"))
cmd = QString("aticonfig --od-gettemperature"); cmd = QString("aticonfig --od-gettemperature");
if (debug) qDebug() << "[DE]" << "[getGpuTemp]" << ":" << "Run cmd" << cmd; if (debug) qDebug() << "[DE]" << "[getGpuTemp]" << ":" << "Run cmd" << cmd;
if ((processes[QString("gputemp")][0]->state() != QProcess::Running) &&
(processes[QString("gputemp")][0]->state() != QProcess::Running))
processes[QString("gputemp")][0]->start(cmd); processes[QString("gputemp")][0]->start(cmd);
} }
@ -446,6 +551,8 @@ 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 device" << device;
if (debug) qDebug() << "[DE]" << "[getHddTemp]" << ":" << "Run function with number" << number; if (debug) qDebug() << "[DE]" << "[getHddTemp]" << ":" << "Run function with number" << number;
if (debug) qDebug() << "[DE]" << "[getHddTemp]" << ":" << "Run cmd" << cmd + QString(" ") + device; if (debug) qDebug() << "[DE]" << "[getHddTemp]" << ":" << "Run cmd" << 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); 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" << if (debug) qDebug() << "[DE]" << "[getPlayerInfo]" << ":" << "Run function with MPD parameters" <<
mpdAddress + QString(":") + mpdPort; mpdAddress + QString(":") + mpdPort;
QString cmd; QString cmd;
if (playerName == QString("amarok")) { if (playerName == QString("amarok"))
// amarok // amarok
cmd = QString("bash -c \"qdbus org.kde.amarok /Player GetMetadata && qdbus org.kde.amarok /Player PositionGet\""); cmd = QString("bash -c \"qdbus org.kde.amarok /Player GetMetadata && qdbus org.kde.amarok /Player PositionGet\"");
if (debug) qDebug() << "[DE]" << "[getPlayerInfo]" << ":" << "Run cmd" << cmd; else if (playerName == QString("clementine"))
processes[QString("player")][0]->start(cmd);
}
else if (playerName == QString("clementine")) {
// clementine // clementine
cmd = QString("bash -c \"qdbus org.mpris.clementine /Player GetMetadata && qdbus org.mpris.clementine /Player PositionGet\""); cmd = QString("bash -c \"qdbus org.mpris.clementine /Player GetMetadata && qdbus org.mpris.clementine /Player PositionGet\"");
if (debug) qDebug() << "[DE]" << "[getPlayerInfo]" << ":" << "Run cmd" << cmd; else if (playerName == QString("mpd"))
processes[QString("player")][0]->start(cmd);
}
else if (playerName == QString("mpd")) {
// mpd // mpd
cmd = QString("bash -c \"echo 'currentsong\nstatus\nclose' | curl --connect-timeout 1 -fsm 3 telnet://") + cmd = QString("bash -c \"echo 'currentsong\nstatus\nclose' | curl --connect-timeout 1 -fsm 3 telnet://") +
mpdAddress + QString(":") + mpdPort + QString("\""); mpdAddress + QString(":") + mpdPort + QString("\"");
if (debug) qDebug() << "[DE]" << "[getPlayerInfo]" << ":" << "Run cmd" << cmd; else if (playerName == QString("qmmp"))
processes[QString("player")][0]->start(cmd);
}
else if (playerName == QString("qmmp")) {
// qmmp // qmmp
cmd = QString("qmmp --status"); cmd = QString("bash -c \"pgrep qmmp && qmmp --status || echo 'null'\"");
if (debug) qDebug() << "[DE]" << "[getPlayerInfo]" << ":" << "Run cmd" << cmd; 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); processes[QString("player")][0]->start(cmd);
}
} }
@ -635,9 +734,13 @@ void ExtendedSysMon::getPsStats()
QString cmd; QString cmd;
cmd = QString("ps --no-headers -o command"); cmd = QString("ps --no-headers -o command");
if (debug) qDebug() << "[DE]" << "[getPsStats]" << ":" << "Run cmd" << cmd; if (debug) qDebug() << "[DE]" << "[getPsStats]" << ":" << "Run cmd" << cmd;
if ((processes[QString("ps")][0]->state() != QProcess::Running) &&
(processes[QString("ps")][0]->state() != QProcess::Starting))
processes[QString("ps")][0]->start(cmd); processes[QString("ps")][0]->start(cmd);
cmd = QString("ps -e --no-headers -o command"); cmd = QString("ps -e --no-headers -o command");
if (debug) qDebug() << "[DE]" << "[getPsStats]" << ":" << "Run cmd" << cmd; if (debug) qDebug() << "[DE]" << "[getPsStats]" << ":" << "Run cmd" << cmd;
if ((processes[QString("ps")][1]->state() != QProcess::Running) &&
(processes[QString("ps")][1]->state() != QProcess::Starting))
processes[QString("ps")][1]->start(cmd); 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]); psList.append(qoutput.split(QChar('\n'), QString::SkipEmptyParts)[i]);
QString source = QString("ps"); QString source = QString("ps");
QString key = QString("psCount"); QString key = QString("psCount");
setData(source, key, QString::number(psList.count())); setData(source, key, psList.count());
key = QString("ps"); key = QString("ps");
setData(source, key, psList.join(QString(","))); setData(source, key, psList.join(QString(",")));
} }
@ -670,7 +773,7 @@ void ExtendedSysMon::setPs(int exitCode, QProcess::ExitStatus exitStatus)
// pstotal // pstotal
QString source = QString("ps"); QString source = QString("ps");
QString key = QString("psTotal"); 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,6 +787,8 @@ void ExtendedSysMon::getUpgradeInfo(const QString pkgCommand, const int number)
if (debug) qDebug() << "[DE]" << "[getUpgradeInfo]" << ":" << "Run function with number" << number; if (debug) qDebug() << "[DE]" << "[getUpgradeInfo]" << ":" << "Run function with number" << number;
QString cmd = QString("bash -c \"") + pkgCommand + QString(" | wc -l\""); QString cmd = QString("bash -c \"") + pkgCommand + QString(" | wc -l\"");
if (debug) qDebug() << "[DE]" << "[getUpgradeInfo]" << ":" << "Run cmd" << cmd; if (debug) qDebug() << "[DE]" << "[getUpgradeInfo]" << ":" << "Run cmd" << cmd;
if ((processes[QString("pkg")][number]->state() != QProcess::Running) &&
(processes[QString("pkg")][number]->state() != QProcess::Starting))
processes[QString("pkg")][number]->start(cmd); 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++) for (int i=0; i<configuration[QString("CUSTOM")].split(QString("@@"), QString::SkipEmptyParts).count(); i++)
getCustomCmd(configuration[QString("CUSTOM")].split(QString("@@"), QString::SkipEmptyParts)[i], 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")) { else if (source == QString("gpu")) {
getGpu(configuration[QString("GPUDEV")]); getGpu(configuration[QString("GPUDEV")]);
} }

View File

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

View File

@ -1,7 +1,7 @@
[Desktop Entry] [Desktop Entry]
Encoding=UTF-8 Encoding=UTF-8
Name=Extended SystemMonitor DataEngine Name=Extended SystemMonitor DataEngine
Comment=Adds gpu, gputemp and hddtemp to DataEngine Comment=Adds some additional functions to System DataEngine
ServiceTypes=Plasma/DataEngine ServiceTypes=Plasma/DataEngine
Type=Service Type=Service
Icon=utilities-system-monitor 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_style', str(self.configpage['appearance'].ui.comboBox_style.currentText()))
settings.set('font_weight', self.configpage['appearance'].ui.spinBox_weight.value()) 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('layout', self.configpage['advanced'].ui.checkBox_layout.checkState())
settings.set('popup', self.configpage['advanced'].ui.checkBox_popup.checkState()) settings.set('popup', self.configpage['advanced'].ui.checkBox_popup.checkState())
settings.set('left_stretch', self.configpage['advanced'].ui.checkBox_leftStretch.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()): for i in range(self.configpage['dataengine'].ui.listWidget_customCommand.count()):
item.append(self.configpage['dataengine'].ui.listWidget_customCommand.item(i).text()) item.append(self.configpage['dataengine'].ui.listWidget_customCommand.item(i).text())
deConfigFile.write("CUSTOM=" + str(item.join(QString('@@'))) + "\n") 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("GPUDEV=" + str(self.configpage['dataengine'].ui.comboBox_gpudev.currentText()) + "\n")
deConfigFile.write("HDDDEV=" + str(self.configpage['dataengine'].ui.comboBox_hdddev.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") deConfigFile.write("HDDTEMPCMD=" + str(self.configpage['dataengine'].ui.lineEdit_hddtempCmd.text()) + "\n")
@ -123,7 +125,7 @@ class ConfigDefinition:
# disconnecting from source and clear layout # disconnecting from source and clear layout
self.parent.disconnectFromSource() self.parent.disconnectFromSource()
labelOrder = "---------------" labelOrder = "----------------"
for label in self.defaults['order'].keys(): for label in self.defaults['order'].keys():
if (self.configpage['widget'].checkboxes[self.defaults['order'][label]].checkState() > 0): if (self.configpage['widget'].checkboxes[self.defaults['order'][label]].checkState() > 0):
pos = self.configpage['widget'].sliders[self.defaults['order'][label]].value() - 1 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.comboBox_style.setCurrentIndex(1)
self.configpage['appearance'].ui.spinBox_weight.setValue(settings.get('font_weight', 400).toInt()[0]) 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_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_popup.setCheckState(settings.get('popup', 2).toInt()[0])
self.configpage['advanced'].ui.checkBox_leftStretch.setCheckState(settings.get('left_stretch', 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_down.setColor(QColor(str(settings.get('down_color', '#00ffff'))))
self.configpage['tooltip'].ui.kcolorcombo_up.setColor(QColor(str(settings.get('up_color', '#ff00ff')))) 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', deSettings = {'CUSTOM':'wget -qO- http://ifconfig.me/ip', 'DESKTOPCMD':'qdbus org.kde.kwin /KWin currentDesktop',
'HDDTEMPCMD':'sudo hddtemp', 'MPDADDRESS':'localhost', 'MPDPORT':'6600', 'PKGCMD':'pacman -Qu', 'GPUDEV':'auto', 'HDDDEV':'all', 'HDDTEMPCMD':'sudo hddtemp', 'MPDADDRESS':'localhost',
'PKGNULL':'0', 'PLAYER':'amarok'} 'MPDPORT':'6600', 'PKGCMD':'pacman -Qu', 'PKGNULL':'0', 'PLAYER':'amarok'}
dataengineConfig = unicode(KGlobal.dirs().localkdedir()) + "/share/config/extsysmon.conf" dataengineConfig = unicode(KGlobal.dirs().localkdedir()) + "/share/config/extsysmon.conf"
try: try:
with open(dataengineConfig, 'r') as deConfigFile: with open(dataengineConfig, 'r') as deConfigFile:
@ -233,6 +236,7 @@ class ConfigDefinition:
for item in deSettings['CUSTOM'].split('@@'): for item in deSettings['CUSTOM'].split('@@'):
self.configpage['dataengine'].ui.listWidget_customCommand.addItem(item) self.configpage['dataengine'].ui.listWidget_customCommand.addItem(item)
index = self.configpage['dataengine'].ui.comboBox_gpudev.findText(deSettings['GPUDEV']) 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_gpudev.setCurrentIndex(index)
self.configpage['dataengine'].ui.comboBox_hdddev.addItem("all") self.configpage['dataengine'].ui.comboBox_hdddev.addItem("all")
self.configpage['dataengine'].ui.comboBox_hdddev.addItem("disable") 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) dataEngines['system'].connectSource("cpu/cpu" + str(core) + "/clock", self.parent, interval)
if (bools['custom'] > 0): if (bools['custom'] > 0):
dataEngines['ext'].connectSource("custom", self.parent, interval) dataEngines['ext'].connectSource("custom", self.parent, interval)
if (bools['desktop'] > 0):
dataEngines['ext'].connectSource("desktop", self.parent, interval)
if (bools['disk'] > 0): if (bools['disk'] > 0):
for item in names['disk']: for item in names['disk']:
dataEngines['system'].connectSource(item + "/Rate/rblk", self.parent, interval) dataEngines['system'].connectSource(item + "/Rate/rblk", self.parent, interval)
@ -138,6 +140,11 @@ class DataEngine:
updatedData['value'] = {} updatedData['value'] = {}
for singleData in data.keys(): for singleData in data.keys():
updatedData['value'][str(singleData.toLower())] = str(data[singleData].toUtf8()).decode("utf-8") 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")): elif ((sourceName[:4] == "disk") and (sourceName[-4:] == "rblk")):
updatedData['name'] = "disk-r" updatedData['name'] = "disk-r"
updatedData['type'] = '/'.join(str(sourceName).split('/')[0:2]) updatedData['type'] = '/'.join(str(sourceName).split('/')[0:2])
@ -311,6 +318,8 @@ class DataEngine:
dataEngines['system'].disconnectSource("cpu/cpu" + str(item) + "/clock", self.parent) dataEngines['system'].disconnectSource("cpu/cpu" + str(item) + "/clock", self.parent)
elif (name == "custom"): elif (name == "custom"):
dataEngines['ext'].disconnectSource("custom", self.parent) dataEngines['ext'].disconnectSource("custom", self.parent)
elif (name == "desktop"):
dataEngines['ext'].disconnectSource("desktop", self.parent)
elif (name == "disk"): elif (name == "disk"):
for item in keys['disk']: for item in keys['disk']:
dataEngines['system'].disconnectSource(item + "/Rate/rblk", self.parent) dataEngines['system'].disconnectSource(item + "/Rate/rblk", self.parent)

View File

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

View File

@ -218,6 +218,8 @@ class PTMNotify:
return self.createText("processor") return self.createText("processor")
elif (name == "custom"): elif (name == "custom"):
return self.createText("system") return self.createText("system")
elif (name == "desktop"):
return self.createText("system")
elif (name == "disk"): elif (name == "disk"):
return self.createText("disk") return self.createText("disk")
elif (name == "gpu"): 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']['acDev'] = str(settings.get('ac_device', '/sys/class/power_supply/AC/online'))
ptmVars['adv']['acOnline'] = str(settings.get('ac_online', '(*)')) ptmVars['adv']['acOnline'] = str(settings.get('ac_online', '(*)'))
ptmVars['adv']['acOffline'] = str(settings.get('ac_offline', '( )')) 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']['batDev'] = str(settings.get('battery_device', '/sys/class/power_supply/BAT0/capacity'))
ptmVars['adv']['customTime'] = str(settings.get('custom_time', '$hh:$mm')) ptmVars['adv']['customTime'] = str(settings.get('custom_time', '$hh:$mm'))
ptmVars['adv']['customUptime'] = str(settings.get('custom_uptime', '$dd,$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)) if self.debug: qDebug("[PTM] [reinit.py] [reinit] : Returns names '%s'" %(ptmNames))
self.parent.applySettings('names', ptmNames) self.parent.applySettings('names', ptmNames)
self.parent.setTransparentBackground(ptmVars['adv']['background'])
self.parent.createLayout(ptmVars['adv']['layout'], ptmVars['adv']['leftStretch']) self.parent.createLayout(ptmVars['adv']['layout'], ptmVars['adv']['leftStretch'])
ptmVars['formats'] = {} ptmVars['formats'] = {}
ptmVars['tooltip']['required'] = [] ptmVars['tooltip']['required'] = []

View File

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

View File

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

View File

@ -99,7 +99,7 @@ del - remove item</string>
</item> </item>
</layout> </layout>
</item> </item>
<item row="1" column="0"> <item row="2" column="0">
<layout class="QHBoxLayout" name="layout_gpudev"> <layout class="QHBoxLayout" name="layout_gpudev">
<item> <item>
<widget class="QLabel" name="label_gpudev"> <widget class="QLabel" name="label_gpudev">
@ -152,7 +152,7 @@ del - remove item</string>
</item> </item>
</layout> </layout>
</item> </item>
<item row="2" column="0"> <item row="3" column="0">
<layout class="QHBoxLayout" name="layout_hdddev"> <layout class="QHBoxLayout" name="layout_hdddev">
<item> <item>
<widget class="QLabel" name="label_hdddev"> <widget class="QLabel" name="label_hdddev">
@ -185,7 +185,7 @@ del - remove item</string>
</item> </item>
</layout> </layout>
</item> </item>
<item row="3" column="0"> <item row="4" column="0">
<layout class="QHBoxLayout" name="layout_hddtempCmd"> <layout class="QHBoxLayout" name="layout_hddtempCmd">
<item> <item>
<widget class="QLabel" name="label_hddtempCmd"> <widget class="QLabel" name="label_hddtempCmd">
@ -209,7 +209,7 @@ del - remove item</string>
</item> </item>
</layout> </layout>
</item> </item>
<item row="4" column="0"> <item row="5" column="0">
<layout class="QHBoxLayout" name="layout_mpdaddress"> <layout class="QHBoxLayout" name="layout_mpdaddress">
<item> <item>
<widget class="QLabel" name="label_mpdaddress"> <widget class="QLabel" name="label_mpdaddress">
@ -233,7 +233,7 @@ del - remove item</string>
</item> </item>
</layout> </layout>
</item> </item>
<item row="5" column="0"> <item row="6" column="0">
<layout class="QHBoxLayout" name="layout_mpdport"> <layout class="QHBoxLayout" name="layout_mpdport">
<item> <item>
<widget class="QLabel" name="label_mpdport"> <widget class="QLabel" name="label_mpdport">
@ -288,7 +288,7 @@ del - remove item</string>
</item> </item>
</layout> </layout>
</item> </item>
<item row="6" column="0"> <item row="7" column="0">
<layout class="QVBoxLayout" name="layout_pkgCommand"> <layout class="QVBoxLayout" name="layout_pkgCommand">
<item> <item>
<layout class="QHBoxLayout" name="layout_pkgCommandSelect"> <layout class="QHBoxLayout" name="layout_pkgCommandSelect">
@ -403,7 +403,7 @@ del - remove item</string>
</item> </item>
</layout> </layout>
</item> </item>
<item row="7" column="0"> <item row="8" column="0">
<layout class="QHBoxLayout" name="layout_playerSelect"> <layout class="QHBoxLayout" name="layout_playerSelect">
<item> <item>
<widget class="QLabel" name="label_playerSelect"> <widget class="QLabel" name="label_playerSelect">
@ -456,7 +456,7 @@ del - remove item</string>
</item> </item>
</layout> </layout>
</item> </item>
<item row="8" column="0"> <item row="9" column="0">
<spacer name="spacer_dataengine"> <spacer name="spacer_dataengine">
<property name="orientation"> <property name="orientation">
<enum>Qt::Vertical</enum> <enum>Qt::Vertical</enum>
@ -469,12 +469,53 @@ del - remove item</string>
</property> </property>
</spacer> </spacer>
</item> </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> </layout>
</widget> </widget>
</widget> </widget>
</item> </item>
</layout> </layout>
</widget> </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/> <resources/>
<connections/> <connections/>
</ui> </ui>

View File

@ -54,9 +54,9 @@
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>0</x> <x>0</x>
<y>-103</y> <y>-139</y>
<width>666</width> <width>666</width>
<height>660</height> <height>696</height>
</rect> </rect>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout_7"> <layout class="QVBoxLayout" name="verticalLayout_7">
@ -104,7 +104,7 @@ $custom - custom time format</string>
<number>1</number> <number>1</number>
</property> </property>
<property name="maximum"> <property name="maximum">
<number>18</number> <number>19</number>
</property> </property>
<property name="pageStep"> <property name="pageStep">
<number>1</number> <number>1</number>
@ -160,7 +160,7 @@ $custom - custom format</string>
<number>1</number> <number>1</number>
</property> </property>
<property name="maximum"> <property name="maximum">
<number>18</number> <number>19</number>
</property> </property>
<property name="pageStep"> <property name="pageStep">
<number>1</number> <number>1</number>
@ -226,7 +226,7 @@ $cpuN - load CPU for core N, %</string>
<number>1</number> <number>1</number>
</property> </property>
<property name="maximum"> <property name="maximum">
<number>18</number> <number>19</number>
</property> </property>
<property name="pageStep"> <property name="pageStep">
<number>1</number> <number>1</number>
@ -292,7 +292,7 @@ $cpuclN - CPU clock for core N, MHz</string>
<number>1</number> <number>1</number>
</property> </property>
<property name="maximum"> <property name="maximum">
<number>18</number> <number>19</number>
</property> </property>
<property name="pageStep"> <property name="pageStep">
<number>1</number> <number>1</number>
@ -350,7 +350,7 @@ $cpuclN - CPU clock for core N, MHz</string>
<number>1</number> <number>1</number>
</property> </property>
<property name="maximum"> <property name="maximum">
<number>18</number> <number>19</number>
</property> </property>
<property name="pageStep"> <property name="pageStep">
<number>1</number> <number>1</number>
@ -408,7 +408,7 @@ $cpuclN - CPU clock for core N, MHz</string>
<number>1</number> <number>1</number>
</property> </property>
<property name="maximum"> <property name="maximum">
<number>18</number> <number>19</number>
</property> </property>
<property name="pageStep"> <property name="pageStep">
<number>1</number> <number>1</number>
@ -466,7 +466,7 @@ $cpuclN - CPU clock for core N, MHz</string>
<number>1</number> <number>1</number>
</property> </property>
<property name="maximum"> <property name="maximum">
<number>18</number> <number>19</number>
</property> </property>
<property name="pageStep"> <property name="pageStep">
<number>1</number> <number>1</number>
@ -531,7 +531,7 @@ $memtotgb - total RAM, GB</string>
<number>1</number> <number>1</number>
</property> </property>
<property name="maximum"> <property name="maximum">
<number>18</number> <number>19</number>
</property> </property>
<property name="pageStep"> <property name="pageStep">
<number>1</number> <number>1</number>
@ -596,7 +596,7 @@ $swaptotgb - total swap, GB</string>
<number>1</number> <number>1</number>
</property> </property>
<property name="maximum"> <property name="maximum">
<number>18</number> <number>19</number>
</property> </property>
<property name="pageStep"> <property name="pageStep">
<number>1</number> <number>1</number>
@ -658,7 +658,7 @@ $hddtotgbN - total size of mount point N (from 0), GB. Example: $hddtotgb0</stri
<number>1</number> <number>1</number>
</property> </property>
<property name="maximum"> <property name="maximum">
<number>18</number> <number>19</number>
</property> </property>
<property name="pageStep"> <property name="pageStep">
<number>1</number> <number>1</number>
@ -717,7 +717,7 @@ $hddwN - write speed HDD N (from 0), KB/s. Example: $hddw0</string>
<number>1</number> <number>1</number>
</property> </property>
<property name="maximum"> <property name="maximum">
<number>18</number> <number>19</number>
</property> </property>
<property name="pageStep"> <property name="pageStep">
<number>1</number> <number>1</number>
@ -775,7 +775,7 @@ $hddwN - write speed HDD N (from 0), KB/s. Example: $hddw0</string>
<number>1</number> <number>1</number>
</property> </property>
<property name="maximum"> <property name="maximum">
<number>18</number> <number>19</number>
</property> </property>
<property name="pageStep"> <property name="pageStep">
<number>1</number> <number>1</number>
@ -838,7 +838,7 @@ $netdev - current network device</string>
<number>1</number> <number>1</number>
</property> </property>
<property name="maximum"> <property name="maximum">
<number>18</number> <number>19</number>
</property> </property>
<property name="pageStep"> <property name="pageStep">
<number>1</number> <number>1</number>
@ -897,7 +897,7 @@ $ac - AC status</string>
<number>1</number> <number>1</number>
</property> </property>
<property name="maximum"> <property name="maximum">
<number>18</number> <number>19</number>
</property> </property>
<property name="pageStep"> <property name="pageStep">
<number>1</number> <number>1</number>
@ -959,7 +959,7 @@ $title - song title</string>
<number>1</number> <number>1</number>
</property> </property>
<property name="maximum"> <property name="maximum">
<number>18</number> <number>19</number>
</property> </property>
<property name="pageStep"> <property name="pageStep">
<number>1</number> <number>1</number>
@ -1019,7 +1019,7 @@ $ps - list of running processes comma separated</string>
<number>1</number> <number>1</number>
</property> </property>
<property name="maximum"> <property name="maximum">
<number>18</number> <number>19</number>
</property> </property>
<property name="pageStep"> <property name="pageStep">
<number>1</number> <number>1</number>
@ -1077,7 +1077,7 @@ $ps - list of running processes comma separated</string>
<number>1</number> <number>1</number>
</property> </property>
<property name="maximum"> <property name="maximum">
<number>18</number> <number>19</number>
</property> </property>
<property name="pageStep"> <property name="pageStep">
<number>1</number> <number>1</number>
@ -1135,7 +1135,7 @@ $ps - list of running processes comma separated</string>
<number>1</number> <number>1</number>
</property> </property>
<property name="maximum"> <property name="maximum">
<number>18</number> <number>19</number>
</property> </property>
<property name="pageStep"> <property name="pageStep">
<number>1</number> <number>1</number>
@ -1153,6 +1153,66 @@ $ps - list of running processes comma separated</string>
</item> </item>
</layout> </layout>
</item> </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> <item>
<spacer name="spacer_elements"> <spacer name="spacer_elements">
<property name="orientation"> <property name="orientation">

View File

@ -1,7 +1,14 @@
[Desktop Entry] [Desktop Entry]
Encoding=UTF-8 Encoding=UTF-8
Name=Py Text Monitor 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 Type=Service
Icon=utilities-system-monitor 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-Email=esalexeev@gmail.com
X-KDE-PluginInfo-Name=pytextmonitor X-KDE-PluginInfo-Name=pytextmonitor
X-KDE-PluginInfo-Version=@PROJECT_VERSION@ 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-Category=System Information
X-KDE-PluginInfo-Depends= X-KDE-PluginInfo-Depends=
X-KDE-PluginInfo-License=GPLv3 X-KDE-PluginInfo-License=GPLv3

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -59,6 +59,9 @@
<li>tag <code>$ps</code> - list of running processes</li> <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>$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>$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> </ul>
<p>Label order will changed if you change slider position. HTML tags in label work normally.</p> <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> <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><strong>Vertical layout</strong></p>
<p>Use vertical layout instead of horizontal one.</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>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><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> <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> <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> <h1>Instruction</h1>

View File

@ -59,6 +59,9 @@
<li>тег <code>$ps</code> - список процессов</li> <li>тег <code>$ps</code> - список процессов</li>
<li>тег <code>$pkgcountN</code> - число пакетов, которые могут быть обновлены, для команды N. Например, <code>$pkgcount0</code></li> <li>тег <code>$pkgcountN</code> - число пакетов, которые могут быть обновлены, для команды N. Например, <code>$pkgcount0</code></li>
<li>тег <code>$customN</code> - возвращает результат своей команды N. Например, <code>$custom0</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> </ul>
<p>Порядок полей изменится, если вы измените позицию слайдеров. HTML теги в полях работают корректно.</p> <p>Порядок полей изменится, если вы измените позицию слайдеров. HTML теги в полях работают корректно.</p>
@ -73,6 +76,10 @@
<h2>Расширенные настройки</h2> <h2>Расширенные настройки</h2>
<p><strong>Включить фон</strong></p>
<p>Снимите галочку, чтобы отключить стандартный фон виджета и установить прозрачный.</p>
<p><strong>Вертикальная разметка</strong></p> <p><strong>Вертикальная разметка</strong></p>
<p>Использовать вертикальную разметку вместо горизонтальной.</p> <p>Использовать вертикальную разметку вместо горизонтальной.</p>
@ -173,6 +180,10 @@
<p>Команды, которые будут запущены для соответствующего поля.</p> <p>Команды, которые будут запущены для соответствующего поля.</p>
<p><strong>Комадна для определения рабочего стола</strong></p>
<p>Введите команду, которая будет запущеная для desktop DataEngine. По умолчанию <code>qdbus org.kde.kwin /KWin currentDesktop</code>.</p>
<p><strong>Устройство GPU</strong></p> <p><strong>Устройство GPU</strong></p>
<p>Выберите одно из поддерживаемых устройств GPU. <code>auto</code> включит автоматическое определение, <code>disable</code> отключит все мониторы GPU. По умолчанию <code>auto</code>.</p> <p>Выберите одно из поддерживаемых устройств GPU. <code>auto</code> включит автоматическое определение, <code>disable</code> отключит все мониторы GPU. По умолчанию <code>auto</code>.</p>
@ -210,9 +221,40 @@
<p>Выберите один из поддерживаемых музыкальных плееров.</p> <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> <h1>Инструкция</h1>