This commit is contained in:
Valeria Fadeeva 2024-01-03 20:41:39 +05:00
parent 18391d874b
commit 53f81b05f8
9 changed files with 83 additions and 21 deletions

View File

@ -12,7 +12,7 @@ Item {
function upgrade() {
if (root.total == 0 || isNaN(root.total)){
root.createNotification("Обновлений нет")
root.createNotification(i18n("Nothing update"))
// root.listOfPackages = ""
return
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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 <EMAIL@ADDRESS>, 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 <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\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 "Обновление не удалось"

View File

@ -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 <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\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 ""