mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-14 14:25:50 +00:00
added cmake build
This commit is contained in:
27
sources/CMakeLists.txt
Normal file
27
sources/CMakeLists.txt
Normal 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)
|
27
sources/ext-sysmon/CMakeLists.txt
Normal file
27
sources/ext-sysmon/CMakeLists.txt
Normal 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})
|
13
sources/ext-sysmon/extsysmon.conf
Normal file
13
sources/ext-sysmon/extsysmon.conf
Normal file
@ -0,0 +1,13 @@
|
||||
# Configuration file for Extended Systemmonitor DataEngine (v.1.6)
|
||||
# Uncomment needed lines
|
||||
|
||||
# Set GPU device
|
||||
# May be 'nvidia' (for nvidia), 'ati' (for ATI RADEON), 'ignore' or 'auto'
|
||||
#GPUDEV=auto
|
||||
|
||||
# Set block device for hddtemp comma separated or use 'all'
|
||||
#HDDDEV=all
|
||||
|
||||
# Set MPD settings
|
||||
#MPDADDRESS=localhost
|
||||
#MPDPORT=6600
|
351
sources/ext-sysmon/extsysmon.cpp
Normal file
351
sources/ext-sysmon/extsysmon.cpp
Normal file
@ -0,0 +1,351 @@
|
||||
/***************************************************************************
|
||||
* Copyright (C) 2013 by Evgeniy Alekseev <esalekseev@gmail.com> *
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
* This program is distributed in the hope that it will be useful, *
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||
* GNU General Public License for more details. *
|
||||
* *
|
||||
* You should have received a copy of the GNU General Public License *
|
||||
* along with this program; if not, write to the *
|
||||
* Free Software Foundation, Inc., *
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . *
|
||||
***************************************************************************/
|
||||
|
||||
#include "extsysmon.h"
|
||||
|
||||
#include <Plasma/DataContainer>
|
||||
#include <QFile>
|
||||
#include <QProcess>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
|
||||
ExtendedSysMon::ExtendedSysMon(QObject* parent, const QVariantList& args)
|
||||
: Plasma::DataEngine(parent, args)
|
||||
{
|
||||
Q_UNUSED(args)
|
||||
|
||||
setMinimumPollingInterval(333);
|
||||
readConfiguration();
|
||||
}
|
||||
|
||||
QStringList ExtendedSysMon::sources() const
|
||||
{
|
||||
QStringList source;
|
||||
source.append(QString("gpu"));
|
||||
source.append(QString("gputemp"));
|
||||
source.append(QString("hddtemp"));
|
||||
source.append(QString("player"));
|
||||
return source;
|
||||
}
|
||||
|
||||
bool ExtendedSysMon::readConfiguration()
|
||||
{
|
||||
// pre-setup
|
||||
FILE *f_out;
|
||||
f_out = popen("lspci 2> /dev/null", "r");
|
||||
char device[256];
|
||||
QString dev;
|
||||
while (fgets(device, 256, f_out) != NULL) {
|
||||
dev = QString(device);
|
||||
if (dev.toLower().contains("nvidia"))
|
||||
gpuDev = QString("nvidia");
|
||||
else if (dev.toLower().contains("radeon"))
|
||||
gpuDev = QString("ati");
|
||||
}
|
||||
pclose(f_out);
|
||||
|
||||
f_out = popen("ls -1 /dev/sd[a-z] 2> /dev/null ; ls -1 /dev/hd[a-z] 2> /dev/null", "r");
|
||||
while (fgets(device, 256, f_out) != NULL) {
|
||||
dev = QString(device).split("\n")[0];
|
||||
if (dev[0] == '/')
|
||||
hddDev.append(dev);
|
||||
}
|
||||
pclose(f_out);
|
||||
|
||||
mpdAddress = QString("localhost");
|
||||
mpdPort = QString("6600");
|
||||
|
||||
QString fileStr;
|
||||
// FIXME: define configuration file
|
||||
QString confFileName = QString(getenv("HOME")) + QString("/.kde4/share/config/extsysmon.conf");
|
||||
QFile confFile(confFileName);
|
||||
bool exists = confFile.open(QIODevice::ReadOnly);
|
||||
if (!exists) {
|
||||
confFileName = QString("/usr/share/config/extsysmon.conf");
|
||||
confFile.setFileName(confFileName);
|
||||
exists = confFile.open(QIODevice::ReadOnly);
|
||||
if (!exists)
|
||||
return false;
|
||||
}
|
||||
|
||||
while (true) {
|
||||
fileStr = QString(confFile.readLine());
|
||||
if (fileStr[0] != '#') {
|
||||
if (fileStr.split(QString("="), QString::SkipEmptyParts).count() == 2) {
|
||||
if (fileStr.split(QString("="), QString::SkipEmptyParts)[0] == QString("GPUDEV")) {
|
||||
if (fileStr.split(QString("="), QString::SkipEmptyParts)[1].split(QString("\n"), QString::SkipEmptyParts)[0] == QString("ati"))
|
||||
gpuDev = fileStr.split(QString("="), QString::SkipEmptyParts)[1].split(QString("\n"), QString::SkipEmptyParts)[0];
|
||||
else if (fileStr.split(QString("="), QString::SkipEmptyParts)[1].split(QString("\n"), QString::SkipEmptyParts)[0] == QString("nvidia"))
|
||||
gpuDev = fileStr.split(QString("="), QString::SkipEmptyParts)[1].split(QString("\n"), QString::SkipEmptyParts)[0];
|
||||
else if (fileStr.split(QString("="), QString::SkipEmptyParts)[1].split(QString("\n"), QString::SkipEmptyParts)[0] != QString("auto"))
|
||||
gpuDev = QString("ignore");
|
||||
}
|
||||
else if (fileStr.split(QString("="), QString::SkipEmptyParts)[0] == QString("HDDDEV")) {
|
||||
if (fileStr.split(QString("="), QString::SkipEmptyParts)[1].split(QString("\n"), QString::SkipEmptyParts)[0] != QString("all")) {
|
||||
hddDev.clear();
|
||||
for (int i=0; i<fileStr.split(QString("="), QString::SkipEmptyParts)[1].split(QString("\n"), \
|
||||
QString::SkipEmptyParts)[0].split(QString(","), QString::SkipEmptyParts).count(); i++)
|
||||
hddDev.append(fileStr.split(QString("="), QString::SkipEmptyParts)[1].split(QString("\n"), \
|
||||
QString::SkipEmptyParts)[0].split(QString(","), QString::SkipEmptyParts)[i]);
|
||||
}
|
||||
}
|
||||
else if (fileStr.split(QString("="), QString::SkipEmptyParts)[0] == QString("MPDADDRESS"))
|
||||
mpdAddress = fileStr.split(QString("="), QString::SkipEmptyParts)[1].split(QString("\n"), QString::SkipEmptyParts)[0];
|
||||
else if (fileStr.split(QString("="), QString::SkipEmptyParts)[0] == QString("MPDPORT"))
|
||||
mpdPort = fileStr.split(QString("="), QString::SkipEmptyParts)[1].split(QString("\n"), QString::SkipEmptyParts)[0];
|
||||
}
|
||||
}
|
||||
if (confFile.atEnd())
|
||||
break;
|
||||
}
|
||||
|
||||
confFile.close();
|
||||
return true;
|
||||
}
|
||||
|
||||
bool ExtendedSysMon::sourceRequestEvent(const QString &name)
|
||||
{
|
||||
return updateSourceEvent(name);
|
||||
}
|
||||
|
||||
bool ExtendedSysMon::updateSourceEvent(const QString &source)
|
||||
{
|
||||
FILE *f_out;
|
||||
QString key, out, tmp_out, value;
|
||||
bool ok = false;
|
||||
char output[256], val[5];
|
||||
if (source == QString("gpu")) {
|
||||
key = QString("GPU");
|
||||
if (gpuDev == QString("nvidia")) {
|
||||
f_out = popen("nvidia-smi -q -d UTILIZATION 2> /dev/null | grep Gpu | tail -n1", "r");
|
||||
fgets (output, 256, f_out);
|
||||
if ((output[0] == '\0') ||
|
||||
(QString(output).split(QString(" "), QString::SkipEmptyParts).count() < 2))
|
||||
value = QString(" N\\A");
|
||||
else {
|
||||
out = QString(output).split(QString(" "), QString::SkipEmptyParts)[2];
|
||||
sprintf (val, "%5.1f", out.left(out.count()-2).toFloat(&ok));
|
||||
value = QString(val);
|
||||
}
|
||||
pclose(f_out);
|
||||
}
|
||||
else if (gpuDev == QString("ati")) {
|
||||
f_out = popen("aticonfig --od-getclocks 2> /dev/null | grep load | tail -n1", "r");
|
||||
fgets (output, 256, f_out);
|
||||
if ((output[0] == '\0') ||
|
||||
(QString(output).split(QString(" "), QString::SkipEmptyParts).count() < 3))
|
||||
value = QString(" N\\A");
|
||||
else {
|
||||
out = QString(output).split(QString(" "), QString::SkipEmptyParts)[3];
|
||||
sprintf (val, "%5.1f", out.left(out.count()-2).toFloat(&ok));
|
||||
value = QString(val);
|
||||
}
|
||||
pclose(f_out);
|
||||
}
|
||||
else {
|
||||
value = QString(" N\\A");
|
||||
}
|
||||
if (ok == false)
|
||||
value = QString(" N\\A");
|
||||
value = value.split(QString(","), QString::SkipEmptyParts).join(QString("."));
|
||||
setData(source, key, value);
|
||||
}
|
||||
else if (source == QString("gputemp")) {
|
||||
key = QString("GPUTemp");
|
||||
if (gpuDev == QString("nvidia")) {
|
||||
f_out = popen("nvidia-smi -q -d TEMPERATURE 2> /dev/null | grep Gpu | tail -n1", "r");
|
||||
fgets (output, 256, f_out);
|
||||
if ((output[0] == '\0') ||
|
||||
(QString(output).split(QString(" "), QString::SkipEmptyParts).count() < 2))
|
||||
value = QString(" N\\A");
|
||||
else {
|
||||
out = QString(output).split(QString(" "), QString::SkipEmptyParts)[2];
|
||||
sprintf (val, "%4.1f", out.toFloat(&ok));
|
||||
value = QString(val);
|
||||
}
|
||||
pclose(f_out);
|
||||
}
|
||||
else if (gpuDev == QString("ati")) {
|
||||
f_out = popen("aticonfig --od-gettemperature 2> /dev/null | grep Temperature | tail -n1", "r");
|
||||
fgets (output, 256, f_out);
|
||||
if ((output[0] == '\0') ||
|
||||
(QString(output).split(QString(" "), QString::SkipEmptyParts).count() < 4))
|
||||
value = QString(" N\\A");
|
||||
else {
|
||||
out = QString(output).split(QString(" "), QString::SkipEmptyParts)[4];
|
||||
sprintf (val, "%4.1f", out.toFloat(&ok));
|
||||
value = QString(val);
|
||||
}
|
||||
pclose(f_out);
|
||||
}
|
||||
else {
|
||||
value = QString(" N\\A");
|
||||
}
|
||||
if (ok == false)
|
||||
value = QString(" N\\A");
|
||||
value = value.split(QString(","), QString::SkipEmptyParts).join(QString("."));
|
||||
setData(source, key, value);
|
||||
}
|
||||
else if (source == QString("hddtemp")) {
|
||||
char command[256], *dev;
|
||||
QByteArray qb;
|
||||
for (int i=0; i<hddDev.count(); i++) {
|
||||
qb = hddDev[i].toUtf8();
|
||||
dev = qb.data();
|
||||
sprintf(command, "sudo hddtemp %s 2> /dev/null", dev);
|
||||
f_out = popen(command, "r");
|
||||
fgets(output, 256, f_out);
|
||||
if ((output[0] == '\0') ||
|
||||
(QString(output).split(QString(":"), QString::SkipEmptyParts).count() < 3))
|
||||
value = QString(" N\\A");
|
||||
else {
|
||||
out = QString(output).split(QString(":"), QString::SkipEmptyParts)[2];
|
||||
sprintf (val, "%4.1f", out.left(out.count()-4).toFloat(&ok));
|
||||
value = QString(val);
|
||||
}
|
||||
pclose(f_out);
|
||||
if (ok == false)
|
||||
value = QString(" N\\A");
|
||||
value = value.split(QString(","), QString::SkipEmptyParts).join(QString("."));
|
||||
setData(source, hddDev[i], value);
|
||||
}
|
||||
}
|
||||
else if (source == QString("player")) {
|
||||
QProcess player;
|
||||
QString qoutput;
|
||||
QString value_album, value_artist, value_progress, value_duration, qstr;
|
||||
// qmmp
|
||||
qoutput = QString("");
|
||||
value = QString("N\\A");
|
||||
value_album = QString("N\\A");
|
||||
value_artist = QString("N\\A");
|
||||
value_progress = QString("0");
|
||||
value_duration = QString("0");
|
||||
player.start("qmmp --status");
|
||||
player.waitForFinished(-1);
|
||||
qoutput = player.readAllStandardOutput();
|
||||
for (int i=0; i<qoutput.split(QString("\n"), QString::SkipEmptyParts).count(); i++) {
|
||||
qstr = qoutput.split(QString("\n"), QString::SkipEmptyParts)[i];
|
||||
if (qstr.split(QString(" = "), QString::SkipEmptyParts)[0] == QString("ALBUM"))
|
||||
value_album = qstr.split(QString(" = "), QString::SkipEmptyParts)[1].split(QString("\n"), QString::SkipEmptyParts)[0];
|
||||
else if (qstr.split(QString(" = "), QString::SkipEmptyParts)[0] == QString("ARTIST"))
|
||||
value_artist = qstr.split(QString(" = "), QString::SkipEmptyParts)[1].split(QString("\n"), QString::SkipEmptyParts)[0];
|
||||
else if (qstr.at(0) == QChar('[')) {
|
||||
QString time = qstr.split(QString(" "), QString::SkipEmptyParts)[2].split(QString("\n"), QString::SkipEmptyParts)[0];
|
||||
value_progress = QString::number(time.split(QString("/"), QString::SkipEmptyParts)[0].split(QString(":"), QString::SkipEmptyParts)[0].toInt() * 60 +
|
||||
time.split(QString("/"), QString::SkipEmptyParts)[0].split(QString(":"), QString::SkipEmptyParts)[1].toInt());
|
||||
value_duration = QString::number(time.split(QString("/"), QString::SkipEmptyParts)[1].split(QString(":"), QString::SkipEmptyParts)[0].toInt() * 60 +
|
||||
time.split(QString("/"), QString::SkipEmptyParts)[1].split(QString(":"), QString::SkipEmptyParts)[1].toInt());
|
||||
}
|
||||
else if (qstr.split(QString(" = "), QString::SkipEmptyParts)[0] == QString("TITLE"))
|
||||
value = qstr.split(QString(" = "), QString::SkipEmptyParts)[1].split(QString("\n"), QString::SkipEmptyParts)[0];
|
||||
}
|
||||
key = QString("qmmp_album");
|
||||
setData(source, key, value_album);
|
||||
key = QString("qmmp_artist");
|
||||
setData(source, key, value_artist);
|
||||
key = QString("qmmp_progress");
|
||||
setData(source, key, value_progress);
|
||||
key = QString("qmmp_duration");
|
||||
setData(source, key, value_duration);
|
||||
key = QString("qmmp_title");
|
||||
setData(source, key, value);
|
||||
// amarok
|
||||
qoutput = QString("");
|
||||
value = QString("N\\A");
|
||||
value_album = QString("N\\A");
|
||||
value_artist = QString("N\\A");
|
||||
value_progress = QString("0");
|
||||
value_duration = QString("0");
|
||||
player.start("qdbus org.kde.amarok /Player GetMetadata");
|
||||
player.waitForFinished(-1);
|
||||
qoutput = player.readAllStandardOutput();
|
||||
for (int i=0; i<qoutput.split(QString("\n"), QString::SkipEmptyParts).count(); i++) {
|
||||
qstr = qoutput.split(QString("\n"), QString::SkipEmptyParts)[i];
|
||||
if (qstr.split(QString(": "), QString::SkipEmptyParts)[0] == QString("album"))
|
||||
value_album = qstr.split(QString(": "), QString::SkipEmptyParts)[1].split(QString("\n"), QString::SkipEmptyParts)[0];
|
||||
else if (qstr.split(QString(": "), QString::SkipEmptyParts)[0] == QString("artist"))
|
||||
value_artist = qstr.split(QString(": "), QString::SkipEmptyParts)[1].split(QString("\n"), QString::SkipEmptyParts)[0];
|
||||
else if (qstr.split(QString(": "), QString::SkipEmptyParts)[0] == QString("time"))
|
||||
value_duration = qstr.split(QString(": "), QString::SkipEmptyParts)[1].split(QString("\n"), QString::SkipEmptyParts)[0];
|
||||
else if (qstr.split(QString(": "), QString::SkipEmptyParts)[0] == QString("title"))
|
||||
value = qstr.split(QString(": "), QString::SkipEmptyParts)[1].split(QString("\n"), QString::SkipEmptyParts)[0];
|
||||
}
|
||||
player.start("qdbus org.kde.amarok /Player PositionGet");
|
||||
player.waitForFinished(-1);
|
||||
qoutput = player.readAllStandardOutput();
|
||||
for (int i=0; i<qoutput.split(QString("\n"), QString::SkipEmptyParts).count(); i++) {
|
||||
qstr = qoutput.split(QString("\n"), QString::SkipEmptyParts)[i];
|
||||
int time = qstr.toInt() / 1000;
|
||||
value_progress = QString::number(time);
|
||||
}
|
||||
key = QString("amarok_album");
|
||||
setData(source, key, value_album);
|
||||
key = QString("amarok_artist");
|
||||
setData(source, key, value_artist);
|
||||
key = QString("amarok_progress");
|
||||
setData(source, key, value_progress);
|
||||
key = QString("amarok_duration");
|
||||
setData(source, key, value_duration);
|
||||
key = QString("amarok_title");
|
||||
setData(source, key, value);
|
||||
// mpd
|
||||
value = QString("N\\A");
|
||||
value_album = QString("N\\A");
|
||||
value_artist = QString("N\\A");
|
||||
value_progress = QString("0");
|
||||
value_duration = QString("0");
|
||||
char commandStr[512];
|
||||
sprintf (commandStr, "echo 'currentsong\nclose' | curl --connect-timeout 1 -fsm 3 telnet://%s:%s 2> /dev/null", \
|
||||
mpdAddress.toUtf8().data(), mpdPort.toUtf8().data());
|
||||
qoutput = QString("");
|
||||
player.start(QString(commandStr));
|
||||
player.waitForFinished(-1);
|
||||
qoutput = player.readAllStandardOutput();
|
||||
for (int i=0; i<qoutput.split(QString("\n"), QString::SkipEmptyParts).count(); i++) {
|
||||
qstr = qoutput.split(QString("\n"), QString::SkipEmptyParts)[i];
|
||||
if (qstr.split(QString(": "), QString::SkipEmptyParts)[0] == QString("Album"))
|
||||
value_album = qstr.split(QString(": "), QString::SkipEmptyParts)[1].split(QString("\n"), QString::SkipEmptyParts)[0];
|
||||
else if (qstr.split(QString(": "), QString::SkipEmptyParts)[0] == QString("Artist"))
|
||||
value_artist = qstr.split(QString(": "), QString::SkipEmptyParts)[1].split(QString("\n"), QString::SkipEmptyParts)[0];
|
||||
else if (qstr.split(QString(": "), QString::SkipEmptyParts)[0] == QString("Time"))
|
||||
value_duration = qstr.split(QString(": "), QString::SkipEmptyParts)[1].split(QString("\n"), QString::SkipEmptyParts)[0];
|
||||
else if (qstr.split(QString(": "), QString::SkipEmptyParts)[0] == QString("Title"))
|
||||
value = qstr.split(QString(": "), QString::SkipEmptyParts)[1].split(QString("\n"), QString::SkipEmptyParts)[0];
|
||||
}
|
||||
key = QString("mpd_album");
|
||||
setData(source, key, value_album);
|
||||
key = QString("mpd_artist");
|
||||
setData(source, key, value_artist);
|
||||
key = QString("mpd_progress");
|
||||
setData(source, key, value_progress);
|
||||
key = QString("mpd_duration");
|
||||
setData(source, key, value_duration);
|
||||
key = QString("mpd_title");
|
||||
setData(source, key, value);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
K_EXPORT_PLASMA_DATAENGINE(extsysmon, ExtendedSysMon)
|
||||
|
||||
#include "extsysmon.moc"
|
45
sources/ext-sysmon/extsysmon.h
Normal file
45
sources/ext-sysmon/extsysmon.h
Normal file
@ -0,0 +1,45 @@
|
||||
/***************************************************************************
|
||||
* Copyright (C) 2013 by Evgeniy Alekseev <esalekseev@gmail.com> *
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
* This program is distributed in the hope that it will be useful, *
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||
* GNU General Public License for more details. *
|
||||
* *
|
||||
* You should have received a copy of the GNU General Public License *
|
||||
* along with this program; if not, write to the *
|
||||
* Free Software Foundation, Inc., *
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef EXTSYSMON_H
|
||||
#define EXTSYSMON_H
|
||||
|
||||
#include <Plasma/DataEngine>
|
||||
|
||||
class ExtendedSysMon : public Plasma::DataEngine
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
ExtendedSysMon(QObject *parent, const QVariantList &args);
|
||||
|
||||
protected:
|
||||
bool sourceRequestEvent(const QString &name);
|
||||
bool updateSourceEvent(const QString &source);
|
||||
bool readConfiguration();
|
||||
QStringList sources() const;
|
||||
// main configuration
|
||||
QStringList hddDev;
|
||||
QString gpuDev;
|
||||
// configuration
|
||||
QString mpdAddress;
|
||||
QString mpdPort;
|
||||
};
|
||||
|
||||
#endif // EXTSYSMON_H
|
20
sources/ext-sysmon/plasma-engine-extsysmon.desktop
Normal file
20
sources/ext-sysmon/plasma-engine-extsysmon.desktop
Normal file
@ -0,0 +1,20 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Name=Extended SystemMonitor DataEngine
|
||||
Comment=Adds gpu, gputemp and hddtemp to DataEngine
|
||||
ServiceTypes=Plasma/DataEngine
|
||||
Type=Service
|
||||
Icon=utilities-system-monitor
|
||||
|
||||
X-KDE-ServiceTypes=Plasma/DataEngine
|
||||
X-KDE-Library=plasma_engine_extsysmon
|
||||
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=@PROJECT_VERSION@
|
||||
X-KDE-PluginInfo-Category=System Information
|
||||
X-KDE-PluginInfo-Depends=
|
||||
X-KDE-PluginInfo-License=GPL
|
||||
X-KDE-PluginInfo-EnabledByDefault=true
|
33
sources/ptm/CMakeLists.txt
Normal file
33
sources/ptm/CMakeLists.txt
Normal 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})
|
@ -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")
|
@ -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">"/sys/class/power_supply/BAT0/capacity" by default</string>
|
||||
<string>"/sys/class/power_supply/BAT0/capacity" 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">"/sys/class/power_supply/AC/online" by default</string>
|
||||
<string>"/sys/class/power_supply/AC/online" 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>
|
@ -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=
|
24
sources/ptm/po/CMakeLists.txt
Normal file
24
sources/ptm/po/CMakeLists.txt
Normal 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})
|
15
sources/ptm/po/create_list_files.sh
Executable file
15
sources/ptm/po/create_list_files.sh
Executable 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/\&/\&/g" | sed -e "s/\'/'/g" | sed -e "s/\"/\"/g" | sed -e "s/\</</g" | sed -e "s/\>/>/g" | grep -v '^$' | sort --unique --ignore-leading-blanks > "$WDIR/satellite.list"
|
364
sources/ptm/po/en.po
Normal file
364
sources/ptm/po/en.po
Normal 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"
|
||||
|
81
sources/ptm/po/extract_messages.sh
Executable file
81
sources/ptm/po/extract_messages.sh
Executable 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"
|
||||
|
330
sources/ptm/po/py-text-monitor.pot
Normal file
330
sources/ptm/po/py-text-monitor.pot
Normal 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
365
sources/ptm/po/ru.po
Normal 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
9
sources/version.h.in
Normal 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 */
|
Reference in New Issue
Block a user