added cmake build

This commit is contained in:
arcan1s 2014-03-30 14:18:56 +04:00
parent e6bbea9c07
commit d66bafa816
42 changed files with 1347 additions and 113 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
sources/build
sources/usr
*-src.tar.xz

View File

@ -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"
}

View File

@ -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

Binary file not shown.

View File

@ -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})

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,3 +0,0 @@
#!/bin/sh
plasmapkg -t dataengine -i ext-sysmon-1.0.zip

Binary file not shown.

27
sources/CMakeLists.txt Normal file
View File

@ -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)

View File

@ -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})

View File

@ -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

View File

@ -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})

View File

@ -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")

View File

@ -53,7 +53,7 @@
</size>
</property>
<property name="text">
<string notr="true">Time</string>
<string>Time</string>
</property>
<property name="checked">
<bool>true</bool>
@ -63,7 +63,7 @@
<item>
<widget class="QLineEdit" name="lineEdit_time">
<property name="toolTip">
<string notr="true">$time - time in default format
<string>$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;
</size>
</property>
<property name="text">
<string notr="true">Uptime</string>
<string>Uptime</string>
</property>
<property name="checked">
<bool>true</bool>
@ -127,7 +127,7 @@ $custom: $dddd - long weekday; $ddd - short weekday; $dd - day; $d day w\o zero;
<item>
<widget class="QLineEdit" name="lineEdit_uptime">
<property name="toolTip">
<string notr="true">$uptime - system uptime
<string>$uptime - system uptime
$custom: $ds - uptime days; $hs - uptime hours; $ms - uptime minutes</string>
</property>
<property name="alignment">
@ -176,7 +176,7 @@ $custom: $ds - uptime days; $hs - uptime hours; $ms - uptime minutes</string>
</size>
</property>
<property name="text">
<string notr="true">CPU</string>
<string>CPU</string>
</property>
<property name="checked">
<bool>true</bool>
@ -186,7 +186,7 @@ $custom: $ds - uptime days; $hs - uptime hours; $ms - uptime minutes</string>
<item>
<widget class="QLineEdit" name="lineEdit_cpu">
<property name="toolTip">
<string notr="true">$cpu - total load CPU, %
<string>$cpu - total load CPU, %
$ccpu - load CPU for each core, %</string>
</property>
<property name="alignment">
@ -235,7 +235,7 @@ $ccpu - load CPU for each core, %</string>
</size>
</property>
<property name="text">
<string notr="true">CPU Clock</string>
<string>CPU Clock</string>
</property>
<property name="checked">
<bool>true</bool>
@ -245,7 +245,7 @@ $ccpu - load CPU for each core, %</string>
<item>
<widget class="QLineEdit" name="lineEdit_cpuclock">
<property name="toolTip">
<string notr="true">$cpucl - average CPU clock, MHz
<string>$cpucl - average CPU clock, MHz
$ccpucl - CPU clock for each core, MHz</string>
</property>
<property name="alignment">
@ -294,7 +294,7 @@ $ccpucl - CPU clock for each core, MHz</string>
</size>
</property>
<property name="text">
<string notr="true">Temperature</string>
<string>Temperature</string>
</property>
<property name="checked">
<bool>true</bool>
@ -317,7 +317,7 @@ $ccpucl - CPU clock for each core, MHz</string>
<item>
<widget class="QLineEdit" name="lineEdit_temp">
<property name="toolTip">
<string notr="true">$temp - physical temperature on CPU</string>
<string>$temp - physical temperature on CPU</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
@ -365,7 +365,7 @@ $ccpucl - CPU clock for each core, MHz</string>
</size>
</property>
<property name="text">
<string notr="true">GPU</string>
<string>GPU</string>
</property>
<property name="checked">
<bool>true</bool>
@ -375,7 +375,7 @@ $ccpucl - CPU clock for each core, MHz</string>
<item>
<widget class="QLineEdit" name="lineEdit_gpu">
<property name="toolTip">
<string notr="true">$gpu - gpu usage, %</string>
<string>$gpu - gpu usage, %</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
@ -423,7 +423,7 @@ $ccpucl - CPU clock for each core, MHz</string>
</size>
</property>
<property name="text">
<string notr="true">GPU Temp</string>
<string>GPU Temp</string>
</property>
<property name="checked">
<bool>true</bool>
@ -433,7 +433,7 @@ $ccpucl - CPU clock for each core, MHz</string>
<item>
<widget class="QLineEdit" name="lineEdit_gpuTemp">
<property name="toolTip">
<string notr="true">$gputemp - physical temperature on GPU</string>
<string>$gputemp - physical temperature on GPU</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
@ -481,7 +481,7 @@ $ccpucl - CPU clock for each core, MHz</string>
</size>
</property>
<property name="text">
<string notr="true">Memory</string>
<string>Memory</string>
</property>
<property name="checked">
<bool>true</bool>
@ -491,7 +491,7 @@ $ccpucl - CPU clock for each core, MHz</string>
<item>
<widget class="QLineEdit" name="lineEdit_mem">
<property name="toolTip">
<string notr="true">$mem - RAM usage, %
<string>$mem - RAM usage, %
$memmb - RAM usage, MB</string>
</property>
<property name="alignment">
@ -540,7 +540,7 @@ $memmb - RAM usage, MB</string>
</size>
</property>
<property name="text">
<string notr="true">Swap</string>
<string>Swap</string>
</property>
<property name="checked">
<bool>true</bool>
@ -550,7 +550,7 @@ $memmb - RAM usage, MB</string>
<item>
<widget class="QLineEdit" name="lineEdit_swap">
<property name="toolTip">
<string notr="true">$swap - swap usage, %
<string>$swap - swap usage, %
$swapmb - swap usage, MB</string>
</property>
<property name="alignment">
@ -599,7 +599,7 @@ $swapmb - swap usage, MB</string>
</size>
</property>
<property name="text">
<string notr="true">HDD</string>
<string>HDD</string>
</property>
<property name="checked">
<bool>true</bool>
@ -609,7 +609,7 @@ $swapmb - swap usage, MB</string>
<item>
<widget class="QLineEdit" name="lineEdit_hdd">
<property name="toolTip">
<string notr="true">@@/;@@ - mount point usage, %</string>
<string>@@/;@@ - mount point usage, %</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
@ -657,7 +657,7 @@ $swapmb - swap usage, MB</string>
</size>
</property>
<property name="text">
<string notr="true">HDD Temp</string>
<string>HDD Temp</string>
</property>
<property name="checked">
<bool>true</bool>
@ -667,7 +667,7 @@ $swapmb - swap usage, MB</string>
<item>
<widget class="QLineEdit" name="lineEdit_hddTemp">
<property name="toolTip">
<string notr="true">@@/dev/sda@@ - physical temperature on /dev/sda</string>
<string>@@/dev/sda@@ - physical temperature on /dev/sda</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
@ -715,7 +715,7 @@ $swapmb - swap usage, MB</string>
</size>
</property>
<property name="text">
<string notr="true">Network</string>
<string>Network</string>
</property>
<property name="checked">
<bool>true</bool>
@ -725,7 +725,7 @@ $swapmb - swap usage, MB</string>
<item>
<widget class="QLineEdit" name="lineEdit_net">
<property name="toolTip">
<string notr="true">$net - network speed, down/up, KB/s
<string>$net - network speed, down/up, KB/s
$netdev - current network device
@@eth0@@ - disable auto select device and set specified device</string>
</property>
@ -775,7 +775,7 @@ $netdev - current network device
</size>
</property>
<property name="text">
<string notr="true">Battery</string>
<string>Battery</string>
</property>
<property name="checked">
<bool>true</bool>
@ -785,7 +785,7 @@ $netdev - current network device
<item>
<widget class="QLineEdit" name="lineEdit_bat">
<property name="toolTip">
<string notr="true">$bat - battery charge, %
<string>$bat - battery charge, %
$ac - AC status</string>
</property>
<property name="alignment">
@ -857,7 +857,7 @@ $ac - AC status</string>
<item>
<widget class="QLineEdit" name="lineEdit_batdev">
<property name="toolTip">
<string notr="true">&quot;/sys/class/power_supply/BAT0/capacity&quot; by default</string>
<string>&quot;/sys/class/power_supply/BAT0/capacity&quot; by default</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
@ -900,7 +900,7 @@ $ac - AC status</string>
<item>
<widget class="QLineEdit" name="lineEdit_acdev">
<property name="toolTip">
<string notr="true">&quot;/sys/class/power_supply/AC/online&quot; by default</string>
<string>&quot;/sys/class/power_supply/AC/online&quot; by default</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
@ -920,7 +920,7 @@ $ac - AC status</string>
</size>
</property>
<property name="text">
<string notr="true">Music player</string>
<string>Music player</string>
</property>
<property name="checked">
<bool>true</bool>
@ -955,7 +955,7 @@ $ac - AC status</string>
<item>
<widget class="QLineEdit" name="lineEdit_player">
<property name="toolTip">
<string notr="true">$album - song album
<string>$album - song album
$artist - song artist
$progress - song progress
$time - song duration
@ -1027,7 +1027,7 @@ $title - song title</string>
</size>
</property>
<property name="text">
<string notr="true">Time interval</string>
<string>Time interval</string>
</property>
</widget>
</item>
@ -1082,7 +1082,7 @@ $title - song title</string>
</size>
</property>
<property name="text">
<string notr="true">Font</string>
<string>Font</string>
</property>
</widget>
</item>
@ -1122,7 +1122,7 @@ $title - song title</string>
</size>
</property>
<property name="text">
<string notr="true">Font size</string>
<string>Font size</string>
</property>
</widget>
</item>
@ -1177,7 +1177,7 @@ $title - song title</string>
</size>
</property>
<property name="text">
<string notr="true">Font color</string>
<string>Font color</string>
</property>
</widget>
</item>
@ -1217,7 +1217,7 @@ $title - song title</string>
</size>
</property>
<property name="text">
<string notr="true">Font style</string>
<string>Font style</string>
</property>
</widget>
</item>
@ -1267,7 +1267,7 @@ $title - song title</string>
</size>
</property>
<property name="text">
<string notr="true">Font weight</string>
<string>Font weight</string>
</property>
</widget>
</item>

View File

@ -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=

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 py-text-monitor.mo)
list (APPEND _gmoFiles ${_gmoFile})
endforeach (_current_PO_FILE)
add_custom_target (pofiles ALL DEPENDS ${_gmoFiles})

View File

@ -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/.*<image name=\"\([^\"]*\).*/\1/" | sed -e "s/\&amp;/\&/g" | sed -e "s/\&apos;/'/g" | sed -e "s/\&quot;/\"/g" | sed -e "s/\&lt;/</g" | sed -e "s/\&gt;/>/g" | grep -v '^$' | sort --unique --ignore-leading-blanks > "$WDIR/satellite.list"

364
sources/ptm/po/en.po Normal file
View File

@ -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 <esalexeev@gmail.com>, 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 <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"
#. 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"

View File

@ -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"

View File

@ -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 <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://kde-look.org/content/show.php?content=157124\n"
"POT-Creation-Date: 2014-03-30 13:27+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"
#. 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 ""

365
sources/ptm/po/ru.po Normal file
View File

@ -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 <esalexeev@gmail.com>, 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 <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"
#. 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"

9
sources/version.h.in Normal file
View File

@ -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 */