From 53f81b05f8ca8d7b28b469ebf4de803798788de8 Mon Sep 17 00:00:00 2001 From: Valeria Fadeeva Date: Wed, 3 Jan 2024 20:41:39 +0500 Subject: [PATCH] Update --- ...sma_applet_com.github.Melawy.ArchUpdate.mo | Bin 1062 -> 1782 bytes .../contents/service/Updater.qml | 2 +- .../contents/ui/config/configGeneral.qml | 4 +- .../contents/ui/main.qml | 12 ++--- .../translate/ReadMe.md | 6 +-- com.github.Melawy.ArchUpdate/translate/build | 2 +- com.github.Melawy.ArchUpdate/translate/merge | 2 +- .../translate/ru_RU.po | 42 +++++++++++++++--- .../translate/template.pot | 34 +++++++++++++- 9 files changed, 83 insertions(+), 21 deletions(-) diff --git a/com.github.Melawy.ArchUpdate/contents/locale/ru_RU/LC_MESSAGES/plasma_applet_com.github.Melawy.ArchUpdate.mo b/com.github.Melawy.ArchUpdate/contents/locale/ru_RU/LC_MESSAGES/plasma_applet_com.github.Melawy.ArchUpdate.mo index a7410b47f5388b245d6ed1ad0f8dd3bed960c189..78b72d0c8d9544648fcb67295f83f3c4547e0d9c 100644 GIT binary patch literal 1782 zcma)*O>Y}T7{>=lc`*e92M`5`;ZR80Zqi5`s%@!aVy9TLlPGb5+S_D3@ou}`S5gWifsv&C}j9Sxg>8M(PC-^8Q8;HIZb%Wuqi? zKPekiP3Sp2%wyr*5OtYwqq>)@6eUK4;ejm@9udqYrS?S(2Ve47D@bhcB$gg(mo=o$ zE)r=BicEM-AvQY0<;@^5T+wxqa8EU22-9p@H6%CkreR&}QfsAMo;y9fe=;wEP}bNN zIxvzP4_evn51Z8Ly7Y`wsyVY#Co~qG*Pg!@F*hY+rHxZb>OsxY_P9e`fpKvRsv)3lZ zi@CB$j8oMjN>TX@>B>*+GH zKV}DQysp|d$In)}%o97eh&ux)?TE1Ttgv2blN7UniZAbu^SGVak{XZ6ouIb z>9^?d3gtOw(CPBtU)J{4y4KayqHhNuMhEeh_IkgIwjnB|*%y?3V`=N4_5bS|djhZg B`K15= delta 341 zcmXBNJxjwt0D$3({jgSw;NVaNBMxHqtaBU$2ce)MDvn|>XH89;GPEHPj zldk@cV*L@$z84SPJeT7>ej6{f`_XLqNie2pfdXpKE7|c)i!`PdIgSuZxQ_F9fGgNT zd+rfu@EPr$Z@5gKw8sBvLWnJ_mx}weLL7KXTq4`?s^z*QV$6Q|2Oj+_@vMUCvJ z{8N0{T0A<5RlAZa=j*&P(8iA68TxxU>M zUWO{IAE_ixjojDWFpxW0SId*wbFYj^wAXI;Rpj5?ZKT=zUg^iluPd#5yW0E%#nm~* diff --git a/com.github.Melawy.ArchUpdate/contents/service/Updater.qml b/com.github.Melawy.ArchUpdate/contents/service/Updater.qml index 0ca0e58..b1aa3d4 100644 --- a/com.github.Melawy.ArchUpdate/contents/service/Updater.qml +++ b/com.github.Melawy.ArchUpdate/contents/service/Updater.qml @@ -12,7 +12,7 @@ Item { function upgrade() { if (root.total == 0 || isNaN(root.total)){ - root.createNotification("Обновлений нет") + root.createNotification(i18n("Nothing update")) // root.listOfPackages = "" return } diff --git a/com.github.Melawy.ArchUpdate/contents/ui/config/configGeneral.qml b/com.github.Melawy.ArchUpdate/contents/ui/config/configGeneral.qml index caa0d33..eb67203 100644 --- a/com.github.Melawy.ArchUpdate/contents/ui/config/configGeneral.qml +++ b/com.github.Melawy.ArchUpdate/contents/ui/config/configGeneral.qml @@ -49,7 +49,7 @@ ColumnLayout { TextField { id: commandForCheckingUpdates - placeholderText: qsTr("Write command for cheching updates") + placeholderText: i18n("Write command for cheching updates") } } @@ -62,7 +62,7 @@ ColumnLayout { TextField { id: commandForUpgrade - placeholderText: qsTr("Write command for upgrade") + placeholderText: i18n("Write command for upgrade") } } diff --git a/com.github.Melawy.ArchUpdate/contents/ui/main.qml b/com.github.Melawy.ArchUpdate/contents/ui/main.qml index a3a03e8..09b7612 100644 --- a/com.github.Melawy.ArchUpdate/contents/ui/main.qml +++ b/com.github.Melawy.ArchUpdate/contents/ui/main.qml @@ -129,7 +129,7 @@ Item { listOfPackages = stdoutText if (showNotification) { - notifyText = "Найдено " + total + " пакетов для обновления" + notifyText = i18n("Found %1 packages to update", total) createNotification(notifyText) } @@ -154,7 +154,7 @@ Item { errorText = strip(stderr).trim() if (showNotification) { - notifyText = "Ошибка обновления: \n" + errorText + notifyText = i18n("Update error: \n%1", errorText) createNotification(notifyText) } } @@ -175,7 +175,7 @@ Item { else if (exitCode == 127) { if (showNotification) { - notifyText = "Возможно программа, указанная в настройках, не существует на этом компьютере" + notifyText = i18n("Perhaps the program specified in the settings does not exist on this computer") createNotification(notifyText) } @@ -200,7 +200,7 @@ Item { listOfPackages = "" // if (showNotification) { - // notifyText = "Обновление успешно завершено" + // notifyText = i18n("Update succesed") // createNotification(notifyText) // } @@ -213,7 +213,7 @@ Item { // Неправильно указана программа в настройках else if (exitCode == 127) { if (showNotification) { - notifyText = "Возможно программа, указанная в настройках, не существует на этом компьютере" + notifyText = i18n("Perhaps the program specified in the settings does not exist on this computer") createNotification(notifyText) } @@ -224,7 +224,7 @@ Item { // Если есть ошибки при обновлении пакетов else { if (showNotification) { - notifyText = "Обновление завершено с ошибками" + notifyText = i18n("Update failed") createNotification(notifyText) } diff --git a/com.github.Melawy.ArchUpdate/translate/ReadMe.md b/com.github.Melawy.ArchUpdate/translate/ReadMe.md index 3f01c0d..5022703 100644 --- a/com.github.Melawy.ArchUpdate/translate/ReadMe.md +++ b/com.github.Melawy.ArchUpdate/translate/ReadMe.md @@ -8,7 +8,7 @@ Go to `~/.local/share/plasma/plasmoids/com.github.Melawy.ArchUpdate/translate/` ## New Translations -1. Fill out [`template.pot`](template.pot) with your translations then open a [new issue](https://github.com/exequtic/apdatifier/issues/new), name the file `spanish.txt`, attach the txt file to the issue (drag and drop). +1. Fill out [`template.pot`](template.pot) with your translations then open a [new issue](https://github.com/Valeria-Fadeeva/issues/new), name the file `spanish.txt`, attach the txt file to the issue (drag and drop). Or if you know how to make a pull request @@ -27,5 +27,5 @@ Or if you know how to make a pull request ## Status | Locale | Lines | % Done| |----------|---------|-------| -| Template | 9 | | -| ru_RU | 8/9 | 88% | +| Template | 16 | | +| ru_RU | 14/16 | 87% | diff --git a/com.github.Melawy.ArchUpdate/translate/build b/com.github.Melawy.ArchUpdate/translate/build index 3f41a0b..4e75fe0 100755 --- a/com.github.Melawy.ArchUpdate/translate/build +++ b/com.github.Melawy.ArchUpdate/translate/build @@ -8,7 +8,7 @@ DIR=`cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd` plasmoidName=com.github.Melawy.ArchUpdate widgetName="${plasmoidName##*.}" # Strip namespace -website=https://melawy.ru +website=https://github.com/Valeria-Fadeeva bugAddress="$website" packageRoot=".." # Root of translatable sources projectName="plasma_applet_${plasmoidName}" # project name diff --git a/com.github.Melawy.ArchUpdate/translate/merge b/com.github.Melawy.ArchUpdate/translate/merge index 09dae0c..46e2b6a 100755 --- a/com.github.Melawy.ArchUpdate/translate/merge +++ b/com.github.Melawy.ArchUpdate/translate/merge @@ -8,7 +8,7 @@ DIR=`cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd` plasmoidName=com.github.Melawy.ArchUpdate widgetName="${plasmoidName##*.}" # Strip namespace -website=https://melawy.ru +website=https://github.com/Valeria-Fadeeva bugAddress="$website" packageRoot=".." # Root of translatable sources projectName="plasma_applet_${plasmoidName}" # project name diff --git a/com.github.Melawy.ArchUpdate/translate/ru_RU.po b/com.github.Melawy.ArchUpdate/translate/ru_RU.po index bcd0d4f..8788590 100644 --- a/com.github.Melawy.ArchUpdate/translate/ru_RU.po +++ b/com.github.Melawy.ArchUpdate/translate/ru_RU.po @@ -1,14 +1,14 @@ -# Translation of apdatifier in ru_RU +# Translation of ArchUpdate in ru_RU # Copyright (C) 2024 -# This file is distributed under the same license as the apdatifier package. +# This file is distributed under the same license as the ArchUpdate package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: apdatifier\n" -"Report-Msgid-Bugs-To: https://melawy.ru\n" -"POT-Creation-Date: 2024-01-03 17:54+0500\n" +"Project-Id-Version: ArchUpdate\n" +"Report-Msgid-Bugs-To: https://github.com/Valeria-Fadeeva\n" +"POT-Creation-Date: 2024-01-03 20:40+0500\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -22,6 +22,10 @@ msgctxt "@title" msgid "General" msgstr "" +#: ../contents/service/Updater.qml +msgid "Nothing update" +msgstr "Обновлений нет" + #: ../contents/ui/config/configGeneral.qml msgctxt "@title:label" msgid "Update interval (minutes):" @@ -42,11 +46,19 @@ msgctxt "@title:label" msgid "Command for cheching updates:" msgstr "Команда для проверки обновлений" +#: ../contents/ui/config/configGeneral.qml +msgid "Write command for cheching updates" +msgstr "" + #: ../contents/ui/config/configGeneral.qml msgctxt "@title:label" msgid "Command for upgrade:" msgstr "Команда для обновления" +#: ../contents/ui/config/configGeneral.qml +msgid "Write command for upgrade" +msgstr "Напишите команду для проверки обновлений" + #: ../contents/ui/Full.qml msgid "Check updates" msgstr "Проверить обновления" @@ -58,3 +70,23 @@ msgstr "Установить обновления" #: ../contents/ui/main.qml msgid "Some text" msgstr "Какой-то текст" + +#: ../contents/ui/main.qml +msgid "Found %1 packages to update" +msgstr "Найдено %1 пакетов для обновления" + +#: ../contents/ui/main.qml +msgid "" +"Update error: \n" +"%1" +msgstr "" +"Ошибка обновления: \n" +"%1" + +#: ../contents/ui/main.qml +msgid "Perhaps the program specified in the settings does not exist on this computer" +msgstr "Возможно программа, указанная в настройках, не существует на этом компьютере" + +#: ../contents/ui/main.qml +msgid "Update failed" +msgstr "Обновление не удалось" diff --git a/com.github.Melawy.ArchUpdate/translate/template.pot b/com.github.Melawy.ArchUpdate/translate/template.pot index 3a8d530..0fc6806 100644 --- a/com.github.Melawy.ArchUpdate/translate/template.pot +++ b/com.github.Melawy.ArchUpdate/translate/template.pot @@ -7,8 +7,8 @@ msgid "" msgstr "" "Project-Id-Version: ArchUpdate\n" -"Report-Msgid-Bugs-To: https://melawy.ru\n" -"POT-Creation-Date: 2024-01-03 17:54+0500\n" +"Report-Msgid-Bugs-To: https://github.com/Valeria-Fadeeva\n" +"POT-Creation-Date: 2024-01-03 20:40+0500\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -22,6 +22,10 @@ msgctxt "@title" msgid "General" msgstr "" +#: ../contents/service/Updater.qml +msgid "Nothing update" +msgstr "" + #: ../contents/ui/config/configGeneral.qml msgctxt "@title:label" msgid "Update interval (minutes):" @@ -42,11 +46,19 @@ msgctxt "@title:label" msgid "Command for cheching updates:" msgstr "" +#: ../contents/ui/config/configGeneral.qml +msgid "Write command for cheching updates" +msgstr "" + #: ../contents/ui/config/configGeneral.qml msgctxt "@title:label" msgid "Command for upgrade:" msgstr "" +#: ../contents/ui/config/configGeneral.qml +msgid "Write command for upgrade" +msgstr "" + #: ../contents/ui/Full.qml msgid "Check updates" msgstr "" @@ -58,3 +70,21 @@ msgstr "" #: ../contents/ui/main.qml msgid "Some text" msgstr "" + +#: ../contents/ui/main.qml +msgid "Found %1 packages to update" +msgstr "" + +#: ../contents/ui/main.qml +msgid "" +"Update error: \n" +"%1" +msgstr "" + +#: ../contents/ui/main.qml +msgid "Perhaps the program specified in the settings does not exist on this computer" +msgstr "" + +#: ../contents/ui/main.qml +msgid "Update failed" +msgstr ""