mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2026-08-09 09:16:20 +00:00
feat(i18n): add Slovak translation
This commit is contained in:
@@ -4077,7 +4077,7 @@ main_menu() {
|
||||
4 "$(_bk_format_menu_item "$(translate "Scheduled backups and retention policies")" "")" \
|
||||
5 "$(_bk_format_menu_item "$(translate "Configure backup destinations (PBS, Borg, local)")" "")" \
|
||||
"" " " \
|
||||
"" "\Z4───────────────────── Community Scripts ─────────────────────\Zn" \
|
||||
"" "\Z4───────────────────── $(translate "Community Scripts") ─────────────────────\Zn" \
|
||||
6 "$(_bk_format_menu_item "PVE Host Backup" "Helper-Scripts")" \
|
||||
7 "$(_bk_format_menu_item "proxmox_toolbox" "Tontonjo")" \
|
||||
8 "$(_bk_format_menu_item "proxsave" "tis24dev")" \
|
||||
@@ -4101,4 +4101,4 @@ main_menu() {
|
||||
|
||||
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
|
||||
main_menu
|
||||
fi
|
||||
fi
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
# - Change Language
|
||||
# Only on the Translation install type (venv +
|
||||
# config.json.language present). Languages: en / es / fr /
|
||||
# de / it / pt.
|
||||
# de / it / pt / sk.
|
||||
#
|
||||
# - Show Version Information
|
||||
# Always shown. Reports installed components, files,
|
||||
@@ -64,6 +64,7 @@ fi
|
||||
|
||||
load_language
|
||||
initialize_cache
|
||||
BACKTITLE="$(translate "$BACKTITLE")"
|
||||
|
||||
# ==========================================================
|
||||
|
||||
@@ -377,29 +378,29 @@ toggle_monitor_service() {
|
||||
local status=$(check_monitor_status)
|
||||
|
||||
if [ "$status" = "not_installed" ]; then
|
||||
dialog --clear --backtitle "ProxMenux Configuration" \
|
||||
dialog --clear --backtitle "$BACKTITLE" \
|
||||
--title "$(translate "ProxMenux Monitor")" \
|
||||
--msgbox "\n\n$(translate "ProxMenux Monitor is not installed.")" 10 50
|
||||
return
|
||||
fi
|
||||
|
||||
if [ "$status" = "active" ]; then
|
||||
if dialog --clear --backtitle "ProxMenux Configuration" \
|
||||
if dialog --clear --backtitle "$BACKTITLE" \
|
||||
--title "$(translate "Deactivate Monitor")" \
|
||||
--yesno "\n$(translate "Do you want to deactivate ProxMenux Monitor?")" 8 60; then
|
||||
systemctl stop "$MONITOR_SERVICE" 2>/dev/null
|
||||
systemctl disable "$MONITOR_SERVICE" 2>/dev/null
|
||||
dialog --clear --backtitle "ProxMenux Configuration" \
|
||||
dialog --clear --backtitle "$BACKTITLE" \
|
||||
--title "$(translate "Monitor Deactivated")" \
|
||||
--msgbox "\n\n$(translate "ProxMenux Monitor has been deactivated.")" 10 50
|
||||
fi
|
||||
else
|
||||
if dialog --clear --backtitle "ProxMenux Configuration" \
|
||||
if dialog --clear --backtitle "$BACKTITLE" \
|
||||
--title "$(translate "Activate Monitor")" \
|
||||
--yesno "\n$(translate "Do you want to activate ProxMenux Monitor?")" 8 60; then
|
||||
systemctl enable "$MONITOR_SERVICE" 2>/dev/null
|
||||
systemctl start "$MONITOR_SERVICE" 2>/dev/null
|
||||
dialog --clear --backtitle "ProxMenux Configuration" \
|
||||
dialog --clear --backtitle "$BACKTITLE" \
|
||||
--title "$(translate "Monitor Activated")" \
|
||||
--msgbox "\n\n$(translate "ProxMenux Monitor has been activated.")" 10 50
|
||||
fi
|
||||
@@ -597,7 +598,7 @@ show_config_menu() {
|
||||
option_actions[$option_num]="return_main"
|
||||
|
||||
# Show menu
|
||||
OPTION=$(dialog --clear --backtitle "ProxMenux Configuration" \
|
||||
OPTION=$(dialog --clear --backtitle "$BACKTITLE" \
|
||||
--title "$(translate "Configuration Menu")" \
|
||||
--menu "$(translate "Select an option:")" 20 70 10 \
|
||||
"${menu_options[@]}" 3>&1 1>&2 2>&3)
|
||||
@@ -635,18 +636,19 @@ show_config_menu() {
|
||||
# ==========================================================
|
||||
change_language() {
|
||||
local new_language
|
||||
new_language=$(dialog --clear --backtitle "ProxMenux Configuration" \
|
||||
new_language=$(dialog --clear --backtitle "$BACKTITLE" \
|
||||
--title "$(translate "Change Language")" \
|
||||
--menu "$(translate "Select a new language for the menu:")" 20 60 6 \
|
||||
--menu "$(translate "Select a new language for the menu:")" 21 60 7 \
|
||||
"en" "$(translate "English")" \
|
||||
"es" "$(translate "Spanish")" \
|
||||
"fr" "$(translate "French")" \
|
||||
"de" "$(translate "German")" \
|
||||
"it" "$(translate "Italian")" \
|
||||
"pt" "$(translate "Portuguese")" 3>&1 1>&2 2>&3)
|
||||
"pt" "$(translate "Portuguese")" \
|
||||
"sk" "Slovenčina" 3>&1 1>&2 2>&3)
|
||||
|
||||
if [ -z "$new_language" ]; then
|
||||
dialog --clear --backtitle "ProxMenux Configuration" \
|
||||
dialog --clear --backtitle "$BACKTITLE" \
|
||||
--title "$(translate "Language Change")" \
|
||||
--msgbox "\n\n$(translate "No language selected.")" 10 50
|
||||
return
|
||||
@@ -660,7 +662,7 @@ change_language() {
|
||||
echo "{\"language\": \"$new_language\"}" > "$CONFIG_FILE"
|
||||
fi
|
||||
|
||||
dialog --clear --backtitle "ProxMenux Configuration" \
|
||||
dialog --clear --backtitle "$BACKTITLE" \
|
||||
--title "$(translate "Language Change")" \
|
||||
--msgbox "\n\n$(translate "Language changed to") $new_language" 10 50
|
||||
|
||||
@@ -738,7 +740,7 @@ show_version_info() {
|
||||
# Display information in a scrollable text box
|
||||
tmpfile=$(mktemp)
|
||||
echo -e "$info_message" > "$tmpfile"
|
||||
dialog --clear --backtitle "ProxMenux Configuration" \
|
||||
dialog --clear --backtitle "$BACKTITLE" \
|
||||
--title "$(translate "ProxMenux Information")" \
|
||||
--textbox "$tmpfile" 25 80
|
||||
rm -f "$tmpfile"
|
||||
@@ -746,7 +748,7 @@ show_version_info() {
|
||||
|
||||
# ==========================================================
|
||||
uninstall_proxmenu() {
|
||||
if ! dialog --clear --backtitle "ProxMenux Configuration" \
|
||||
if ! dialog --clear --backtitle "$BACKTITLE" \
|
||||
--title "Uninstall ProxMenux" \
|
||||
--yesno "\n$(translate "Are you sure you want to uninstall ProxMenux?")" 8 60; then
|
||||
return
|
||||
@@ -754,7 +756,7 @@ uninstall_proxmenu() {
|
||||
|
||||
local deps_to_remove=""
|
||||
|
||||
deps_to_remove=$(dialog --clear --backtitle "ProxMenux Configuration" \
|
||||
deps_to_remove=$(dialog --clear --backtitle "$BACKTITLE" \
|
||||
--title "Remove Dependencies" \
|
||||
--checklist "Select dependencies to remove:" 12 60 2 \
|
||||
"dialog" "Interactive dialog boxes" OFF \
|
||||
@@ -803,7 +805,7 @@ uninstall_proxmenu() {
|
||||
echo "100" ; echo "Uninstallation complete!"
|
||||
sleep 1
|
||||
|
||||
) | dialog --clear --backtitle "ProxMenux Configuration" \
|
||||
) | dialog --clear --backtitle "$BACKTITLE" \
|
||||
--title "Uninstalling ProxMenux" \
|
||||
--gauge "Starting uninstallation..." 10 60 0
|
||||
|
||||
@@ -814,7 +816,7 @@ uninstall_proxmenu() {
|
||||
fi
|
||||
final_message+="Thank you for using ProxMenux!"
|
||||
|
||||
dialog --clear --backtitle "ProxMenux Configuration" \
|
||||
dialog --clear --backtitle "$BACKTITLE" \
|
||||
--title "Uninstallation Complete" \
|
||||
--msgbox "$final_message" 12 60
|
||||
clear
|
||||
|
||||
@@ -138,14 +138,14 @@ while true; do
|
||||
OS_TYPE=$(dialog --colors --backtitle "ProxMenux" \
|
||||
--title "$(translate "Select System Type")" \
|
||||
--menu "\n$(translate "Choose the type of virtual system to install:")" 20 70 10 \
|
||||
1 "$(translate "Create") VM System NAS" \
|
||||
2 "$(translate "Create") VM System Windows" \
|
||||
3 "$(translate "Create") VM System Linux" \
|
||||
1 "$(translate "Create VM System NAS")" \
|
||||
2 "$(translate "Create VM System Windows")" \
|
||||
3 "$(translate "Create VM System Linux")" \
|
||||
"" "" \
|
||||
"" "\Z4───────────────── Community Scripts ─────────────────\Zn" \
|
||||
"" "\Z4───────────────── $(translate "Community Scripts") ─────────────────\Zn" \
|
||||
"" "" \
|
||||
4 "$(translate "Create") VM System macOS (OSX-PROXMOX)" \
|
||||
5 "$(translate "Create") VM System Others (based Linux)" \
|
||||
4 "$(translate "Create VM System macOS (OSX-PROXMOX)")" \
|
||||
5 "$(translate "Create VM System Others (based Linux)")" \
|
||||
"" "" \
|
||||
6 "$(translate "Return to Main Menu")" \
|
||||
3>&1 1>&2 2>&3)
|
||||
|
||||
@@ -32,16 +32,16 @@ while true; do
|
||||
"1" "$(translate "Install/Update NVIDIA Drivers (Host + LXC)")" \
|
||||
"2" "$(translate "Install/Update Coral TPU on Host")" \
|
||||
"" "\Zb\Z4 LXC\Zn" \
|
||||
"3" "$(translate "Add GPU to LXC (Intel | AMD | NVIDIA)") \Zb\Z4Switch Mode\Zn" \
|
||||
"3" "$(translate "Add GPU to LXC (Intel | AMD | NVIDIA)") \Zb\Z4$(translate "Switch Mode")\Zn" \
|
||||
"4" "$(translate "Add Coral TPU to LXC")" \
|
||||
"" "\Zb\Z4 VM\Zn" \
|
||||
"5" "$(translate "Add GPU to VM (Intel | AMD | NVIDIA)") \Zb\Z4Switch Mode\Zn" \
|
||||
"5" "$(translate "Add GPU to VM (Intel | AMD | NVIDIA)") \Zb\Z4$(translate "Switch Mode")\Zn" \
|
||||
"" "" \
|
||||
"" "\Z4──────────────────── SWICHT MODE ───────────────────────\Zn" \
|
||||
"" "\Z4──────────────────── $(translate "Switch Mode") ───────────────────────\Zn" \
|
||||
"" "" \
|
||||
"6" "$(translate "Switch GPU Mode (VM <-> LXC)")" \
|
||||
"" "" \
|
||||
"" "\Z4───────────────────── Utilities ────────────────────────\Zn" \
|
||||
"" "\Z4───────────────────── $(translate "Utilities") ────────────────────────\Zn" \
|
||||
"7" "$(translate "Manual CLI Guide (GPU/TPU)")" \
|
||||
"0" "$(translate "Return to Main Menu")" \
|
||||
2>&1 >/dev/tty
|
||||
|
||||
@@ -387,7 +387,7 @@ search_and_filter_scripts() {
|
||||
local selected
|
||||
selected=$(dialog --colors --backtitle "ProxMenux" \
|
||||
--title "$title" \
|
||||
--menu "$(translate "Select a script or action:"):" \
|
||||
--menu "$(translate "Select a script or action:")" \
|
||||
22 75 15 "${menu_items[@]}" 3>&1 1>&2 2>&3)
|
||||
|
||||
[[ $? -ne 0 ]] && return
|
||||
@@ -402,7 +402,7 @@ search_and_filter_scripts() {
|
||||
count=$(echo "$filtered_json" | jq 'group_by(.slug) | length')
|
||||
continue
|
||||
;;
|
||||
"back"|"")
|
||||
"")
|
||||
return
|
||||
;;
|
||||
*)
|
||||
@@ -439,10 +439,9 @@ while true; do
|
||||
MENU_ITEMS+=("$local_idx" "$padded_name $padded_count")
|
||||
((local_idx++))
|
||||
done
|
||||
|
||||
SELECTED_IDX=$(dialog --backtitle "ProxMenux" \
|
||||
--title "Proxmox VE Helper-Scripts" \
|
||||
--menu "$(translate "Select a category or search for scripts:"):" \
|
||||
--menu "$(translate "Select a category or search for scripts:")" \
|
||||
22 75 15 "${MENU_ITEMS[@]}" 3>&1 1>&2 2>&3) || {
|
||||
dialog --clear --title "ProxMenux" \
|
||||
--msgbox "\n\n$(translate "Visit the website to discover more scripts, stay updated with the latest updates, and support the project:")\n\nhttps://community-scripts.github.io/ProxmoxVE" 15 70
|
||||
|
||||
@@ -322,7 +322,7 @@ show_menu() {
|
||||
|
||||
|
||||
menu_items+=("" "")
|
||||
menu_items+=("" "\Z4───────────────────── Community Scripts ──────────────────────\Zn")
|
||||
menu_items+=("" "\Z4───────────────────── $(translate "Community Scripts") ──────────────────────\Zn")
|
||||
|
||||
for script in "${COMMUNITY_SCRIPTS[@]}"; do
|
||||
IFS='|' read -r name source command <<< "$script"
|
||||
@@ -344,7 +344,7 @@ show_menu() {
|
||||
script_selection=$(dialog --clear --colors \
|
||||
--backtitle "ProxMenux" \
|
||||
--title "$(translate "Post-Installation Scripts")" \
|
||||
--menu "\n$(translate "Select a post-installation script:"):\n" \
|
||||
--menu "\n$(translate "Select a post-installation script:")\n" \
|
||||
24 84 16 \
|
||||
"${menu_items[@]}" 2>&1 1>&3)
|
||||
exit_status=$?
|
||||
|
||||
@@ -1244,7 +1244,7 @@ show_menu() {
|
||||
|
||||
|
||||
menu_items+=("" "")
|
||||
menu_items+=("" "\Z4───────────────────── Community Scripts ──────────────────────\Zn")
|
||||
menu_items+=("" "\Z4───────────────────── $(translate "Community Scripts") ──────────────────────\Zn")
|
||||
|
||||
for script in "${COMMUNITY_SCRIPTS[@]}"; do
|
||||
IFS='|' read -r name source command <<< "$script"
|
||||
@@ -1266,7 +1266,7 @@ show_menu() {
|
||||
script_selection=$(dialog --clear --colors \
|
||||
--backtitle "ProxMenux" \
|
||||
--title "$(translate "Network Management")" \
|
||||
--menu "\n$(translate "Select a network management option:"):\n" \
|
||||
--menu "\n$(translate "Select a network management option:")\n" \
|
||||
28 82 19 \
|
||||
"${menu_items[@]}" 2>&1 1>&3)
|
||||
exit_status=$?
|
||||
|
||||
@@ -40,7 +40,7 @@ while true; do
|
||||
"" "\Zb\Z4 LXC\Zn" \
|
||||
"4" "$(translate "Import Disk to LXC")" \
|
||||
"" "" \
|
||||
"" "\Z4────────────────────── Utilities ───────────────────────\Zn" \
|
||||
"" "\Z4────────────────────── $(translate "Utilities") ───────────────────────\Zn" \
|
||||
"5" "$(translate "Format / Wipe Physical Disk (Safe)")" \
|
||||
"6" "$(translate "SMART Disk Health & Test")" \
|
||||
"7" "$(translate "Manual CLI Guide (Disk and Storage Manager)")" \
|
||||
|
||||
@@ -189,7 +189,7 @@ function select_nas_iso() {
|
||||
"6" "Rockstor VM (openSUSE based)"
|
||||
"7" "ZimaOS VM (Proxmox-zimaos)"
|
||||
"" ""
|
||||
"" "\Z4───────────────── Community Scripts ─────────────────\Zn"
|
||||
"" "\Z4───────────────── $(translate "Community Scripts") ─────────────────\Zn"
|
||||
"" ""
|
||||
"8" "Umbrel OS VM (Helper-Scripts)"
|
||||
"9" "$(translate "Return to Main Menu")"
|
||||
|
||||
Reference in New Issue
Block a user