Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions package/contents/tools/sh/management
Original file line number Diff line number Diff line change
Expand Up @@ -385,11 +385,13 @@ rebuildPython() {
printExec "$wrapper_sudo -S --rebuild" "$rebuild_packages"
while true; do
printQuestion "$MNG_RESUME"; read -r answer
case "$answer" in
[Yy]*) echo; break;;
[Nn]*|"") echo; pressReturn;;
*) ;;
esac
if [[ $answer =~ $YES_EXPR ]]; then
echo
break
elif [[ -z $answer || $answer =~ $NO_EXPR ]]; then
echo
pressReturn
fi
done
pacman -Qqo "$rebuild_dir" | pacman -Qqm - | $wrapper -S --rebuild -
fi
Expand Down Expand Up @@ -572,4 +574,4 @@ main
# \e[H Move cursor to top-left
# \e[;r Set the scroll region to its default value
# stty -echo Hide user input
# stty echo Show user input
# stty echo Show user input
7 changes: 6 additions & 1 deletion package/contents/tools/sh/messages
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,13 @@ MNG_WARN = i18n("Review dependency warnings before removing")
MNG_RESUME = i18n("Resume?")
MNG_RETURN = i18n("Press Enter to return menu")
MNG_CALC = i18n("Calculating...")

MNG_EXEC = i18n("Executed:")
MNG_DONE = i18n("Nothing to do")

UTILS_YES_NO = i18n("y/N")

YES_EXPR = i18n("^[+1yY]")
NO_EXPR = i18n("^[-0nN]")

CMD_ERR = i18n("Required installed")
NEWS_ERR = i18n("Cannot fetch news ")
11 changes: 6 additions & 5 deletions package/contents/tools/sh/mirrorlist
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,12 @@ OUTDATED=false
printImportant "$MIRROR_TIME" "$NORM_TIME"
while true; do
printQuestion "$MIRROR_REFRESH"; read -r answer
case "$answer" in
[Yy]*) echo; break;;
[Nn]*|"") (( MENU )) && { returnMenu; } || { echo; exit; };;
*) ;;
esac
if [[ $answer =~ $YES_EXPR ]]; then
echo
break
elif [[ -z $answer || $answer =~ $NO_EXPR ]]; then
(( MENU )) && { returnMenu; } || { echo; exit; }
fi
done
}

Expand Down
24 changes: 10 additions & 14 deletions package/contents/tools/sh/upgrade
Original file line number Diff line number Diff line change
Expand Up @@ -146,26 +146,22 @@ fullSystemUpgrade() {
printImportant "$UPGRADE_CRITICAL" "${critical_updated[*]}"
while true; do
printQuestion "$UPGRADE_REBOOT"; read -r answer
case "$answer" in
[Yy]*) sys_reboot; exit;;
[Nn]*|"") break;;
*) ;;
esac
if [[ $answer =~ $YES_EXPR ]]; then
tput civis
printMsg "$UPGRADE_REBOOTING"
read -s -t 2
qdbus6 org.kde.Shutdown /Shutdown logoutAndReboot
tput cnorm
exit
elif [[ -z $answer || $answer =~ $NO_EXPR ]]; then
break
fi
done
fi

printClose
}

sys_reboot() {
tput civis
printMsg "$UPGRADE_REBOOTING"

read -s -t 2

qdbus6 org.kde.Shutdown /Shutdown logoutAndReboot
}

flatpak_package() {
printMsg "$UPGRADE_PACKAGE: $2"
echo
Expand Down
47 changes: 26 additions & 21 deletions package/contents/tools/sh/utils
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ printImportant() {
}

printQuestion() {
echo -en "$(colorize yellow bold "$ICO_QUESTION $1") [y/N]: "
echo -en "$(colorize yellow bold "$ICO_QUESTION $1") [$UTILS_YES_NO]: "
}

printExec() {
Expand Down Expand Up @@ -165,11 +165,11 @@ restartPlasmashell() {
sleep 1
while true; do
printQuestion "$WIDGETS_RESTART"; read -r answer
case "$answer" in
[Yy]*) break;;
[Nn]*|"") exit;;
*) ;;
esac
if [[ $answer =~ $YES_EXPR ]]; then
break
elif [[ -z $answer || $answer =~ $NO_EXPR ]]; then
exit
fi
done
eval ${restartCommand}
else
Expand Down Expand Up @@ -411,11 +411,14 @@ install_devel() {
[[ $trayEnabledByDefault == "true" ]] && updateJson $metadata "$(jq '.KPlugin.EnabledByDefault = true' $metadata)"
while true; do
printQuestion "Do you want build translations?"; read -r answer
case "$answer" in
[Yy]*) cd translate; bash build; cd ..; break;;
[Nn]*|"") break;;
*) ;;
esac
if [[ $answer =~ $YES_EXPR ]]; then
cd translate
bash build
cd ..
break
elif [[ -z $answer || $answer =~ $NO_EXPR ]]; then
break
fi
done
echo
tar --exclude=./apdatifier.tar -cf apdatifier.tar .
Expand All @@ -439,11 +442,12 @@ install_stable() {
while true; do
printImportant "It looks like you already have the stable version."
printQuestion "Do you still want to proceed?"; read -r answer
case "$answer" in
[Yy]*) break;;
[Nn]*|"") printClose; exit;;
*) ;;
esac
if [[ $answer =~ $YES_EXPR ]]; then
break
elif [[ -z $answer || $answer =~ $NO_EXPR ]]; then
printClose
exit
fi
done
fi

Expand All @@ -466,11 +470,12 @@ uninstall() {

while true; do
printQuestion "Continue?"; read -r answer
case "$answer" in
[Yy]*) break;;
[Nn]*|"") printClose; exit;;
*) ;;
esac
if [[ $answer =~ $YES_EXPR ]]; then
break
elif [[ -z $answer || $answer =~ $NO_EXPR ]]; then
printClose
exit
fi
done

echo
Expand Down
11 changes: 6 additions & 5 deletions package/contents/tools/sh/widgets
Original file line number Diff line number Diff line change
Expand Up @@ -258,11 +258,12 @@ upgrade_all_packages() {
if [[ $widgetConfirmation = true ]]; then
while true; do
printQuestion "$WIDGETS_PROCEED"; read -r answer
case "$answer" in
[Yy]*) echo; break;;
[Nn]*|"") return 0;;
*) ;;
esac
if [[ $answer =~ $YES_EXPR ]]; then
echo
break
elif [[ -z $answer || $answer =~ $NO_EXPR ]]; then
return 0
fi
done
fi

Expand Down
28 changes: 14 additions & 14 deletions package/translate/ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@ Copy the [`template.pot`](template.pot) file to [`./po`](po) directory and name
## Status
| Locale | Lines | % Done|
|----------|---------|-------|
| Template | 315 | |
| de | 276/315 | 87% |
| es | 276/315 | 87% |
| fr | 310/315 | 98% |
| ko | 276/315 | 87% |
| nl | 276/315 | 87% |
| pl | 276/315 | 87% |
| pt_BR | 276/315 | 87% |
| ru | 314/315 | 99% |
| tr | 276/315 | 87% |
| uk | 276/315 | 87% |
| zh_CN | 310/315 | 98% |
| zh_HK | 310/315 | 98% |
| zh_TW | 310/315 | 98% |
| Template | 318 | |
| de | 279/318 | 87% |
| es | 279/318 | 87% |
| fr | 313/318 | 98% |
| ko | 279/318 | 87% |
| nl | 279/318 | 87% |
| pl | 279/318 | 87% |
| pt_BR | 279/318 | 87% |
| ru | 317/318 | 99% |
| tr | 279/318 | 87% |
| uk | 279/318 | 87% |
| zh_CN | 313/318 | 98% |
| zh_HK | 313/318 | 98% |
| zh_TW | 313/318 | 98% |
14 changes: 13 additions & 1 deletion package/translate/po/de.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: apdatifier\n"
"Report-Msgid-Bugs-To: https://github.com/exequtic/apdatifier\n"
"POT-Creation-Date: 2026-03-15 14:56-0300\n"
"POT-Creation-Date: 2026-03-15 22:30-0300\n"
"PO-Revision-Date: 2024-06-15 01:04+0200\n"
"Last-Translator: Peter Boos <mizu@posteo.de>\n"
"Language-Team: German <kde-i18n-de@kde.org>\n"
Expand Down Expand Up @@ -321,6 +321,18 @@ msgstr "Ausgeführt:"
msgid "Nothing to do"
msgstr "Nichts zu tun"

#: ../contents/tools/sh/messages
msgid "y/N"
msgstr "j/N"

#: ../contents/tools/sh/messages
msgid "^[+1yY]"
msgstr "^[+1jJyY]"

#: ../contents/tools/sh/messages
msgid "^[-0nN]"
msgstr "^[-0nN]"

#: ../contents/tools/sh/messages
msgid "Required installed"
msgstr "Erforderlich installiert"
Expand Down
14 changes: 13 additions & 1 deletion package/translate/po/es.po
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: apdatifier\n"
"Report-Msgid-Bugs-To: https://github.com/exequtic/apdatifier\n"
"POT-Creation-Date: 2026-03-15 14:56-0300\n"
"POT-Creation-Date: 2026-03-15 22:30-0300\n"
"PO-Revision-Date: 2024-05-27 15:58-0600\n"
"Last-Translator: RodvinSanchez\n"
"Language-Team: Español\n"
Expand Down Expand Up @@ -308,6 +308,18 @@ msgstr "Ejecutado:"
msgid "Nothing to do"
msgstr "Nada que hacer"

#: ../contents/tools/sh/messages
msgid "y/N"
msgstr "s/N"

#: ../contents/tools/sh/messages
msgid "^[+1yY]"
msgstr "^[+1sSyY]"

#: ../contents/tools/sh/messages
msgid "^[-0nN]"
msgstr "^[-0nN]"

#: ../contents/tools/sh/messages
msgid "Required installed"
msgstr "Requerido instalado"
Expand Down
14 changes: 13 additions & 1 deletion package/translate/po/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: apdatifier\n"
"Report-Msgid-Bugs-To: https://github.com/exequtic/apdatifier\n"
"POT-Creation-Date: 2026-03-15 14:56-0300\n"
"POT-Creation-Date: 2026-03-15 22:30-0300\n"
"PO-Revision-Date: 2024-06-02 20:39+0200\n"
"Last-Translator: foXaCe\n"
"Language-Team: \n"
Expand Down Expand Up @@ -321,6 +321,18 @@ msgstr "Exécuté :"
msgid "Nothing to do"
msgstr "Rien à faire"

#: ../contents/tools/sh/messages
msgid "y/N"
msgstr "o/N"

#: ../contents/tools/sh/messages
msgid "^[+1yY]"
msgstr "^[+1oOyY]"

#: ../contents/tools/sh/messages
msgid "^[-0nN]"
msgstr "^[-0nN]"

# Required installed <util name>
#: ../contents/tools/sh/messages
msgid "Required installed"
Expand Down
14 changes: 13 additions & 1 deletion package/translate/po/ko.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: apdatifier\n"
"Report-Msgid-Bugs-To: https://github.com/exequtic/apdatifier\n"
"POT-Creation-Date: 2026-03-15 14:56-0300\n"
"POT-Creation-Date: 2026-03-15 22:30-0300\n"
"PO-Revision-Date: 2024-07-02 17:18+0900\n"
"Last-Translator: \n"
"Language-Team: \n"
Expand Down Expand Up @@ -318,6 +318,18 @@ msgstr "실행됨:"
msgid "Nothing to do"
msgstr "할 일 없음"

#: ../contents/tools/sh/messages
msgid "y/N"
msgstr "예/아"

#: ../contents/tools/sh/messages
msgid "^[+1yY]"
msgstr "^[+1yYyY예]"

#: ../contents/tools/sh/messages
msgid "^[-0nN]"
msgstr "^[-0nNnN아]"

#: ../contents/tools/sh/messages
msgid "Required installed"
msgstr "설치에 필요"
Expand Down
14 changes: 13 additions & 1 deletion package/translate/po/nl.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: apdatifier\n"
"Report-Msgid-Bugs-To: https://github.com/exequtic/apdatifier\n"
"POT-Creation-Date: 2026-03-15 14:56-0300\n"
"POT-Creation-Date: 2026-03-15 22:30-0300\n"
"PO-Revision-Date: 2025-05-18 14:38+0200\n"
"Last-Translator: Heimen Stoffels <vistausss@fastmail.com>\n"
"Language-Team: \n"
Expand Down Expand Up @@ -320,6 +320,18 @@ msgstr "Uitgevoerd:"
msgid "Nothing to do"
msgstr "Er valt niets te doen"

#: ../contents/tools/sh/messages
msgid "y/N"
msgstr "j/N"

#: ../contents/tools/sh/messages
msgid "^[+1yY]"
msgstr "^[+1jJyY]"

#: ../contents/tools/sh/messages
msgid "^[-0nN]"
msgstr "^[-0nN]"

# Required installed <util name>
#: ../contents/tools/sh/messages
msgid "Required installed"
Expand Down
14 changes: 13 additions & 1 deletion package/translate/po/pl.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: apdatifier\n"
"Report-Msgid-Bugs-To: https://github.com/exequtic/apdatifier\n"
"POT-Creation-Date: 2026-03-15 14:56-0300\n"
"POT-Creation-Date: 2026-03-15 22:30-0300\n"
"PO-Revision-Date: 2025-08-16 00:48+0200\n"
"Last-Translator: Rygorr Mortis <rygorrmortis@gmail.com>\n"
"Language-Team: Polish <pl@li.org>\n"
Expand Down Expand Up @@ -310,6 +310,18 @@ msgstr "Wykonano:"
msgid "Nothing to do"
msgstr "Nic do zrobienia"

#: ../contents/tools/sh/messages
msgid "y/N"
msgstr "t/N"

#: ../contents/tools/sh/messages
msgid "^[+1yY]"
msgstr "^[+1TtYy]"

#: ../contents/tools/sh/messages
msgid "^[-0nN]"
msgstr "^[-0nN]"

#: ../contents/tools/sh/messages
msgid "Required installed"
msgstr "Wymagane do zainstalowania"
Expand Down
Loading