Update
This commit is contained in:
parent
18391d874b
commit
53f81b05f8
Binary file not shown.
|
@ -12,7 +12,7 @@ Item {
|
||||||
|
|
||||||
function upgrade() {
|
function upgrade() {
|
||||||
if (root.total == 0 || isNaN(root.total)){
|
if (root.total == 0 || isNaN(root.total)){
|
||||||
root.createNotification("Обновлений нет")
|
root.createNotification(i18n("Nothing update"))
|
||||||
// root.listOfPackages = ""
|
// root.listOfPackages = ""
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
|
@ -49,7 +49,7 @@ ColumnLayout {
|
||||||
|
|
||||||
TextField {
|
TextField {
|
||||||
id: commandForCheckingUpdates
|
id: commandForCheckingUpdates
|
||||||
placeholderText: qsTr("Write command for cheching updates")
|
placeholderText: i18n("Write command for cheching updates")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -62,7 +62,7 @@ ColumnLayout {
|
||||||
|
|
||||||
TextField {
|
TextField {
|
||||||
id: commandForUpgrade
|
id: commandForUpgrade
|
||||||
placeholderText: qsTr("Write command for upgrade")
|
placeholderText: i18n("Write command for upgrade")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -129,7 +129,7 @@ Item {
|
||||||
listOfPackages = stdoutText
|
listOfPackages = stdoutText
|
||||||
|
|
||||||
if (showNotification) {
|
if (showNotification) {
|
||||||
notifyText = "Найдено " + total + " пакетов для обновления"
|
notifyText = i18n("Found %1 packages to update", total)
|
||||||
createNotification(notifyText)
|
createNotification(notifyText)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -154,7 +154,7 @@ Item {
|
||||||
errorText = strip(stderr).trim()
|
errorText = strip(stderr).trim()
|
||||||
|
|
||||||
if (showNotification) {
|
if (showNotification) {
|
||||||
notifyText = "Ошибка обновления: \n" + errorText
|
notifyText = i18n("Update error: \n%1", errorText)
|
||||||
createNotification(notifyText)
|
createNotification(notifyText)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -175,7 +175,7 @@ Item {
|
||||||
else if (exitCode == 127) {
|
else if (exitCode == 127) {
|
||||||
|
|
||||||
if (showNotification) {
|
if (showNotification) {
|
||||||
notifyText = "Возможно программа, указанная в настройках, не существует на этом компьютере"
|
notifyText = i18n("Perhaps the program specified in the settings does not exist on this computer")
|
||||||
createNotification(notifyText)
|
createNotification(notifyText)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -200,7 +200,7 @@ Item {
|
||||||
listOfPackages = ""
|
listOfPackages = ""
|
||||||
|
|
||||||
// if (showNotification) {
|
// if (showNotification) {
|
||||||
// notifyText = "Обновление успешно завершено"
|
// notifyText = i18n("Update succesed")
|
||||||
// createNotification(notifyText)
|
// createNotification(notifyText)
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
@ -213,7 +213,7 @@ Item {
|
||||||
// Неправильно указана программа в настройках
|
// Неправильно указана программа в настройках
|
||||||
else if (exitCode == 127) {
|
else if (exitCode == 127) {
|
||||||
if (showNotification) {
|
if (showNotification) {
|
||||||
notifyText = "Возможно программа, указанная в настройках, не существует на этом компьютере"
|
notifyText = i18n("Perhaps the program specified in the settings does not exist on this computer")
|
||||||
createNotification(notifyText)
|
createNotification(notifyText)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -224,7 +224,7 @@ Item {
|
||||||
// Если есть ошибки при обновлении пакетов
|
// Если есть ошибки при обновлении пакетов
|
||||||
else {
|
else {
|
||||||
if (showNotification) {
|
if (showNotification) {
|
||||||
notifyText = "Обновление завершено с ошибками"
|
notifyText = i18n("Update failed")
|
||||||
createNotification(notifyText)
|
createNotification(notifyText)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ Go to `~/.local/share/plasma/plasmoids/com.github.Melawy.ArchUpdate/translate/`
|
||||||
|
|
||||||
## New Translations
|
## 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
|
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
|
## Status
|
||||||
| Locale | Lines | % Done|
|
| Locale | Lines | % Done|
|
||||||
|----------|---------|-------|
|
|----------|---------|-------|
|
||||||
| Template | 9 | |
|
| Template | 16 | |
|
||||||
| ru_RU | 8/9 | 88% |
|
| ru_RU | 14/16 | 87% |
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
DIR=`cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd`
|
DIR=`cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd`
|
||||||
plasmoidName=com.github.Melawy.ArchUpdate
|
plasmoidName=com.github.Melawy.ArchUpdate
|
||||||
widgetName="${plasmoidName##*.}" # Strip namespace
|
widgetName="${plasmoidName##*.}" # Strip namespace
|
||||||
website=https://melawy.ru
|
website=https://github.com/Valeria-Fadeeva
|
||||||
bugAddress="$website"
|
bugAddress="$website"
|
||||||
packageRoot=".." # Root of translatable sources
|
packageRoot=".." # Root of translatable sources
|
||||||
projectName="plasma_applet_${plasmoidName}" # project name
|
projectName="plasma_applet_${plasmoidName}" # project name
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
DIR=`cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd`
|
DIR=`cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd`
|
||||||
plasmoidName=com.github.Melawy.ArchUpdate
|
plasmoidName=com.github.Melawy.ArchUpdate
|
||||||
widgetName="${plasmoidName##*.}" # Strip namespace
|
widgetName="${plasmoidName##*.}" # Strip namespace
|
||||||
website=https://melawy.ru
|
website=https://github.com/Valeria-Fadeeva
|
||||||
bugAddress="$website"
|
bugAddress="$website"
|
||||||
packageRoot=".." # Root of translatable sources
|
packageRoot=".." # Root of translatable sources
|
||||||
projectName="plasma_applet_${plasmoidName}" # project name
|
projectName="plasma_applet_${plasmoidName}" # project name
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
# Translation of apdatifier in ru_RU
|
# Translation of ArchUpdate in ru_RU
|
||||||
# Copyright (C) 2024
|
# 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.
|
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||||
#
|
#
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: apdatifier\n"
|
"Project-Id-Version: ArchUpdate\n"
|
||||||
"Report-Msgid-Bugs-To: https://melawy.ru\n"
|
"Report-Msgid-Bugs-To: https://github.com/Valeria-Fadeeva\n"
|
||||||
"POT-Creation-Date: 2024-01-03 17:54+0500\n"
|
"POT-Creation-Date: 2024-01-03 20:40+0500\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
|
@ -22,6 +22,10 @@ msgctxt "@title"
|
||||||
msgid "General"
|
msgid "General"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: ../contents/service/Updater.qml
|
||||||
|
msgid "Nothing update"
|
||||||
|
msgstr "Обновлений нет"
|
||||||
|
|
||||||
#: ../contents/ui/config/configGeneral.qml
|
#: ../contents/ui/config/configGeneral.qml
|
||||||
msgctxt "@title:label"
|
msgctxt "@title:label"
|
||||||
msgid "Update interval (minutes):"
|
msgid "Update interval (minutes):"
|
||||||
|
@ -42,11 +46,19 @@ msgctxt "@title:label"
|
||||||
msgid "Command for cheching updates:"
|
msgid "Command for cheching updates:"
|
||||||
msgstr "Команда для проверки обновлений"
|
msgstr "Команда для проверки обновлений"
|
||||||
|
|
||||||
|
#: ../contents/ui/config/configGeneral.qml
|
||||||
|
msgid "Write command for cheching updates"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: ../contents/ui/config/configGeneral.qml
|
#: ../contents/ui/config/configGeneral.qml
|
||||||
msgctxt "@title:label"
|
msgctxt "@title:label"
|
||||||
msgid "Command for upgrade:"
|
msgid "Command for upgrade:"
|
||||||
msgstr "Команда для обновления"
|
msgstr "Команда для обновления"
|
||||||
|
|
||||||
|
#: ../contents/ui/config/configGeneral.qml
|
||||||
|
msgid "Write command for upgrade"
|
||||||
|
msgstr "Напишите команду для проверки обновлений"
|
||||||
|
|
||||||
#: ../contents/ui/Full.qml
|
#: ../contents/ui/Full.qml
|
||||||
msgid "Check updates"
|
msgid "Check updates"
|
||||||
msgstr "Проверить обновления"
|
msgstr "Проверить обновления"
|
||||||
|
@ -58,3 +70,23 @@ msgstr "Установить обновления"
|
||||||
#: ../contents/ui/main.qml
|
#: ../contents/ui/main.qml
|
||||||
msgid "Some text"
|
msgid "Some text"
|
||||||
msgstr "Какой-то текст"
|
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 "Обновление не удалось"
|
||||||
|
|
|
@ -7,8 +7,8 @@
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: ArchUpdate\n"
|
"Project-Id-Version: ArchUpdate\n"
|
||||||
"Report-Msgid-Bugs-To: https://melawy.ru\n"
|
"Report-Msgid-Bugs-To: https://github.com/Valeria-Fadeeva\n"
|
||||||
"POT-Creation-Date: 2024-01-03 17:54+0500\n"
|
"POT-Creation-Date: 2024-01-03 20:40+0500\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
|
@ -22,6 +22,10 @@ msgctxt "@title"
|
||||||
msgid "General"
|
msgid "General"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: ../contents/service/Updater.qml
|
||||||
|
msgid "Nothing update"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: ../contents/ui/config/configGeneral.qml
|
#: ../contents/ui/config/configGeneral.qml
|
||||||
msgctxt "@title:label"
|
msgctxt "@title:label"
|
||||||
msgid "Update interval (minutes):"
|
msgid "Update interval (minutes):"
|
||||||
|
@ -42,11 +46,19 @@ msgctxt "@title:label"
|
||||||
msgid "Command for cheching updates:"
|
msgid "Command for cheching updates:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: ../contents/ui/config/configGeneral.qml
|
||||||
|
msgid "Write command for cheching updates"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: ../contents/ui/config/configGeneral.qml
|
#: ../contents/ui/config/configGeneral.qml
|
||||||
msgctxt "@title:label"
|
msgctxt "@title:label"
|
||||||
msgid "Command for upgrade:"
|
msgid "Command for upgrade:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: ../contents/ui/config/configGeneral.qml
|
||||||
|
msgid "Write command for upgrade"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: ../contents/ui/Full.qml
|
#: ../contents/ui/Full.qml
|
||||||
msgid "Check updates"
|
msgid "Check updates"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -58,3 +70,21 @@ msgstr ""
|
||||||
#: ../contents/ui/main.qml
|
#: ../contents/ui/main.qml
|
||||||
msgid "Some text"
|
msgid "Some text"
|
||||||
msgstr ""
|
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 ""
|
||||||
|
|
Loading…
Reference in New Issue