added ui translation to plasmoid

This commit is contained in:
arcan1s 2014-04-06 12:34:31 +04:00
parent 762e43c0d6
commit 1a7d3cb50a
4 changed files with 130 additions and 23 deletions

View File

@ -157,21 +157,21 @@ void Netctl::createActions()
{
menuActions.clear();
startProfile = new QAction(QString("Start profile"), this);
startProfile = new QAction(i18n("Start profile"), this);
startProfileMenu = new QMenu(NULL);
startProfile->setMenu(startProfileMenu);
connect(startProfileMenu, SIGNAL(triggered(QAction *)), this, SLOT(startProfileSlot(QAction *)));
menuActions.append(startProfile);
stopProfile = new QAction(QString("Stop profile"), this);
stopProfile = new QAction(i18n("Stop profile"), this);
connect(stopProfile, SIGNAL(triggered(bool)), this, SLOT(stopProfileSlot()));
menuActions.append(stopProfile);
restartProfile = new QAction(QString("Restart profile"), this);
restartProfile = new QAction(i18n("Restart profile"), this);
connect(restartProfile, SIGNAL(triggered(bool)), this, SLOT(restartProfileSlot()));
menuActions.append(restartProfile);
enableProfileAutoload = new QAction(QString("Enable profile"), this);
enableProfileAutoload = new QAction(i18n("Enable profile"), this);
connect(enableProfileAutoload, SIGNAL(triggered(bool)), this, SLOT(enableProfileAutoloadSlot()));
menuActions.append(enableProfileAutoload);
}
@ -180,19 +180,19 @@ void Netctl::createActions()
QList<QAction*> Netctl::contextualActions()
{
if (status) {
startProfile->setText(QString("Start another profile"));
startProfile->setText(i18n("Start another profile"));
stopProfile->setVisible(true);
stopProfile->setText(QString("Stop ") + profileName);
stopProfile->setText(i18n("Stop ") + profileName);
restartProfile->setVisible(true);
restartProfile->setText(QString("Restart ") + profileName);
restartProfile->setText(i18n("Restart ") + profileName);
enableProfileAutoload->setVisible(true);
if (profileStatus.contains(QString("enabled")))
enableProfileAutoload->setText(QString("Disable ") + profileName);
enableProfileAutoload->setText(i18n("Disable ") + profileName);
else
enableProfileAutoload->setText(QString("Enable ") + profileName);
enableProfileAutoload->setText(i18n("Enable ") + profileName);
}
else {
startProfile->setText(QString("Start profile"));
startProfile->setText(i18n("Start profile"));
stopProfile->setVisible(false);
restartProfile->setVisible(false);
enableProfileAutoload->setVisible(false);

View File

@ -6,19 +6,55 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: http://kde-look.org/content/show.php?content=98925\n"
"POT-Creation-Date: 2014-03-25 10:52+0400\n"
"PO-Revision-Date: 2014-03-25 10:54+0400\n"
"POT-Creation-Date: 2014-04-06 12:31+0400\n"
"PO-Revision-Date: 2014-04-06 12:33+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"
"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"
#: netctl.cpp:398
#: netctl.cpp:160 netctl.cpp:195
msgid "Start profile"
msgstr "Start profile"
#: netctl.cpp:166
msgid "Stop profile"
msgstr "Stop profile"
#: netctl.cpp:170
msgid "Restart profile"
msgstr "Restart profile"
#: netctl.cpp:174
msgid "Enable profile"
msgstr "Enable profile"
#: netctl.cpp:183
msgid "Start another profile"
msgstr "Start another profile"
#: netctl.cpp:185
msgid "Stop "
msgstr "Stop "
#: netctl.cpp:187
msgid "Restart "
msgstr "Restart "
#: netctl.cpp:190
msgid "Disable "
msgstr "Disable "
#: netctl.cpp:192
msgid "Enable "
msgstr "Enable "
#: netctl.cpp:399
msgid "Netctl plasmoid"
msgstr "Netctl plasmoid"

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://kde-look.org/content/show.php?content=98925\n"
"POT-Creation-Date: 2014-03-25 10:52+0400\n"
"POT-Creation-Date: 2014-04-06 12:31+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"
@ -17,7 +17,43 @@ msgstr ""
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
#: netctl.cpp:398
#: netctl.cpp:160 netctl.cpp:195
msgid "Start profile"
msgstr ""
#: netctl.cpp:166
msgid "Stop profile"
msgstr ""
#: netctl.cpp:170
msgid "Restart profile"
msgstr ""
#: netctl.cpp:174
msgid "Enable profile"
msgstr ""
#: netctl.cpp:183
msgid "Start another profile"
msgstr ""
#: netctl.cpp:185
msgid "Stop "
msgstr ""
#: netctl.cpp:187
msgid "Restart "
msgstr ""
#: netctl.cpp:190
msgid "Disable "
msgstr ""
#: netctl.cpp:192
msgid "Enable "
msgstr ""
#: netctl.cpp:399
msgid "Netctl plasmoid"
msgstr ""

View File

@ -6,19 +6,55 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: http://kde-look.org/content/show.php?content=98925\n"
"POT-Creation-Date: 2014-03-25 10:52+0400\n"
"PO-Revision-Date: 2014-03-25 10:58+0400\n"
"POT-Creation-Date: 2014-04-06 12:31+0400\n"
"PO-Revision-Date: 2014-04-06 12:32+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"
"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"
#: netctl.cpp:398
#: netctl.cpp:160 netctl.cpp:195
msgid "Start profile"
msgstr "Запустить профиль"
#: netctl.cpp:166
msgid "Stop profile"
msgstr "Остановить профиль"
#: netctl.cpp:170
msgid "Restart profile"
msgstr "Перезапустить профиль"
#: netctl.cpp:174
msgid "Enable profile"
msgstr "Включить профиль"
#: netctl.cpp:183
msgid "Start another profile"
msgstr "Запустить другой профиль"
#: netctl.cpp:185
msgid "Stop "
msgstr "Остановить "
#: netctl.cpp:187
msgid "Restart "
msgstr "Перезапустить "
#: netctl.cpp:190
msgid "Disable "
msgstr "Отключить "
#: netctl.cpp:192
msgid "Enable "
msgstr "Включить "
#: netctl.cpp:399
msgid "Netctl plasmoid"
msgstr "Netctl plasmoid"
@ -197,4 +233,3 @@ msgctxt "EMAIL OF TRANSLATORS"
msgid "Your emails"
msgstr "esalexeev@gmail.com"