diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..2a630fd
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+sources/build
+sources/usr
+*-src.tar.xz
diff --git a/PKGBUILD b/PKGBUILD
index 7dcfea9..3426578 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,10 +3,8 @@
pkgname=kdeplasma-applets-pytextmonitor
_pkgname=py-text-monitor
-pkgver=1.5.3
+pkgver=1.6.0
pkgrel=1
-_dtengine=ext-sysmon
-_dtver=1.6
pkgdesc="Minimalistic Plasmoid script written on Python2. It looks like widgets in awesome-wm"
arch=('i686' 'x86_64')
url="http://arcanis.name/projects/pytextmonitor"
@@ -19,41 +17,24 @@ optdepends=("hddtemp: for HDD temperature monitor"
"mpd: for music player monitor"
"qmmp: for music player monitor")
makedepends=('automoc4' 'cmake')
-source=(https://github.com/arcan1s/pytextmonitor/releases/download/V.${pkgver}/${_pkgname}-${pkgver}.plasmoid
- https://github.com/arcan1s/pytextmonitor/releases/download/V.${pkgver}/${_dtengine}-${_dtver}.zip)
+source=(https://github.com/arcan1s/pytextmonitor/releases/download/V.${pkgver}/${_pkgname}-${pkgver}.tar.xz)
install=${pkgname}.install
-md5sums=('7fef048a8e000ccf9a1e5f0924f59cc2'
- '74f42444a2bddce898d462045c3dbd44')
+md5sums=('335940e39c41ed7d81a251d1d04c18c4')
backup=('usr/share/config/extsysmon.conf')
build () {
- # build dataengine
- if [[ -d ${srcdir}/${_dtengine}/build ]]; then
- rm -rf "${srcdir}/${_dtengine}/build"
+ if [[ -d ${srcdir}/build ]]; then
+ rm -rf "${srcdir}/build"
fi
- mkdir "${srcdir}/${_dtengine}/build"
- cd "${srcdir}/${_dtengine}/build"
+ mkdir "${srcdir}/build"
+ cd "${srcdir}/build"
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` \
- ../
+ "../${_pkgname}"
make
}
package() {
- # install dataengine
- cd "${srcdir}/${_dtengine}/build"
+ cd "${srcdir}/build"
make DESTDIR="${pkgdir}" install
-
- # install plasmoid
- install -D -m644 "${srcdir}/contents/code/plasma_applet_pytextmonitor.notifyrc" \
- "${pkgdir}/`kde4-config --prefix`/share/apps/plasma_applet_pytextmonitor/plasma_applet_pytextmonitor.notifyrc"
- install -D -m644 "${srcdir}/metadata.desktop" \
- "${pkgdir}/`kde4-config --prefix`/share/kde4/services/${_pkgname}.desktop"
- install -D -m644 "${srcdir}/metadata.desktop" \
- "${pkgdir}/`kde4-config --prefix`/share/apps/plasma/plasmoids/${_pkgname}/metadata.desktop"
- mkdir -p "${pkgdir}/`kde4-config --prefix`/share/apps/plasma/plasmoids/${_pkgname}/contents/"{code,ui}
- install -m644 "${srcdir}/contents/code/"* \
- -t "${pkgdir}/`kde4-config --prefix`/share/apps/plasma/plasmoids/${_pkgname}/contents/code"
- install -m644 "${srcdir}/contents/ui/"* \
- -t "${pkgdir}/`kde4-config --prefix`/share/apps/plasma/plasmoids/${_pkgname}/contents/ui"
}
diff --git a/create_archive.sh b/create_archive.sh
index b4ad3dd..fd5ae0d 100755
--- a/create_archive.sh
+++ b/create_archive.sh
@@ -1,30 +1,33 @@
#!/bin/bash
+SRCDIR="sources"
+VERSION=$(grep -m1 PROJECT_VERSION_MAJOR sources/CMakeLists.txt | awk '{print $3}' | cut -c 1).\
+$(grep -m1 PROJECT_VERSION_MINOR sources/CMakeLists.txt | awk '{print $3}' | cut -c 1).\
+$(grep -m1 PROJECT_VERSION_PATCH sources/CMakeLists.txt | awk '{print $3}' | cut -c 1)
+
# build dataengine
ARCHIVE="ext-sysmon"
-VERSION=`grep Version ext-sysmon/plasma-engine-extsysmon.desktop | awk -F "=" '{print $2}'`
# create archive
-if [ -e ${ARCHIVE}-${VERSION}.zip ]; then
- rm -f ${ARCHIVE}-${VERSION}.zip
-fi
-zip -9 -y -r -q ${ARCHIVE}-${VERSION}.zip ${ARCHIVE}
-# update md5sum
-MD5SUMS=`md5sum ${ARCHIVE}-${VERSION}.zip | awk '{print $1}'`
-sed -i "/ '[0-9A-Fa-f]*/s/[^'][^)]*/ '${MD5SUMS}'/" PKGBUILD
-sed -i "s/_dtver=[0-9.]*/_dtver=${VERSION}/" PKGBUILD
+[[ -e ${ARCHIVE}-${VERSION}-src.tar.xz ]] && rm -f ${ARCHIVE}-${VERSION}-src.tar.xz
+[[ -d ${ARCHIVE} ]] && rm -rf "${ARCHIVE}"
+cp -r "${SRCDIR}/${ARCHIVE}" "${ARCHIVE}"
+tar cJf "${ARCHIVE}-${VERSION}-src.tar.xz" "${ARCHIVE}"
+rm -rf "${ARCHIVE}"
# build widget
-cd sources
-FILES="contents metadata.desktop plasma_applet_pytextmonitor"
ARCHIVE="py-text-monitor"
-VERSION=`grep Version metadata.desktop | awk -F "=" '{print $2}'`
+FILES="README.md"
+IGNORELIST="build usr"
# create archive
-if [ -e ${ARCHIVE}-${VERSION}.plasmoid ]; then
- rm -f ${ARCHIVE}-${VERSION}.plasmoid
-fi
-zip -9 -y -r -q ../${ARCHIVE}-${VERSION}.plasmoid ${FILES}
-cd ..
+[[ -e ${ARCHIVE}-${VERSION}-src.tar.xz ]] && rm -f "${ARCHIVE}-${VERSION}-src.tar.xz"
+[[ -d ${ARCHIVE} ]] && rm -rf "${ARCHIVE}"
+cp -r "${SRCDIR}" "${ARCHIVE}"
+for FILE in ${FILES[*]}; do cp "$FILE" "${ARCHIVE}"; done
+for FILE in ${IGNORELIST[*]}; do rm -rf "${ARCHIVE}/${FILE}"; done
+tar cJf "${ARCHIVE}-${VERSION}-src.tar.xz" "${ARCHIVE}"
+rm -rf "${ARCHIVE}"
+
# update md5sum
-MD5SUMS=`md5sum ${ARCHIVE}-${VERSION}.plasmoid | awk '{print $1}'`
+MD5SUMS=$(md5sum ${ARCHIVE}-${VERSION}-src.tar.xz | awk '{print $1}')
sed -i "/md5sums=('[0-9A-Fa-f]*/s/[^'][^)]*/md5sums=('${MD5SUMS}'/" PKGBUILD
sed -i "s/pkgver=[0-9.]*/pkgver=${VERSION}/" PKGBUILD
diff --git a/ext-sysmon-1.6.zip b/ext-sysmon-1.6.zip
deleted file mode 100644
index 22b1833..0000000
Binary files a/ext-sysmon-1.6.zip and /dev/null differ
diff --git a/ext-sysmon/CMakeLists.txt b/ext-sysmon/CMakeLists.txt
deleted file mode 100644
index 7a4c687..0000000
--- a/ext-sysmon/CMakeLists.txt
+++ /dev/null
@@ -1,26 +0,0 @@
-# set project name
-project (plasma_engine_extsysmon)
-
-# find required libaries
-find_package (KDE4 REQUIRED)
-include (KDE4Defaults)
-
-add_definitions (${QT_DEFINITIONS}
- ${KDE4_DEFINITIONS})
-include_directories (${CMAKE_SOURCE_DIR}
- ${CMAKE_BINARY_DIR}
- ${KDE4_INCLUDES})
-
-set (PLUGIN_NAME ${PROJECT_NAME})
-file (GLOB PROJECT_DESKTOP *.desktop)
-file (GLOB PROJECT_SRCS *.cpp)
-file (GLOB PROJECT_CONF *.conf)
-
-# make
-kde4_add_plugin (${PLUGIN_NAME} ${PROJECT_SRCS})
-target_link_libraries (${PLUGIN_NAME} ${KDE4_KDECORE_LIBS} ${KDE4_PLASMA_LIBS})
-
-# install
-install (TARGETS ${PLUGIN_NAME} DESTINATION ${PLUGIN_INSTALL_DIR})
-install (FILES ${PROJECT_DESKTOP} DESTINATION ${SERVICES_INSTALL_DIR})
-install (FILES ${PROJECT_CONF} DESTINATION ${CONFIG_INSTALL_DIR})
diff --git a/old_versions/ext-sysmon-1.0.zip b/old_versions/ext-sysmon-1.0.zip
deleted file mode 100644
index 9ceb676..0000000
Binary files a/old_versions/ext-sysmon-1.0.zip and /dev/null differ
diff --git a/old_versions/ext-sysmon-1.2.zip b/old_versions/ext-sysmon-1.2.zip
deleted file mode 100644
index bd3d302..0000000
Binary files a/old_versions/ext-sysmon-1.2.zip and /dev/null differ
diff --git a/old_versions/ext-sysmon-1.4.zip b/old_versions/ext-sysmon-1.4.zip
deleted file mode 100644
index a570ff9..0000000
Binary files a/old_versions/ext-sysmon-1.4.zip and /dev/null differ
diff --git a/old_versions/install_ext-sysmon-1.0.sh b/old_versions/install_ext-sysmon-1.0.sh
deleted file mode 100755
index b08f442..0000000
--- a/old_versions/install_ext-sysmon-1.0.sh
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-plasmapkg -t dataengine -i ext-sysmon-1.0.zip
diff --git a/old_versions/py-text-monitor-1.3.6.plasmoid b/old_versions/py-text-monitor-1.3.6.plasmoid
deleted file mode 100644
index d180e28..0000000
Binary files a/old_versions/py-text-monitor-1.3.6.plasmoid and /dev/null differ
diff --git a/old_versions/py-text-monitor-1.4.0.plasmoid b/old_versions/py-text-monitor-1.4.0.plasmoid
deleted file mode 100644
index f68d388..0000000
Binary files a/old_versions/py-text-monitor-1.4.0.plasmoid and /dev/null differ
diff --git a/old_versions/pytextmonitor-0.9.plasmoid b/old_versions/pytextmonitor-0.9.plasmoid
deleted file mode 100644
index 4f8f8aa..0000000
Binary files a/old_versions/pytextmonitor-0.9.plasmoid and /dev/null differ
diff --git a/old_versions/pytextmonitor-1.0.0.plasmoid b/old_versions/pytextmonitor-1.0.0.plasmoid
deleted file mode 100644
index b25c007..0000000
Binary files a/old_versions/pytextmonitor-1.0.0.plasmoid and /dev/null differ
diff --git a/old_versions/pytextmonitor-1.1.4.plasmoid b/old_versions/pytextmonitor-1.1.4.plasmoid
deleted file mode 100644
index 35e8008..0000000
Binary files a/old_versions/pytextmonitor-1.1.4.plasmoid and /dev/null differ
diff --git a/old_versions/pytextmonitor-1.2.2.plasmoid b/old_versions/pytextmonitor-1.2.2.plasmoid
deleted file mode 100644
index 7108777..0000000
Binary files a/old_versions/pytextmonitor-1.2.2.plasmoid and /dev/null differ
diff --git a/old_versions/pytextmonitor-1.3.1-unstable.plasmoid b/old_versions/pytextmonitor-1.3.1-unstable.plasmoid
deleted file mode 100644
index 3cfb636..0000000
Binary files a/old_versions/pytextmonitor-1.3.1-unstable.plasmoid and /dev/null differ
diff --git a/py-text-monitor-1.5.3.plasmoid b/py-text-monitor-1.5.3.plasmoid
deleted file mode 100644
index 061aa74..0000000
Binary files a/py-text-monitor-1.5.3.plasmoid and /dev/null differ
diff --git a/sources/CMakeLists.txt b/sources/CMakeLists.txt
new file mode 100644
index 0000000..d12cebb
--- /dev/null
+++ b/sources/CMakeLists.txt
@@ -0,0 +1,27 @@
+cmake_minimum_required (VERSION 2.8)
+
+cmake_policy (SET CMP0003 OLD)
+cmake_policy (SET CMP0002 OLD)
+cmake_policy (SET CMP0011 NEW)
+cmake_policy (SET CMP0015 NEW)
+
+project (py-text-monitor)
+set (PROJECT_VERSION_MAJOR 1)
+set (PROJECT_VERSION_MINOR 6)
+set (PROJECT_VERSION_PATCH 0)
+set (PROJECT_VERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH})
+
+message (STATUS "Version: ${PROJECT_VERSION}")
+
+# flags
+if (CMAKE_COMPILER_IS_GNUCXX)
+ set (ADD_CXX_FLAGS "-Wall")
+ set (CMAKE_CXX_FLAGS "-O0 ${ADD_CXX_FLAGS}")
+ set (CMAKE_CXX_FLAGS_DEBUG "-g -O0")
+ set (CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG")
+else ()
+ message (STATUS "Unknown compiler")
+endif ()
+
+add_subdirectory (ext-sysmon)
+add_subdirectory (ptm)
diff --git a/sources/ext-sysmon/CMakeLists.txt b/sources/ext-sysmon/CMakeLists.txt
new file mode 100644
index 0000000..491c15e
--- /dev/null
+++ b/sources/ext-sysmon/CMakeLists.txt
@@ -0,0 +1,27 @@
+# set project name
+set (SUBPROJECT plasma_engine_extsysmon)
+
+# find required libaries
+find_package (KDE4 REQUIRED)
+include (KDE4Defaults)
+
+add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
+include_directories (${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${KDE4_INCLUDES} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}/../)
+
+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_CONF *.conf)
+
+# prepare
+configure_file (${SUBPROJECT_DESKTOP_IN} ${CMAKE_CURRENT_BINARY_DIR}/${SUBPROJECT_DESKTOP})
+
+# make
+kde4_add_plugin (${PLUGIN_NAME} ${SUBPROJECT_SOURCE})
+target_link_libraries (${PLUGIN_NAME} ${KDE4_KDECORE_LIBS} ${KDE4_PLASMA_LIBS})
+
+# install
+install (TARGETS ${PLUGIN_NAME} DESTINATION ${PLUGIN_INSTALL_DIR})
+install (FILES ${CMAKE_CURRENT_BINARY_DIR}/${SUBPROJECT_DESKTOP} DESTINATION ${SERVICES_INSTALL_DIR})
+install (FILES ${SUBPROJECT_CONF} DESTINATION ${CONFIG_INSTALL_DIR})
diff --git a/ext-sysmon/extsysmon.conf b/sources/ext-sysmon/extsysmon.conf
similarity index 100%
rename from ext-sysmon/extsysmon.conf
rename to sources/ext-sysmon/extsysmon.conf
diff --git a/ext-sysmon/extsysmon.cpp b/sources/ext-sysmon/extsysmon.cpp
similarity index 100%
rename from ext-sysmon/extsysmon.cpp
rename to sources/ext-sysmon/extsysmon.cpp
diff --git a/ext-sysmon/extsysmon.h b/sources/ext-sysmon/extsysmon.h
similarity index 100%
rename from ext-sysmon/extsysmon.h
rename to sources/ext-sysmon/extsysmon.h
diff --git a/ext-sysmon/plasma-engine-extsysmon.desktop b/sources/ext-sysmon/plasma-engine-extsysmon.desktop
similarity index 93%
rename from ext-sysmon/plasma-engine-extsysmon.desktop
rename to sources/ext-sysmon/plasma-engine-extsysmon.desktop
index caa4567..714e554 100644
--- a/ext-sysmon/plasma-engine-extsysmon.desktop
+++ b/sources/ext-sysmon/plasma-engine-extsysmon.desktop
@@ -13,7 +13,7 @@ X-Plasma-EngineName=ext-sysmon
X-KDE-PluginInfo-Author=Evgeniy Alekseev aka arcanis
X-KDE-PluginInfo-Email=esalexeev@gmail.com
X-KDE-PluginInfo-Name=ext-sysmon
-X-KDE-PluginInfo-Version=1.6
+X-KDE-PluginInfo-Version=@PROJECT_VERSION@
X-KDE-PluginInfo-Category=System Information
X-KDE-PluginInfo-Depends=
X-KDE-PluginInfo-License=GPL
diff --git a/sources/ptm/CMakeLists.txt b/sources/ptm/CMakeLists.txt
new file mode 100644
index 0000000..02a6a07
--- /dev/null
+++ b/sources/ptm/CMakeLists.txt
@@ -0,0 +1,33 @@
+# set project name
+set (SUBPROJECT py-text-monitor)
+# for notifications
+set (PLUGIN_NAME plasma_applet_pytextmonitor)
+message (STATUS "Subproject ${SUBPROJECT}")
+
+# find required libaries
+find_package (KDE4 REQUIRED)
+include (KDE4Defaults)
+
+add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
+include_directories (${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${KDE4_INCLUDES} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}/../)
+
+add_subdirectory (po)
+
+# set sources
+set (SUBPROJECT_CODE_DIR "contents/code")
+set (SUBPROJECT_UI_DIR "contents/ui")
+file (GLOB SUBPROJECT_DESKTOP_IN *.desktop)
+file (RELATIVE_PATH SUBPROJECT_DESKTOP ${CMAKE_SOURCE_DIR} ${SUBPROJECT_DESKTOP_IN})
+file (GLOB SUBPROJECT_NOTIFY *.notifyrc)
+file (GLOB SUBPROJECT_SOURCE ${SUBPROJECT_CODE_DIR}/*.py)
+file (GLOB SUBPROJECT_UI ${SUBPROJECT_UI_DIR}/*.ui)
+
+# prepare
+configure_file (${SUBPROJECT_DESKTOP_IN} ${CMAKE_CURRENT_BINARY_DIR}/${SUBPROJECT_DESKTOP})
+
+# install
+install (FILES ${SUBPROJECT_SOURCE} DESTINATION "share/apps/plasma/plasmoids/${SUBPROJECT}/${SUBPROJECT_CODE_DIR}")
+install (FILES ${SUBPROJECT_UI} DESTINATION "share/apps/plasma/plasmoids/${SUBPROJECT}/${SUBPROJECT_UI_DIR}")
+install (FILES ${CMAKE_CURRENT_BINARY_DIR}/${SUBPROJECT_DESKTOP} DESTINATION ${SERVICES_INSTALL_DIR} RENAME ${SUBPROJECT}.desktop)
+install (FILES ${CMAKE_CURRENT_BINARY_DIR}/${SUBPROJECT_DESKTOP} DESTINATION "share/apps/plasma/plasmoids/${SUBPROJECT}")
+install (FILES ${SUBPROJECT_NOTIFY} DESTINATION ${DATA_INSTALL_DIR}/${PLUGIN_NAME})
diff --git a/sources/contents/code/config.py b/sources/ptm/contents/code/config.py
similarity index 100%
rename from sources/contents/code/config.py
rename to sources/ptm/contents/code/config.py
diff --git a/sources/contents/code/configdef.py b/sources/ptm/contents/code/configdef.py
similarity index 100%
rename from sources/contents/code/configdef.py
rename to sources/ptm/contents/code/configdef.py
diff --git a/sources/contents/code/configwindow.py b/sources/ptm/contents/code/configwindow.py
similarity index 100%
rename from sources/contents/code/configwindow.py
rename to sources/ptm/contents/code/configwindow.py
diff --git a/sources/contents/code/dataengine.py b/sources/ptm/contents/code/dataengine.py
similarity index 100%
rename from sources/contents/code/dataengine.py
rename to sources/ptm/contents/code/dataengine.py
diff --git a/sources/contents/code/main.py b/sources/ptm/contents/code/main.py
similarity index 100%
rename from sources/contents/code/main.py
rename to sources/ptm/contents/code/main.py
diff --git a/sources/contents/code/ptmnotify.py b/sources/ptm/contents/code/ptmnotify.py
similarity index 100%
rename from sources/contents/code/ptmnotify.py
rename to sources/ptm/contents/code/ptmnotify.py
diff --git a/sources/contents/code/reinit.py b/sources/ptm/contents/code/reinit.py
similarity index 99%
rename from sources/contents/code/reinit.py
rename to sources/ptm/contents/code/reinit.py
index 79f0694..330f229 100644
--- a/sources/contents/code/reinit.py
+++ b/sources/ptm/contents/code/reinit.py
@@ -324,6 +324,7 @@ class Reinit():
self.parent.label_time.setText(text)
self.parent.layout.addItem(self.parent.label_time)
if not confAccept:
+ self.parent.layout.setContentsMargins(0, 0, 0, 0)
self.parent.applet.setLayout(self.parent.layout)
self.parent.theme = Plasma.Svg(self.parent)
self.parent.theme.setImagePath("widgets/background")
diff --git a/sources/contents/code/util.py b/sources/ptm/contents/code/util.py
similarity index 100%
rename from sources/contents/code/util.py
rename to sources/ptm/contents/code/util.py
diff --git a/sources/contents/ui/configwindow.ui b/sources/ptm/contents/ui/configwindow.ui
similarity index 95%
rename from sources/contents/ui/configwindow.ui
rename to sources/ptm/contents/ui/configwindow.ui
index 1102b45..6dfe91a 100644
--- a/sources/contents/ui/configwindow.ui
+++ b/sources/ptm/contents/ui/configwindow.ui
@@ -53,7 +53,7 @@
- Time
+ Time
true
@@ -63,7 +63,7 @@
-
- $time - time in default format
+ $time - time in default format
$isotime - time in ISO format
$shorttime - time in short format
$longtime - time in log format
@@ -117,7 +117,7 @@ $custom: $dddd - long weekday; $ddd - short weekday; $dd - day; $d day w\o zero;
- Uptime
+ Uptime
true
@@ -127,7 +127,7 @@ $custom: $dddd - long weekday; $ddd - short weekday; $dd - day; $d day w\o zero;
-
- $uptime - system uptime
+ $uptime - system uptime
$custom: $ds - uptime days; $hs - uptime hours; $ms - uptime minutes
@@ -176,7 +176,7 @@ $custom: $ds - uptime days; $hs - uptime hours; $ms - uptime minutes
- CPU
+ CPU
true
@@ -186,7 +186,7 @@ $custom: $ds - uptime days; $hs - uptime hours; $ms - uptime minutes
-
- $cpu - total load CPU, %
+ $cpu - total load CPU, %
$ccpu - load CPU for each core, %
@@ -235,7 +235,7 @@ $ccpu - load CPU for each core, %
- CPU Clock
+ CPU Clock
true
@@ -245,7 +245,7 @@ $ccpu - load CPU for each core, %
-
- $cpucl - average CPU clock, MHz
+ $cpucl - average CPU clock, MHz
$ccpucl - CPU clock for each core, MHz
@@ -294,7 +294,7 @@ $ccpucl - CPU clock for each core, MHz
- Temperature
+ Temperature
true
@@ -317,7 +317,7 @@ $ccpucl - CPU clock for each core, MHz
-
- $temp - physical temperature on CPU
+ $temp - physical temperature on CPU
Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter
@@ -365,7 +365,7 @@ $ccpucl - CPU clock for each core, MHz
- GPU
+ GPU
true
@@ -375,7 +375,7 @@ $ccpucl - CPU clock for each core, MHz
-
- $gpu - gpu usage, %
+ $gpu - gpu usage, %
Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter
@@ -423,7 +423,7 @@ $ccpucl - CPU clock for each core, MHz
- GPU Temp
+ GPU Temp
true
@@ -433,7 +433,7 @@ $ccpucl - CPU clock for each core, MHz
-
- $gputemp - physical temperature on GPU
+ $gputemp - physical temperature on GPU
Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter
@@ -481,7 +481,7 @@ $ccpucl - CPU clock for each core, MHz
- Memory
+ Memory
true
@@ -491,7 +491,7 @@ $ccpucl - CPU clock for each core, MHz
-
- $mem - RAM usage, %
+ $mem - RAM usage, %
$memmb - RAM usage, MB
@@ -540,7 +540,7 @@ $memmb - RAM usage, MB
- Swap
+ Swap
true
@@ -550,7 +550,7 @@ $memmb - RAM usage, MB
-
- $swap - swap usage, %
+ $swap - swap usage, %
$swapmb - swap usage, MB
@@ -599,7 +599,7 @@ $swapmb - swap usage, MB
- HDD
+ HDD
true
@@ -609,7 +609,7 @@ $swapmb - swap usage, MB
-
- @@/;@@ - mount point usage, %
+ @@/;@@ - mount point usage, %
Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter
@@ -657,7 +657,7 @@ $swapmb - swap usage, MB
- HDD Temp
+ HDD Temp
true
@@ -667,7 +667,7 @@ $swapmb - swap usage, MB
-
- @@/dev/sda@@ - physical temperature on /dev/sda
+ @@/dev/sda@@ - physical temperature on /dev/sda
Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter
@@ -715,7 +715,7 @@ $swapmb - swap usage, MB
- Network
+ Network
true
@@ -725,7 +725,7 @@ $swapmb - swap usage, MB
-
- $net - network speed, down/up, KB/s
+ $net - network speed, down/up, KB/s
$netdev - current network device
@@eth0@@ - disable auto select device and set specified device
@@ -775,7 +775,7 @@ $netdev - current network device
- Battery
+ Battery
true
@@ -785,7 +785,7 @@ $netdev - current network device
-
- $bat - battery charge, %
+ $bat - battery charge, %
$ac - AC status
@@ -857,7 +857,7 @@ $ac - AC status
-
- "/sys/class/power_supply/BAT0/capacity" by default
+ "/sys/class/power_supply/BAT0/capacity" by default
Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter
@@ -900,7 +900,7 @@ $ac - AC status
-
- "/sys/class/power_supply/AC/online" by default
+ "/sys/class/power_supply/AC/online" by default
Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter
@@ -920,7 +920,7 @@ $ac - AC status
- Music player
+ Music player
true
@@ -955,7 +955,7 @@ $ac - AC status
-
- $album - song album
+ $album - song album
$artist - song artist
$progress - song progress
$time - song duration
@@ -1027,7 +1027,7 @@ $title - song title
- Time interval
+ Time interval
@@ -1082,7 +1082,7 @@ $title - song title
- Font
+ Font
@@ -1122,7 +1122,7 @@ $title - song title
- Font size
+ Font size
@@ -1177,7 +1177,7 @@ $title - song title
- Font color
+ Font color
@@ -1217,7 +1217,7 @@ $title - song title
- Font style
+ Font style
@@ -1267,7 +1267,7 @@ $title - song title
- Font weight
+ Font weight
diff --git a/sources/metadata.desktop b/sources/ptm/metadata.desktop
similarity index 92%
rename from sources/metadata.desktop
rename to sources/ptm/metadata.desktop
index ef8dfa3..aeb68dc 100644
--- a/sources/metadata.desktop
+++ b/sources/ptm/metadata.desktop
@@ -12,7 +12,7 @@ X-Plasma-RequiredExtensions=LaunchApp,LocalIO,FileDialog
X-KDE-PluginInfo-Author=Evgeniy Alekseev aka arcanis
X-KDE-PluginInfo-Email=esalexeev@gmail.com
X-KDE-PluginInfo-Name=py-text-monitor
-X-KDE-PluginInfo-Version=1.5.3
+X-KDE-PluginInfo-Version=@PROJECT_VERSION@
X-KDE-PluginInfo-Website=http://kde-look.org/
X-KDE-PluginInfo-Category=System Information
X-KDE-PluginInfo-Depends=
diff --git a/sources/contents/code/plasma_applet_pytextmonitor.notifyrc b/sources/ptm/plasma_applet_pytextmonitor.notifyrc
similarity index 100%
rename from sources/contents/code/plasma_applet_pytextmonitor.notifyrc
rename to sources/ptm/plasma_applet_pytextmonitor.notifyrc
diff --git a/sources/ptm/po/CMakeLists.txt b/sources/ptm/po/CMakeLists.txt
new file mode 100644
index 0000000..fa3ba93
--- /dev/null
+++ b/sources/ptm/po/CMakeLists.txt
@@ -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 py-text-monitor.mo)
+ list (APPEND _gmoFiles ${_gmoFile})
+endforeach (_current_PO_FILE)
+add_custom_target (pofiles ALL DEPENDS ${_gmoFiles})
diff --git a/sources/ptm/po/create_list_files.sh b/sources/ptm/po/create_list_files.sh
new file mode 100755
index 0000000..16453d6
--- /dev/null
+++ b/sources/ptm/po/create_list_files.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+WDIR=`pwd` # working dir
+SATELLITE_LIST=satellite.list
+BACKGROUND_LIST=background.list
+
+# Background list
+cd "$WDIR"
+cd ../images
+ls -1 background_* | sed -e "s/background_//g" | sed -e "s/_/ /g" | sed -e "s/\.jpg//g" | sed -e "s/\.png//g" | sed -e "s/\.gif//g" | grep -v '^$' | sort --unique --ignore-leading-blanks > "$WDIR/background.list"
+
+# Satellite list
+cd "$WDIR"
+cd ../data
+cat satellite_images.xml | grep image\ name | sed -e "s/.*/g" | grep -v '^$' | sort --unique --ignore-leading-blanks > "$WDIR/satellite.list"
diff --git a/sources/ptm/po/en.po b/sources/ptm/po/en.po
new file mode 100644
index 0000000..cc43869
--- /dev/null
+++ b/sources/ptm/po/en.po
@@ -0,0 +1,364 @@
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+#
+# Evgeniy Alekseev , 2014.
+msgid ""
+msgstr ""
+"Project-Id-Version: \n"
+"Report-Msgid-Bugs-To: http://kde-look.org/content/show.php?content=157124\n"
+"POT-Creation-Date: 2014-03-30 13:27+0400\n"
+"PO-Revision-Date: 2014-03-30 13:28+0400\n"
+"Last-Translator: Evgeniy Alekseev \n"
+"Language-Team: Russian \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"
+
+#. i18n: file: ui/configwindow.ui:32
+#. i18n: ectx: property (windowTitle), widget (QWidget, ConfigWindow)
+#: rc.cpp:3
+msgid "Form"
+msgstr "Form"
+
+#. i18n: file: ui/configwindow.ui:42
+#. i18n: ectx: attribute (title), widget (QWidget, settings)
+#: rc.cpp:6
+msgid "Widget settings"
+msgstr "Widget settings"
+
+#. i18n: file: ui/configwindow.ui:56
+#. i18n: ectx: property (text), widget (QCheckBox, checkBox_time)
+#: rc.cpp:9
+msgid "Time"
+msgstr "Time"
+
+#. i18n: file: ui/configwindow.ui:75
+#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_time)
+#: rc.cpp:12
+msgid ""
+"$time - time in default format\n"
+"$isotime - time in ISO format\n"
+"$shorttime - time in short format\n"
+"$longtime - time in log format\n"
+"$custom: $dddd - long weekday; $ddd - short weekday; $dd - day; $d day w\\o "
+"zero; \n"
+"\t$MMMM - long month; $MMM - short month; $MM - month; $M - month w\\o "
+"zero; \n"
+"\t$yyyy - year; $yy short year; \n"
+"\t$hh - hours (24 only); $h - hours w\\o zero (24 only); \n"
+"\t$mm - minutes; $m - minutes w\\o zero;\n"
+"\t$ss - seconds; $s - seconds w\\o zero"
+msgstr ""
+"$time - time in default format\n"
+"$isotime - time in ISO format\n"
+"$shorttime - time in short format\n"
+"$longtime - time in log format\n"
+"$custom: $dddd - long weekday; $ddd - short weekday; $dd - day; $d day w\\o "
+"zero; \n"
+"\t$MMMM - long month; $MMM - short month; $MM - month; $M - month w\\o "
+"zero; \n"
+"\t$yyyy - year; $yy short year; \n"
+"\t$hh - hours (24 only); $h - hours w\\o zero (24 only); \n"
+"\t$mm - minutes; $m - minutes w\\o zero;\n"
+"\t$ss - seconds; $s - seconds w\\o zero"
+
+#. i18n: file: ui/configwindow.ui:120
+#. i18n: ectx: property (text), widget (QCheckBox, checkBox_uptime)
+#: rc.cpp:24
+msgid "Uptime"
+msgstr "Uptime"
+
+#. i18n: file: ui/configwindow.ui:131
+#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_uptime)
+#: rc.cpp:27
+msgid ""
+"$uptime - system uptime\n"
+"$custom: $ds - uptime days; $hs - uptime hours; $ms - uptime minutes"
+msgstr ""
+"$uptime - system uptime\n"
+"$custom: $ds - uptime days; $hs - uptime hours; $ms - uptime minutes"
+
+#. i18n: file: ui/configwindow.ui:179
+#. i18n: ectx: property (text), widget (QCheckBox, checkBox_cpu)
+#: rc.cpp:31
+msgid "CPU"
+msgstr "CPU"
+
+#. i18n: file: ui/configwindow.ui:190
+#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_cpu)
+#: rc.cpp:35
+#, no-c-format
+msgid ""
+"$cpu - total load CPU, %\n"
+"$ccpu - load CPU for each core, %"
+msgstr ""
+"$cpu - total load CPU, %\n"
+"$ccpu - load CPU for each core, %"
+
+#. i18n: file: ui/configwindow.ui:238
+#. i18n: ectx: property (text), widget (QCheckBox, checkBox_cpuclock)
+#: rc.cpp:39
+msgid "CPU Clock"
+msgstr "CPU Clock"
+
+#. i18n: file: ui/configwindow.ui:249
+#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_cpuclock)
+#: rc.cpp:42
+msgid ""
+"$cpucl - average CPU clock, MHz\n"
+"$ccpucl - CPU clock for each core, MHz"
+msgstr ""
+"$cpucl - average CPU clock, MHz\n"
+"$ccpucl - CPU clock for each core, MHz"
+
+#. i18n: file: ui/configwindow.ui:297
+#. i18n: ectx: property (text), widget (QCheckBox, checkBox_temp)
+#: rc.cpp:46
+msgid "Temperature"
+msgstr "Temperature"
+
+#. i18n: file: ui/configwindow.ui:320
+#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_temp)
+#: rc.cpp:49
+msgid "$temp - physical temperature on CPU"
+msgstr "$temp - physical temperature on CPU"
+
+#. i18n: file: ui/configwindow.ui:368
+#. i18n: ectx: property (text), widget (QCheckBox, checkBox_gpu)
+#: rc.cpp:52
+msgid "GPU"
+msgstr "GPU"
+
+#. i18n: file: ui/configwindow.ui:378
+#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_gpu)
+#: rc.cpp:56
+#, no-c-format
+msgid "$gpu - gpu usage, %"
+msgstr "$gpu - gpu usage, %"
+
+#. i18n: file: ui/configwindow.ui:426
+#. i18n: ectx: property (text), widget (QCheckBox, checkBox_gpuTemp)
+#: rc.cpp:59
+msgid "GPU Temp"
+msgstr "GPU Temp"
+
+#. i18n: file: ui/configwindow.ui:436
+#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_gpuTemp)
+#: rc.cpp:62
+msgid "$gputemp - physical temperature on GPU"
+msgstr "$gputemp - physical temperature on GPU"
+
+#. i18n: file: ui/configwindow.ui:484
+#. i18n: ectx: property (text), widget (QCheckBox, checkBox_mem)
+#: rc.cpp:65
+msgid "Memory"
+msgstr "Memory"
+
+#. i18n: file: ui/configwindow.ui:495
+#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_mem)
+#: rc.cpp:69
+#, no-c-format
+msgid ""
+"$mem - RAM usage, %\n"
+"$memmb - RAM usage, MB"
+msgstr ""
+"$mem - RAM usage, %\n"
+"$memmb - RAM usage, MB"
+
+#. i18n: file: ui/configwindow.ui:543
+#. i18n: ectx: property (text), widget (QCheckBox, checkBox_swap)
+#: rc.cpp:73
+msgid "Swap"
+msgstr "Swap"
+
+#. i18n: file: ui/configwindow.ui:554
+#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_swap)
+#: rc.cpp:77
+#, no-c-format
+msgid ""
+"$swap - swap usage, %\n"
+"$swapmb - swap usage, MB"
+msgstr ""
+"$swap - swap usage, %\n"
+"$swapmb - swap usage, MB"
+
+#. i18n: file: ui/configwindow.ui:602
+#. i18n: ectx: property (text), widget (QCheckBox, checkBox_hdd)
+#: rc.cpp:81
+msgid "HDD"
+msgstr "HDD"
+
+#. i18n: file: ui/configwindow.ui:612
+#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_hdd)
+#: rc.cpp:85
+#, no-c-format
+msgid "@@/;@@ - mount point usage, %"
+msgstr "@@/;@@ - mount point usage, %"
+
+#. i18n: file: ui/configwindow.ui:660
+#. i18n: ectx: property (text), widget (QCheckBox, checkBox_hddTemp)
+#: rc.cpp:88
+msgid "HDD Temp"
+msgstr "HDD Temp"
+
+#. i18n: file: ui/configwindow.ui:670
+#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_hddTemp)
+#: rc.cpp:91
+msgid "@@/dev/sda@@ - physical temperature on /dev/sda"
+msgstr "@@/dev/sda@@ - physical temperature on /dev/sda"
+
+#. i18n: file: ui/configwindow.ui:718
+#. i18n: ectx: property (text), widget (QCheckBox, checkBox_net)
+#: rc.cpp:94
+msgid "Network"
+msgstr "Network"
+
+#. i18n: file: ui/configwindow.ui:730
+#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_net)
+#: rc.cpp:97
+msgid ""
+"$net - network speed, down/up, KB/s\n"
+"$netdev - current network device\n"
+"@@eth0@@ - disable auto select device and set specified device"
+msgstr ""
+"$net - network speed, down/up, KB/s\n"
+"$netdev - current network device\n"
+"@@eth0@@ - disable auto select device and set specified device"
+
+#. i18n: file: ui/configwindow.ui:778
+#. i18n: ectx: property (text), widget (QCheckBox, checkBox_bat)
+#: rc.cpp:102
+msgid "Battery"
+msgstr "Battery"
+
+#. i18n: file: ui/configwindow.ui:789
+#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_bat)
+#: rc.cpp:106
+#, no-c-format
+msgid ""
+"$bat - battery charge, %\n"
+"$ac - AC status"
+msgstr ""
+"$bat - battery charge, %\n"
+"$ac - AC status"
+
+#. i18n: file: ui/configwindow.ui:853
+#. i18n: ectx: property (text), widget (QLabel, label_batdev)
+#: rc.cpp:110
+msgid "Battery device"
+msgstr "Battery device"
+
+#. i18n: file: ui/configwindow.ui:860
+#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_batdev)
+#: rc.cpp:113
+msgid "\"/sys/class/power_supply/BAT0/capacity\" by default"
+msgstr "\"/sys/class/power_supply/BAT0/capacity\" by default"
+
+#. i18n: file: ui/configwindow.ui:896
+#. i18n: ectx: property (text), widget (QLabel, label_acdev)
+#: rc.cpp:116
+msgid "AC device"
+msgstr "AC device"
+
+#. i18n: file: ui/configwindow.ui:903
+#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_acdev)
+#: rc.cpp:119
+msgid "\"/sys/class/power_supply/AC/online\" by default"
+msgstr "\"/sys/class/power_supply/AC/online\" by default"
+
+#. i18n: file: ui/configwindow.ui:923
+#. i18n: ectx: property (text), widget (QCheckBox, checkBox_player)
+#: rc.cpp:122
+msgid "Music player"
+msgstr "Music player"
+
+#. i18n: file: ui/configwindow.ui:940
+#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_player)
+#: rc.cpp:125
+msgid "amarok"
+msgstr "amarok"
+
+#. i18n: file: ui/configwindow.ui:945
+#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_player)
+#: rc.cpp:128
+msgid "mpd"
+msgstr "mpd"
+
+#. i18n: file: ui/configwindow.ui:950
+#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_player)
+#: rc.cpp:131
+msgid "qmmp"
+msgstr "qmmp"
+
+#. i18n: file: ui/configwindow.ui:962
+#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_player)
+#: rc.cpp:134
+msgid ""
+"$album - song album\n"
+"$artist - song artist\n"
+"$progress - song progress\n"
+"$time - song duration\n"
+"$title - song title"
+msgstr ""
+"$album - song album\n"
+"$artist - song artist\n"
+"$progress - song progress\n"
+"$time - song duration\n"
+"$title - song title"
+
+#. i18n: file: ui/configwindow.ui:1016
+#. i18n: ectx: attribute (title), widget (QWidget, appearance)
+#: rc.cpp:141
+msgid "Appearance"
+msgstr "Appearance"
+
+#. i18n: file: ui/configwindow.ui:1030
+#. i18n: ectx: property (text), widget (QLabel, label_interval)
+#: rc.cpp:144
+msgid "Time interval"
+msgstr "Time interval"
+
+#. i18n: file: ui/configwindow.ui:1085
+#. i18n: ectx: property (text), widget (QLabel, label_font)
+#: rc.cpp:147
+msgid "Font"
+msgstr "Font"
+
+#. i18n: file: ui/configwindow.ui:1125
+#. i18n: ectx: property (text), widget (QLabel, label_fontSize)
+#: rc.cpp:150
+msgid "Font size"
+msgstr "Font size"
+
+#. i18n: file: ui/configwindow.ui:1180
+#. i18n: ectx: property (text), widget (QLabel, label_color)
+#: rc.cpp:153
+msgid "Font color"
+msgstr "Font color"
+
+#. i18n: file: ui/configwindow.ui:1220
+#. i18n: ectx: property (text), widget (QLabel, label_style)
+#: rc.cpp:156
+msgid "Font style"
+msgstr "Font style"
+
+#. i18n: file: ui/configwindow.ui:1270
+#. i18n: ectx: property (text), widget (QLabel, label_weight)
+#: rc.cpp:159
+msgid "Font weight"
+msgstr "Font weight"
+
+#: rc.cpp:160
+msgctxt "NAME OF TRANSLATORS"
+msgid "Your names"
+msgstr "Evgeniy Alekseev"
+
+#: rc.cpp:161
+msgctxt "EMAIL OF TRANSLATORS"
+msgid "Your emails"
+msgstr "esalexeev@gmail.com"
+
diff --git a/sources/ptm/po/extract_messages.sh b/sources/ptm/po/extract_messages.sh
new file mode 100755
index 0000000..eded473
--- /dev/null
+++ b/sources/ptm/po/extract_messages.sh
@@ -0,0 +1,81 @@
+#!/bin/sh
+BASEDIR="../contents" # root of translatable sources
+PROJECT="py-text-monitor" # project name
+BUGADDR="http://kde-look.org/content/show.php?content=157124" # 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"
+
diff --git a/sources/ptm/po/py-text-monitor.pot b/sources/ptm/po/py-text-monitor.pot
new file mode 100644
index 0000000..1968e4b
--- /dev/null
+++ b/sources/ptm/po/py-text-monitor.pot
@@ -0,0 +1,330 @@
+# 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 , YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: http://kde-look.org/content/show.php?content=157124\n"
+"POT-Creation-Date: 2014-03-30 13:27+0400\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME \n"
+"Language-Team: LANGUAGE \n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. i18n: file: ui/configwindow.ui:32
+#. i18n: ectx: property (windowTitle), widget (QWidget, ConfigWindow)
+#: rc.cpp:3
+msgid "Form"
+msgstr ""
+
+#. i18n: file: ui/configwindow.ui:42
+#. i18n: ectx: attribute (title), widget (QWidget, settings)
+#: rc.cpp:6
+msgid "Widget settings"
+msgstr ""
+
+#. i18n: file: ui/configwindow.ui:56
+#. i18n: ectx: property (text), widget (QCheckBox, checkBox_time)
+#: rc.cpp:9
+msgid "Time"
+msgstr ""
+
+#. i18n: file: ui/configwindow.ui:75
+#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_time)
+#: rc.cpp:12
+msgid ""
+"$time - time in default format\n"
+"$isotime - time in ISO format\n"
+"$shorttime - time in short format\n"
+"$longtime - time in log format\n"
+"$custom: $dddd - long weekday; $ddd - short weekday; $dd - day; $d day w\\o "
+"zero; \n"
+"\t$MMMM - long month; $MMM - short month; $MM - month; $M - month w\\o "
+"zero; \n"
+"\t$yyyy - year; $yy short year; \n"
+"\t$hh - hours (24 only); $h - hours w\\o zero (24 only); \n"
+"\t$mm - minutes; $m - minutes w\\o zero;\n"
+"\t$ss - seconds; $s - seconds w\\o zero"
+msgstr ""
+
+#. i18n: file: ui/configwindow.ui:120
+#. i18n: ectx: property (text), widget (QCheckBox, checkBox_uptime)
+#: rc.cpp:24
+msgid "Uptime"
+msgstr ""
+
+#. i18n: file: ui/configwindow.ui:131
+#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_uptime)
+#: rc.cpp:27
+msgid ""
+"$uptime - system uptime\n"
+"$custom: $ds - uptime days; $hs - uptime hours; $ms - uptime minutes"
+msgstr ""
+
+#. i18n: file: ui/configwindow.ui:179
+#. i18n: ectx: property (text), widget (QCheckBox, checkBox_cpu)
+#: rc.cpp:31
+msgid "CPU"
+msgstr ""
+
+#. i18n: file: ui/configwindow.ui:190
+#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_cpu)
+#: rc.cpp:35
+#, no-c-format
+msgid ""
+"$cpu - total load CPU, %\n"
+"$ccpu - load CPU for each core, %"
+msgstr ""
+
+#. i18n: file: ui/configwindow.ui:238
+#. i18n: ectx: property (text), widget (QCheckBox, checkBox_cpuclock)
+#: rc.cpp:39
+msgid "CPU Clock"
+msgstr ""
+
+#. i18n: file: ui/configwindow.ui:249
+#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_cpuclock)
+#: rc.cpp:42
+msgid ""
+"$cpucl - average CPU clock, MHz\n"
+"$ccpucl - CPU clock for each core, MHz"
+msgstr ""
+
+#. i18n: file: ui/configwindow.ui:297
+#. i18n: ectx: property (text), widget (QCheckBox, checkBox_temp)
+#: rc.cpp:46
+msgid "Temperature"
+msgstr ""
+
+#. i18n: file: ui/configwindow.ui:320
+#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_temp)
+#: rc.cpp:49
+msgid "$temp - physical temperature on CPU"
+msgstr ""
+
+#. i18n: file: ui/configwindow.ui:368
+#. i18n: ectx: property (text), widget (QCheckBox, checkBox_gpu)
+#: rc.cpp:52
+msgid "GPU"
+msgstr ""
+
+#. i18n: file: ui/configwindow.ui:378
+#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_gpu)
+#: rc.cpp:56
+#, no-c-format
+msgid "$gpu - gpu usage, %"
+msgstr ""
+
+#. i18n: file: ui/configwindow.ui:426
+#. i18n: ectx: property (text), widget (QCheckBox, checkBox_gpuTemp)
+#: rc.cpp:59
+msgid "GPU Temp"
+msgstr ""
+
+#. i18n: file: ui/configwindow.ui:436
+#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_gpuTemp)
+#: rc.cpp:62
+msgid "$gputemp - physical temperature on GPU"
+msgstr ""
+
+#. i18n: file: ui/configwindow.ui:484
+#. i18n: ectx: property (text), widget (QCheckBox, checkBox_mem)
+#: rc.cpp:65
+msgid "Memory"
+msgstr ""
+
+#. i18n: file: ui/configwindow.ui:495
+#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_mem)
+#: rc.cpp:69
+#, no-c-format
+msgid ""
+"$mem - RAM usage, %\n"
+"$memmb - RAM usage, MB"
+msgstr ""
+
+#. i18n: file: ui/configwindow.ui:543
+#. i18n: ectx: property (text), widget (QCheckBox, checkBox_swap)
+#: rc.cpp:73
+msgid "Swap"
+msgstr ""
+
+#. i18n: file: ui/configwindow.ui:554
+#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_swap)
+#: rc.cpp:77
+#, no-c-format
+msgid ""
+"$swap - swap usage, %\n"
+"$swapmb - swap usage, MB"
+msgstr ""
+
+#. i18n: file: ui/configwindow.ui:602
+#. i18n: ectx: property (text), widget (QCheckBox, checkBox_hdd)
+#: rc.cpp:81
+msgid "HDD"
+msgstr ""
+
+#. i18n: file: ui/configwindow.ui:612
+#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_hdd)
+#: rc.cpp:85
+#, no-c-format
+msgid "@@/;@@ - mount point usage, %"
+msgstr ""
+
+#. i18n: file: ui/configwindow.ui:660
+#. i18n: ectx: property (text), widget (QCheckBox, checkBox_hddTemp)
+#: rc.cpp:88
+msgid "HDD Temp"
+msgstr ""
+
+#. i18n: file: ui/configwindow.ui:670
+#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_hddTemp)
+#: rc.cpp:91
+msgid "@@/dev/sda@@ - physical temperature on /dev/sda"
+msgstr ""
+
+#. i18n: file: ui/configwindow.ui:718
+#. i18n: ectx: property (text), widget (QCheckBox, checkBox_net)
+#: rc.cpp:94
+msgid "Network"
+msgstr ""
+
+#. i18n: file: ui/configwindow.ui:730
+#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_net)
+#: rc.cpp:97
+msgid ""
+"$net - network speed, down/up, KB/s\n"
+"$netdev - current network device\n"
+"@@eth0@@ - disable auto select device and set specified device"
+msgstr ""
+
+#. i18n: file: ui/configwindow.ui:778
+#. i18n: ectx: property (text), widget (QCheckBox, checkBox_bat)
+#: rc.cpp:102
+msgid "Battery"
+msgstr ""
+
+#. i18n: file: ui/configwindow.ui:789
+#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_bat)
+#: rc.cpp:106
+#, no-c-format
+msgid ""
+"$bat - battery charge, %\n"
+"$ac - AC status"
+msgstr ""
+
+#. i18n: file: ui/configwindow.ui:853
+#. i18n: ectx: property (text), widget (QLabel, label_batdev)
+#: rc.cpp:110
+msgid "Battery device"
+msgstr ""
+
+#. i18n: file: ui/configwindow.ui:860
+#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_batdev)
+#: rc.cpp:113
+msgid "\"/sys/class/power_supply/BAT0/capacity\" by default"
+msgstr ""
+
+#. i18n: file: ui/configwindow.ui:896
+#. i18n: ectx: property (text), widget (QLabel, label_acdev)
+#: rc.cpp:116
+msgid "AC device"
+msgstr ""
+
+#. i18n: file: ui/configwindow.ui:903
+#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_acdev)
+#: rc.cpp:119
+msgid "\"/sys/class/power_supply/AC/online\" by default"
+msgstr ""
+
+#. i18n: file: ui/configwindow.ui:923
+#. i18n: ectx: property (text), widget (QCheckBox, checkBox_player)
+#: rc.cpp:122
+msgid "Music player"
+msgstr ""
+
+#. i18n: file: ui/configwindow.ui:940
+#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_player)
+#: rc.cpp:125
+msgid "amarok"
+msgstr ""
+
+#. i18n: file: ui/configwindow.ui:945
+#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_player)
+#: rc.cpp:128
+msgid "mpd"
+msgstr ""
+
+#. i18n: file: ui/configwindow.ui:950
+#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_player)
+#: rc.cpp:131
+msgid "qmmp"
+msgstr ""
+
+#. i18n: file: ui/configwindow.ui:962
+#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_player)
+#: rc.cpp:134
+msgid ""
+"$album - song album\n"
+"$artist - song artist\n"
+"$progress - song progress\n"
+"$time - song duration\n"
+"$title - song title"
+msgstr ""
+
+#. i18n: file: ui/configwindow.ui:1016
+#. i18n: ectx: attribute (title), widget (QWidget, appearance)
+#: rc.cpp:141
+msgid "Appearance"
+msgstr ""
+
+#. i18n: file: ui/configwindow.ui:1030
+#. i18n: ectx: property (text), widget (QLabel, label_interval)
+#: rc.cpp:144
+msgid "Time interval"
+msgstr ""
+
+#. i18n: file: ui/configwindow.ui:1085
+#. i18n: ectx: property (text), widget (QLabel, label_font)
+#: rc.cpp:147
+msgid "Font"
+msgstr ""
+
+#. i18n: file: ui/configwindow.ui:1125
+#. i18n: ectx: property (text), widget (QLabel, label_fontSize)
+#: rc.cpp:150
+msgid "Font size"
+msgstr ""
+
+#. i18n: file: ui/configwindow.ui:1180
+#. i18n: ectx: property (text), widget (QLabel, label_color)
+#: rc.cpp:153
+msgid "Font color"
+msgstr ""
+
+#. i18n: file: ui/configwindow.ui:1220
+#. i18n: ectx: property (text), widget (QLabel, label_style)
+#: rc.cpp:156
+msgid "Font style"
+msgstr ""
+
+#. i18n: file: ui/configwindow.ui:1270
+#. i18n: ectx: property (text), widget (QLabel, label_weight)
+#: rc.cpp:159
+msgid "Font weight"
+msgstr ""
+
+#: rc.cpp:160
+msgctxt "NAME OF TRANSLATORS"
+msgid "Your names"
+msgstr ""
+
+#: rc.cpp:161
+msgctxt "EMAIL OF TRANSLATORS"
+msgid "Your emails"
+msgstr ""
diff --git a/sources/ptm/po/ru.po b/sources/ptm/po/ru.po
new file mode 100644
index 0000000..8235f22
--- /dev/null
+++ b/sources/ptm/po/ru.po
@@ -0,0 +1,365 @@
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+#
+# Evgeniy Alekseev , 2014.
+msgid ""
+msgstr ""
+"Project-Id-Version: \n"
+"Report-Msgid-Bugs-To: http://kde-look.org/content/show.php?content=157124\n"
+"POT-Creation-Date: 2014-03-30 13:27+0400\n"
+"PO-Revision-Date: 2014-03-30 13:40+0400\n"
+"Last-Translator: Evgeniy Alekseev \n"
+"Language-Team: Russian \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"
+
+#. i18n: file: ui/configwindow.ui:32
+#. i18n: ectx: property (windowTitle), widget (QWidget, ConfigWindow)
+#: rc.cpp:3
+msgid "Form"
+msgstr "Form"
+
+#. i18n: file: ui/configwindow.ui:42
+#. i18n: ectx: attribute (title), widget (QWidget, settings)
+#: rc.cpp:6
+msgid "Widget settings"
+msgstr "Настройки виджета"
+
+#. i18n: file: ui/configwindow.ui:56
+#. i18n: ectx: property (text), widget (QCheckBox, checkBox_time)
+#: rc.cpp:9
+msgid "Time"
+msgstr "Время"
+
+#. i18n: file: ui/configwindow.ui:75
+#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_time)
+#: rc.cpp:12
+msgid ""
+"$time - time in default format\n"
+"$isotime - time in ISO format\n"
+"$shorttime - time in short format\n"
+"$longtime - time in log format\n"
+"$custom: $dddd - long weekday; $ddd - short weekday; $dd - day; $d day w\\o "
+"zero; \n"
+"\t$MMMM - long month; $MMM - short month; $MM - month; $M - month w\\o "
+"zero; \n"
+"\t$yyyy - year; $yy short year; \n"
+"\t$hh - hours (24 only); $h - hours w\\o zero (24 only); \n"
+"\t$mm - minutes; $m - minutes w\\o zero;\n"
+"\t$ss - seconds; $s - seconds w\\o zero"
+msgstr ""
+"$time - время в стандартном формате\n"
+"$isotime - время ISO формате\n"
+"$shorttime - время в коротком формате\n"
+"$longtime - время в длинном формате\n"
+"$custom: $dddd - день недели (длинный); $ddd - день недели (короткий); $dd - "
+"день; $d - день без 0; \n"
+"\t$MMMM - месяц (длинный); $MMM - месяц (короткий); $MM - месяц; $M - месяц "
+"без 0; \n"
+"\t$yyyy - год; $yy - год (короткий); \n"
+"\t$hh - часы (24); $h - часы без 0 (24); \n"
+"\t$mm - минуты; $m - минуты без 0;\n"
+"\t$ss - секунды; $s - секунды без 0"
+
+#. i18n: file: ui/configwindow.ui:120
+#. i18n: ectx: property (text), widget (QCheckBox, checkBox_uptime)
+#: rc.cpp:24
+msgid "Uptime"
+msgstr "Аптайм"
+
+#. i18n: file: ui/configwindow.ui:131
+#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_uptime)
+#: rc.cpp:27
+msgid ""
+"$uptime - system uptime\n"
+"$custom: $ds - uptime days; $hs - uptime hours; $ms - uptime minutes"
+msgstr ""
+"$uptime - аптайм системы\n"
+"$custom: $ds - дни аптайма; $hs - часы аптайма; $ms - минуты аптайма"
+
+#. i18n: file: ui/configwindow.ui:179
+#. i18n: ectx: property (text), widget (QCheckBox, checkBox_cpu)
+#: rc.cpp:31
+msgid "CPU"
+msgstr "CPU"
+
+#. i18n: file: ui/configwindow.ui:190
+#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_cpu)
+#: rc.cpp:35
+#, no-c-format
+msgid ""
+"$cpu - total load CPU, %\n"
+"$ccpu - load CPU for each core, %"
+msgstr ""
+"$cpu - общая загрузка CPU, %\n"
+"$ccpu - загрузка CPU для каждого ядра, %"
+
+#. i18n: file: ui/configwindow.ui:238
+#. i18n: ectx: property (text), widget (QCheckBox, checkBox_cpuclock)
+#: rc.cpp:39
+msgid "CPU Clock"
+msgstr "Частота CPU"
+
+#. i18n: file: ui/configwindow.ui:249
+#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_cpuclock)
+#: rc.cpp:42
+msgid ""
+"$cpucl - average CPU clock, MHz\n"
+"$ccpucl - CPU clock for each core, MHz"
+msgstr ""
+"$cpucl - средняя частота CPU, MHz\n"
+"$ccpucl - частота CPU для каждого ядра, MHz"
+
+#. i18n: file: ui/configwindow.ui:297
+#. i18n: ectx: property (text), widget (QCheckBox, checkBox_temp)
+#: rc.cpp:46
+msgid "Temperature"
+msgstr "Температура"
+
+#. i18n: file: ui/configwindow.ui:320
+#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_temp)
+#: rc.cpp:49
+msgid "$temp - physical temperature on CPU"
+msgstr "$temp - физическая температура на CPU"
+
+#. i18n: file: ui/configwindow.ui:368
+#. i18n: ectx: property (text), widget (QCheckBox, checkBox_gpu)
+#: rc.cpp:52
+msgid "GPU"
+msgstr "GPU"
+
+#. i18n: file: ui/configwindow.ui:378
+#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_gpu)
+#: rc.cpp:56
+#, no-c-format
+msgid "$gpu - gpu usage, %"
+msgstr "$gpu - использование GPU, %"
+
+#. i18n: file: ui/configwindow.ui:426
+#. i18n: ectx: property (text), widget (QCheckBox, checkBox_gpuTemp)
+#: rc.cpp:59
+msgid "GPU Temp"
+msgstr "Температура GPU"
+
+#. i18n: file: ui/configwindow.ui:436
+#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_gpuTemp)
+#: rc.cpp:62
+msgid "$gputemp - physical temperature on GPU"
+msgstr "$gputemp - физическая температура на GPU"
+
+#. i18n: file: ui/configwindow.ui:484
+#. i18n: ectx: property (text), widget (QCheckBox, checkBox_mem)
+#: rc.cpp:65
+msgid "Memory"
+msgstr "Память"
+
+#. i18n: file: ui/configwindow.ui:495
+#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_mem)
+#: rc.cpp:69
+#, no-c-format
+msgid ""
+"$mem - RAM usage, %\n"
+"$memmb - RAM usage, MB"
+msgstr ""
+"$mem - использование RAM, %\n"
+"$memmb - использование RAM, MB"
+
+#. i18n: file: ui/configwindow.ui:543
+#. i18n: ectx: property (text), widget (QCheckBox, checkBox_swap)
+#: rc.cpp:73
+msgid "Swap"
+msgstr "Swap"
+
+#. i18n: file: ui/configwindow.ui:554
+#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_swap)
+#: rc.cpp:77
+#, no-c-format
+msgid ""
+"$swap - swap usage, %\n"
+"$swapmb - swap usage, MB"
+msgstr ""
+"$swap - использование swap, %\n"
+"$swapmb - использование swap, MB"
+
+#. i18n: file: ui/configwindow.ui:602
+#. i18n: ectx: property (text), widget (QCheckBox, checkBox_hdd)
+#: rc.cpp:81
+msgid "HDD"
+msgstr "HDD"
+
+#. i18n: file: ui/configwindow.ui:612
+#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_hdd)
+#: rc.cpp:85
+#, no-c-format
+msgid "@@/;@@ - mount point usage, %"
+msgstr "@@/;@@ - использование точки монтирование, %"
+
+#. i18n: file: ui/configwindow.ui:660
+#. i18n: ectx: property (text), widget (QCheckBox, checkBox_hddTemp)
+#: rc.cpp:88
+msgid "HDD Temp"
+msgstr "Температура HDD"
+
+#. i18n: file: ui/configwindow.ui:670
+#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_hddTemp)
+#: rc.cpp:91
+msgid "@@/dev/sda@@ - physical temperature on /dev/sda"
+msgstr "@@/dev/sda@@ - физическая температура /dev/sda"
+
+#. i18n: file: ui/configwindow.ui:718
+#. i18n: ectx: property (text), widget (QCheckBox, checkBox_net)
+#: rc.cpp:94
+msgid "Network"
+msgstr "Сеть"
+
+#. i18n: file: ui/configwindow.ui:730
+#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_net)
+#: rc.cpp:97
+msgid ""
+"$net - network speed, down/up, KB/s\n"
+"$netdev - current network device\n"
+"@@eth0@@ - disable auto select device and set specified device"
+msgstr ""
+"$net - скорость передачи данных, down/up, KB/s\n"
+"$netdev - используемое устройство\n"
+"@@eth0@@ - отключить автовыбор устройства и установить указанное"
+
+#. i18n: file: ui/configwindow.ui:778
+#. i18n: ectx: property (text), widget (QCheckBox, checkBox_bat)
+#: rc.cpp:102
+msgid "Battery"
+msgstr "Батарея"
+
+#. i18n: file: ui/configwindow.ui:789
+#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_bat)
+#: rc.cpp:106
+#, no-c-format
+msgid ""
+"$bat - battery charge, %\n"
+"$ac - AC status"
+msgstr ""
+"$bat - заряд батареи, %\n"
+"$ac - статус адаптора питания"
+
+#. i18n: file: ui/configwindow.ui:853
+#. i18n: ectx: property (text), widget (QLabel, label_batdev)
+#: rc.cpp:110
+msgid "Battery device"
+msgstr "Устройство батареи"
+
+#. i18n: file: ui/configwindow.ui:860
+#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_batdev)
+#: rc.cpp:113
+msgid "\"/sys/class/power_supply/BAT0/capacity\" by default"
+msgstr "\"/sys/class/power_supply/BAT0/capacity\" по умолчанию"
+
+#. i18n: file: ui/configwindow.ui:896
+#. i18n: ectx: property (text), widget (QLabel, label_acdev)
+#: rc.cpp:116
+msgid "AC device"
+msgstr "Устройство AC"
+
+#. i18n: file: ui/configwindow.ui:903
+#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_acdev)
+#: rc.cpp:119
+msgid "\"/sys/class/power_supply/AC/online\" by default"
+msgstr "\"/sys/class/power_supply/AC/online\" по умолчанию"
+
+#. i18n: file: ui/configwindow.ui:923
+#. i18n: ectx: property (text), widget (QCheckBox, checkBox_player)
+#: rc.cpp:122
+msgid "Music player"
+msgstr "Музыкальный плеер"
+
+#. i18n: file: ui/configwindow.ui:940
+#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_player)
+#: rc.cpp:125
+msgid "amarok"
+msgstr "amarok"
+
+#. i18n: file: ui/configwindow.ui:945
+#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_player)
+#: rc.cpp:128
+msgid "mpd"
+msgstr "mpd"
+
+#. i18n: file: ui/configwindow.ui:950
+#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_player)
+#: rc.cpp:131
+msgid "qmmp"
+msgstr "qmmp"
+
+#. i18n: file: ui/configwindow.ui:962
+#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_player)
+#: rc.cpp:134
+msgid ""
+"$album - song album\n"
+"$artist - song artist\n"
+"$progress - song progress\n"
+"$time - song duration\n"
+"$title - song title"
+msgstr ""
+"$album - альбом\n"
+"$artist - исполнитель\n"
+"$progress - прогресс\n"
+"$time - продолжительность\n"
+"$title - название"
+
+#. i18n: file: ui/configwindow.ui:1016
+#. i18n: ectx: attribute (title), widget (QWidget, appearance)
+#: rc.cpp:141
+msgid "Appearance"
+msgstr "Внешний вид"
+
+#. i18n: file: ui/configwindow.ui:1030
+#. i18n: ectx: property (text), widget (QLabel, label_interval)
+#: rc.cpp:144
+msgid "Time interval"
+msgstr "Интервал обновления"
+
+#. i18n: file: ui/configwindow.ui:1085
+#. i18n: ectx: property (text), widget (QLabel, label_font)
+#: rc.cpp:147
+msgid "Font"
+msgstr "Шрифт"
+
+#. i18n: file: ui/configwindow.ui:1125
+#. i18n: ectx: property (text), widget (QLabel, label_fontSize)
+#: rc.cpp:150
+msgid "Font size"
+msgstr "Размер шрифта"
+
+#. i18n: file: ui/configwindow.ui:1180
+#. i18n: ectx: property (text), widget (QLabel, label_color)
+#: rc.cpp:153
+msgid "Font color"
+msgstr "Цвет шрифта"
+
+#. i18n: file: ui/configwindow.ui:1220
+#. i18n: ectx: property (text), widget (QLabel, label_style)
+#: rc.cpp:156
+msgid "Font style"
+msgstr "Стиль шрифта"
+
+#. i18n: file: ui/configwindow.ui:1270
+#. i18n: ectx: property (text), widget (QLabel, label_weight)
+#: rc.cpp:159
+msgid "Font weight"
+msgstr "Ширина шрифта"
+
+#: rc.cpp:160
+msgctxt "NAME OF TRANSLATORS"
+msgid "Your names"
+msgstr "Evgeniy Alekseev"
+
+#: rc.cpp:161
+msgctxt "EMAIL OF TRANSLATORS"
+msgid "Your emails"
+msgstr "esalexeev@gmail.com"
+
+
diff --git a/sources/version.h.in b/sources/version.h.in
new file mode 100644
index 0000000..eae4abb
--- /dev/null
+++ b/sources/version.h.in
@@ -0,0 +1,9 @@
+#ifndef VERSION_H
+#define VERSION_H
+
+#define AUTHOR "Evgeniy Alekseev"
+#define DATE "2013-2014"
+#define NAME "py-text-monitor"
+#define VERSION "@PROJECT_VERSION@"
+
+#endif /* VERSION_H */