From a42b38e19f12a1ef382f54de04d49ff92cf75341 Mon Sep 17 00:00:00 2001 From: zenobit Date: Mon, 27 Mar 2023 07:38:39 +0200 Subject: [PATCH] localisation --- dh | 140 +++-- dh.sh | 517 ++++++++++++++++++ .../cs.po => documents/distrohopper-cs.pot | 209 +++---- documents/distrohopper.pot | 147 +++++ .../source.pot | 110 ++-- locale/cs/LC_MESSAGE/distrohopper.mo | Bin 0 -> 4369 bytes locale/cs_CZ/LC_MESSAGE/cs.html | 468 ---------------- locale/cs_CZ/LC_MESSAGE/cs.mo | Bin 4664 -> 0 bytes locale/dh-source.pot | 147 +++++ locale/distrohopper-cs.pot | 147 +++++ locale/distrohopper.pot | 147 +++++ locale/strings_dump-0.7.html | 467 ---------------- locale/strings_dump-0.7.mo | Bin 348 -> 0 bytes 13 files changed, 1292 insertions(+), 1207 deletions(-) create mode 100755 dh.sh rename locale/cs_CZ/LC_MESSAGE/cs.po => documents/distrohopper-cs.pot (63%) create mode 100644 documents/distrohopper.pot rename locale/strings_dump-0.7.po => documents/source.pot (76%) create mode 100644 locale/cs/LC_MESSAGE/distrohopper.mo delete mode 100644 locale/cs_CZ/LC_MESSAGE/cs.html delete mode 100644 locale/cs_CZ/LC_MESSAGE/cs.mo create mode 100644 locale/dh-source.pot create mode 100644 locale/distrohopper-cs.pot create mode 100644 locale/distrohopper.pot delete mode 100644 locale/strings_dump-0.7.html delete mode 100644 locale/strings_dump-0.7.mo diff --git a/dh b/dh index 3f6e82e..b06c82e 100755 --- a/dh +++ b/dh @@ -1,4 +1,9 @@ -#!/bin/bash +#!/usr/bin/bash +# shellcheck disable=1078,1079,1091,2027,2034 + +TEXTDOMAIN=distrohopper +TEXTDOMAINDIR=/usr/share/locale +export "TEXTDOMAINDIR" "TEXTDOMAIN" # bugs notice function some_bugs() { @@ -12,27 +17,31 @@ function some_bugs() { } function show_help() { - printf "DistroHopper v. $version\nquickemu v. $("$prefix"quickemu --version)\n" -echo $"Possible arguments:" -echo $" -h --help Show this help and exit" - echo "---------------------------------------------------------" -echo $" -d --dir Set default directory where VMs are stored" -echo $" -i --install Install DistroHopper" - echo "---------------------------------------------------------" -echo $" -m --mode Portable mode" - echo "---------------------------------------------------------" -echo $" -s --supported Update supported VMs" -echo $" -r --ready Update ready to run VMs" - echo "---------------------------------------------------------" -echo $" -t --tui Run TUI" -echo $" -g --gui Run GUI" - echo "---------------------------------------------------------" -echo $" -a --add Add new distro to quickget" -echo $" -f --functions Sort functions in quickget" -echo $" -p --push Push changed quickget to quickemu project #todo" - echo "---------------------------------------------------------" -echo $" -c --copy Copy all ISOs to target dir (for Ventoy)" - echo "---------------------------------------------------------" + echo $"DistroHopper v. $version" + echo $"quickemu v. $("$prefix"quickemu --version)" + echo "" + echo $"Possible arguments:" + echo $" -h --help Show this help and exit" + echo "---------------------------------------------------------" + echo $" -d --dir Set default directory where VMs are stored" + echo $" -i --install Install DistroHopper" + echo "---------------------------------------------------------" + echo $" -m --mode Portable mode" + echo "---------------------------------------------------------" + echo $" -s --supported Update supported VMs" + echo $" -r --ready Update ready to run VMs" + echo "---------------------------------------------------------" + echo $" -t --tui Run TUI" + echo $" -g --gui Run GUI" + echo "---------------------------------------------------------" + echo $" -a --add Add new distro to quickget" + echo $" -f --functions Sort functions in quickget" + echo $" -p --push Push changed quickget to quickemu project #todo" + echo "---------------------------------------------------------" + echo $" -c --copy Copy all ISOs to target dir (for Ventoy)" + echo "---------------------------------------------------------" + echo $" -l --language Translate DistroHopper" + echo "---------------------------------------------------------" echo $"Homepage: dh.osowoso.xyz" echo $"Project hosted at: https://github.com/oSoWoSo/DistroHopper" echo $"Chat group on SimpleX: https://tinyurl.com/7hm4kcjx" @@ -58,16 +67,16 @@ function mode_installed() { # installation function check_gui_dependencies() { - [ -f "$PREFIX/yad" ] || echo $"You are missing yad... - Needed for GUI!" + [ -f "$PREFIX/yad" ] || echo $"Missing yad!" } function check_tui_dependencies() { - [ -f "$PREFIX/fzf" ] || echo $"You are missing fzf... - Needed for TUI!" + [ -f "$PREFIX/fzf" ] || echo $"Missing fzf!" } function set_variables() { + # DEBUG mod + #bash -x ./dh 2>&1 | tee output.log #progname="${progname:="${0##*/}"}" progname="DistroHopper" version="0.7" @@ -117,6 +126,7 @@ function install_dh() { echo $"Copying to config dir..." cp -r ready "$DH_CONFIG_DIR/" cp -r supported "$DH_CONFIG_DIR/" + cp -r locale "$DH_CONFIG_DIR/" } @@ -139,10 +149,11 @@ function install_process() { function renew_ready() { cd "$VMS_DIR" || exit 1 rm "$DH_CONFIG_DIR"/ready/*.desktop - if [ ! -e *.conf ]; then - echo $"No .conf files found" - return - fi +# for files in "$VMS_DIR"/*; do +# if [ ! -e *.conf ]; then +# echo $"No .conf files found" +# return +# fi for vm_conf in *.conf; do if [ "$vm_conf" == "distrohopper.conf" ]; then continue # skip processing distrohopper.conf @@ -200,6 +211,7 @@ Categories=System;Virtualization;" echo "$desktop_file_content" > "$DH_CONFIG_DIR"/supported/"$vm_desktop".desktop else # Create desktop file for VMs with editions + # shellcheck disable=2154 desktop_file_content="[Desktop Entry] Type=Application Name=$get_name @@ -343,9 +355,10 @@ Choose other language" | fzf --cycle) function isos_to_dir() { yad --file --directory > target cd "$VMS_DIR" || exit 1 - cp */*.iso "$target" + # shellcheck disable=2154 + cp ./*glob*/*.iso "$target" } - +# shellcheck disable=2086 function add_distro() { TMP_DIR="/tmp" yad --form --field="Pretty name" "" --field="Name" "" --field="Releases" "" --field="Editions" "" --field="URL" "" --field="ISO" "" --field="Checksum file" "" > ${TMP_DIR}/template.tmp @@ -357,7 +370,7 @@ function add_distro() { ISO="$(cat ${TMP_DIR}/template.tmp | cut -d'|' -f6)" CHECKSUM_FILE="$(cat ${TMP_DIR}/template.tmp | cut -d'|' -f7)" echo " $NAME) PRETTY_NAME=$PRETTY_NAME;; -" > ${TMP_DIR}/${NAME}.tmp +" > "${TMP_DIR}/${NAME}".tmp { echo " $NAME \\ "; echo "function releases_$NAME() { echo $RELEASES @@ -373,11 +386,12 @@ function add_distro() { HASH=\"$(wget -q -O- "${URL}/${CHECKSUM_FILE}" | grep "(${ISO}" | cut -d' ' -f4)\" echo \"${URL}/${ISO} ${HASH}\" } -"; } >> ${TMP_DIR}/${NAME}.tmp +"; } >> "${TMP_DIR}/${NAME}".tmp meld "${TMP_DIR}/${NAME}.tmp $DH_CONFIG_DIR/quickget" } function sort_functions() { + #TODO # Get the name of the script from the command line argument script_name=$1 # Get a list of all the function names in the script @@ -388,53 +402,26 @@ function sort_functions() { for function_name in $sorted_function_names do # Print the function definition to stdout - grep -A $(wc -l < "$script_name") -w "function $function_name" "$script_name" + grep -A "$(wc -l < "$script_name")" -w "function $function_name" "$script_name" done } -function localization() { - . gettext.sh - TEXTDOMAIN=distrohopper - TEXTDOMAINDIR=./locale - # použití gettext() pro lokalizaci výpisu - #echo $"Hello, world!") - # ask for language - create_translation_source - export "TEXTDOMAIN" "TEXTDOMAINDIR" -} - -function create_translation_source() { - cat > header.tmp <=2 && n<=4 ? 1 : 2);\n" -"X-Generator: Poedit 3.2.2\n" -"X-Poedit-Basepath: ../..\n" -"X-Poedit-SearchPath-0: .\n" - -EOF - #cat ./dh | grep '$(gettext "' | cut -d'(' -f2 | cut -d'"' -f2 | cut -d')' -f1 > po.tmp - #sed -i 's/$/msgstr""\n\nmsgid "/g' po.tmp - #cat header.tmp po.tmp > locale/translation_source.po - #rm header.tmp po.tmp - #LANGUAGE="cs" - #export "LANGUAGE" - #echo "language: $LANGUAGE" - bash --dump-po-strings dh > locale/strings_dump-$version.po +function create_translation() { + echo $"Which language use [en,cs]?" + read -rn 2 -s lang + echo $"Choosed language is: $lang" + echo $"Dumping language source..." + bash --dump-po-strings dh > "$DH_CONFIG_DIR"/locale/dh-source.pot + echo $"Merging changes... (Do it yourself)" + meld "$DH_CONFIG_DIR"/locale/dh-source.pot "$DH_CONFIG_DIR"/locale/distrohopper-"$lang".pot + echo $"Generating .mo file..." + msgfmt -o "$DH_CONFIG_DIR"/locale/distrohopper-"$lang".mo "$DH_CONFIG_DIR"/locale/distrohopper-"$lang".pot + echo $"Copying translation to '/usr/share/local'..." + sudo cp "$DH_CONFIG_DIR"/locale/distrohopper-"$lang".mo /usr/share/locale/"$lang"/LC_MESSAGES/distrohopper.mo } # run set_variables -localization if [[ $# -eq 0 ]]; then printf $"No argumet provided!\n\n" @@ -510,11 +497,12 @@ do shift ;; -l|--language) - localization + create_translation shift ;; *) - printf $"Invalid option: $1\n\n" + echo $"Invalid option: $1" + echo "" show_help exit 1 ;; diff --git a/dh.sh b/dh.sh new file mode 100755 index 0000000..1fe812a --- /dev/null +++ b/dh.sh @@ -0,0 +1,517 @@ +#!/bin/bash + +# +#LANGUAGE=cs_CZ +#LANG=cs_CZ +TEXTDOMAIN=distrohopper +TEXTDOMAINDIR=/usr/share/locale + +# bugs notice +function some_bugs() { + echo $"Done" + echo $"PS: You saw some bugs?" + echo $"Could you please provide feedback?" + echo $"How do you like DistroHopper?" + echo $"What can be improved, added, changed?" + echo $" Let me know..." + echo $"Flawless distro hopping..." && echo "zenobit" +} + +function show_help() { + printf "DistroHopper v. $version\nquickemu v. $("$prefix"quickemu --version)\n" +echo $"Possible arguments:" +echo $" -h --help Show this help and exit" + echo "---------------------------------------------------------" +echo $" -d --dir Set default directory where VMs are stored" +echo $" -i --install Install DistroHopper" + echo "---------------------------------------------------------" +echo $" -m --mode Portable mode" + echo "---------------------------------------------------------" +echo $" -s --supported Update supported VMs" +echo $" -r --ready Update ready to run VMs" + echo "---------------------------------------------------------" +echo $" -t --tui Run TUI" +echo $" -g --gui Run GUI" + echo "---------------------------------------------------------" +echo $" -a --add Add new distro to quickget" +echo $" -f --functions Sort functions in quickget" +echo $" -p --push Push changed quickget to quickemu project #todo" + echo "---------------------------------------------------------" +echo $" -c --copy Copy all ISOs to target dir (for Ventoy)" + echo "---------------------------------------------------------" + echo $"Homepage: dh.osowoso.xyz" + echo $"Project hosted at: https://github.com/oSoWoSo/DistroHopper" + echo $"Chat group on SimpleX: https://tinyurl.com/7hm4kcjx" +} + +function portable() { + [ -f "$DH_CONFIG" ] && mode_installed || mode_portable +} + +function mode_portable() { + VMS_DIR="$(pwd)" + DH_CONFIG_DIR="$(pwd)" + DH_ICON_DIR="$(pwd)/icons" + prefix=./ + export "VMS_DIR" "DH_CONFIG_DIR" "DH_ICON_DIR" "TERMINAL" "replace" "prefix" +} + +function mode_installed() { + source "$DH_CONFIG" + prefix= + export "prefix" +} + +# installation +function check_gui_dependencies() { + [ -f "$PREFIX/yad" ] || echo $"Missing yad!" +} + +function check_tui_dependencies() { + [ -f "$PREFIX/fzf" ] || echo $"Missing fzf!" +} + +function set_variables() { + #progname="${progname:="${0##*/}"}" + progname="DistroHopper" + version="0.7" + #GTK_THEME="alt-dialog" + DH_CONFIG_DIR="$HOME/.config/distrohopper" + DH_CONFIG="$DH_CONFIG_DIR/distrohopper.conf" + DH_ICON_DIR="/usr/share/icons/distrohopper" + TEXTDOMAIN=distrohopper + TEXTDOMAINDIR=/usr/share/locale + PREFIX="/usr/bin/" + TERMINAL=sakura + replace='"!"' + export "DH_CONFIG_DIR" "DH_CONFIG" "TEXTDOMAIN" "TEXTDOMAINDIR" "replace" "DH_ICON_DIR" "PREFIX" "TERMINAL" + portable + # Set traps to catch the signals and exit gracefully + trap "exit" INT + trap "exit" EXIT +} + +function create_structure() { + source distrohopper.conf + echo $"creating config dir..." + mkdir -p "$DH_CONFIG_DIR" + echo $"creating icons dir as root..." + mkdir -p "$DH_ICON_DIR" >/dev/null 2>&1 || sudo mkdir -p "$DH_ICON_DIR" +} + +function set_dir() { + NEWDIR="$(yad --file --directory --title="Where to save VMs?")" + VMS_DIR="$NEWDIR" + echo "VMS_DIR=\"$VMS_DIR\" + export \"VMS_DIR\"" >> "$DH_CONFIG" + export "VMS_DIR" +} + +function install_prereq() { + # (Void linux) + sudo xbps-install -S qemu bash coreutils grep jq procps-ng python3 util-linux sed spice-gtk swtpm usbutils wget xdg-user-dirs xrandr unzip zsync socat gettext + # Debian: sudo apt install qemu bash coreutils ovmf grep jq lsb procps python3 genisoimage usbutils util-linux sed spice-client-gtk swtpm wget xdg-user-dirs zsync unzip + # Fedora: sudo dnf install qemu bash coreutils edk2-tools grep jq lsb procps python3 genisoimage usbutils util-linux sed spice-gtk-tools swtpm wget xdg-user-dirs xrandr unzip +} + +function install_dh() { + cp dh quickget quickemu macrecovery windowskey "$PREFIX" >/dev/null 2>&1 || sudo cp dh quickget quickemu macrecovery windowskey "$PREFIX" + # quickget also to config directory for adding new distros... + cp quickget "$DH_CONFIG_DIR/" + echo $"Copying icons..." + cp icons/* "$DH_ICON_DIR/" >/dev/null 2>&1 || sudo cp icons/* "$DH_ICON_DIR/" + echo $"Copying to config dir..." + cp -r ready "$DH_CONFIG_DIR/" + cp -r supported "$DH_CONFIG_DIR/" + +} + +function install_process() { + check_tui_dependencies + check_gui_dependencies + #check_quickemu_dependencies + echo $"Creating directory structure..." \ + && create_structure \ + && echo $"Setting up directory..." \ + && set_dir \ + && echo $"Installing needed..." \ + && echo $"For now voidlinux only" \ + && install_prereq \ + && echo $"Installing DistroHopper to bin..." \ + && install_dh +} + +# basic +function renew_ready() { + cd "$VMS_DIR" || exit 1 + rm "$DH_CONFIG_DIR"/ready/*.desktop +# for files in "$VMS_DIR"/*; do +# if [ ! -e *.conf ]; then +# echo $"No .conf files found" +# return +# fi + for vm_conf in *.conf; do + if [ "$vm_conf" == "distrohopper.conf" ]; then + continue # skip processing distrohopper.conf + fi + vm_desktop=$(basename "$VMS_DIR/$vm_conf" .conf) + # Use fuzzy matching to find the best matching icon file (ready to run VMs) + icon_name=$(basename "$VMS_DIR/$vm_conf" .conf | cut -d'-' -f -2) + icon_file=$(find "$DH_ICON_DIR" -type f -iname "${icon_name// /}.*") + # If no icon was found, try shorter name (ready to run VMs) + if [ -z "$icon_file" ]; then + icon_name=$(basename "$VMS_DIR/$vm_conf" .conf | cut -d'-' -f1) + icon_file=$(find "$DH_ICON_DIR" -type f -iname "${icon_name// /}.*") + elif [ -z "$icon_file" ]; then + icon_file="$DH_ICON_DIR/tux.svg" + fi + # content of desktop files (ready to run VMs) + desktop_file_content="[Desktop Entry] +Type=Application +Name=$vm_desktop +Exec=sh -c 'cd \"$VMS_DIR\" && "$prefix"quickemu -vm $vm_conf' +Icon=$icon_file +Categories=System;Virtualization;" + # create desktop files (ready to run VMs) + echo "$desktop_file_content" > "$DH_CONFIG_DIR"/ready/"$vm_desktop".desktop + done +} + +function renew_supported() { + rm "$DH_CONFIG_DIR"/supported/*.desktop + # get supported VMs + "$prefix"quickget | sed 1d | cut -d':' -f2 | grep -o '[^ ]*' > "$DH_CONFIG_DIR/supported.md" + while read -r get_name; do + vm_desktop=$(echo "$get_name" | tr ' ' '_') + releases=$("$prefix"quickget "$vm_desktop" | grep 'Releases' | cut -d':' -f2 | sed 's/^ //') + editions=$("$prefix"quickget "$vm_desktop" | grep 'Editions' | cut -d':' -f2 | sed 's/^ //') + icon_name="$DH_ICON_DIR/$get_name" + if [ -f "$icon_name.svg" ]; then + icon_file="$icon_name.svg" + elif [ -f "$icon_name.png" ]; then + icon_file="$icon_name.png" + else + icon_file="$DH_ICON_DIR/tux.svg" + fi + # Check if there are editions + if [ -z "$editions" ]; then + # Create desktop file for VMs without editions + desktop_file_content="[Desktop Entry] +Type=Application +Name=$get_name +releases=$releases +replace=$replace +Exec=sh -c 'cd \"$VMS_DIR\" && yad --form --field=\"Release:CB\" \"${releases// /$replace}\" | cut -d\"|\" -f1 | xargs -I{} sh -c \""$prefix"quickget $get_name {}\"' +Icon=$icon_file +Categories=System;Virtualization;" + echo "$desktop_file_content" > "$DH_CONFIG_DIR"/supported/"$vm_desktop".desktop + else + # Create desktop file for VMs with editions + desktop_file_content="[Desktop Entry] +Type=Application +Name=$get_name +releases=$releases +editions=$editions +replace=$replace +Exec=sh -c 'cd \"$VMS_DIR\" && yad --form --separator=\" \" --field=\"Release:CB\" \"${releases// /$replace}\" --field=\"Edition:CB\" \"${editions// /$replace}\" | xargs -I{} sh -c \"$prefixquickget $get_name {}\"' +Icon=$icon_file +Categories=System;Virtualization;" + echo "$desktop_file_content" > "$DH_CONFIG_DIR"/supported/"$vm_desktop".desktop + fi + done < "$DH_CONFIG_DIR"/supported.md +} + +function renew_supported_test() { + rm "$DH_CONFIG_DIR"/test/ubuntu.desktop + # get supported VMs + "$prefix"quickget | sed 1d | cut -d':' -f2 | grep -o '[^ ]*' > "$DH_CONFIG_DIR/ubuntu.md" + while read -r get_name; do + vm_desktop=ubuntu + releases=$("$prefix"quickget "$vm_desktop" | grep 'Releases' | cut -d':' -f2 | sed 's/^ //') + editions=$("$prefix"quickget "$vm_desktop" | grep 'Editions' | cut -d':' -f2 | sed 's/^ //') + icon_name="$DH_ICON_DIR/$get_name" + if [ -f "$icon_name.svg" ]; then + icon_file="$icon_name.svg" + elif [ -f "$icon_name.png" ]; then + icon_file="$icon_name.png" + else + icon_file="$DH_ICON_DIR/tux.svg" + fi + # Check if there are editions + if [ -z "$editions" ]; then + # Create desktop file for VMs without editions + desktop_file_content="[Desktop Entry] +Type=Application +Name=$get_name +releases=$releases +replace=$replace +Exec=sh -c 'cd \"$VMS_DIR\" && yad --form --field=\"Release:CB\" \"${releases// /$replace}\" | cut -d\"|\" -f1 | xargs -I{} sh -c \""$prefix"quickget $get_name {}\"' +Icon=$icon_file +Categories=System;Virtualization;" + echo "$desktop_file_content" > "$DH_CONFIG_DIR"/test/ubuntu.desktop + else + # Create desktop file for VMs with editions + desktop_file_content="[Desktop Entry] +Type=Application +Name=$get_name +releases=$releases +editions=$editions +replace=$replace +Exec=sh -c 'cd \"$VMS_DIR\" && yad --form --separator=\" \" --field=\"Release:CB\" \"${releases// /$replace}\" --field=\"Edition:CB\" \"${editions// /$replace}\" | xargs -I{} sh -c \"$prefixquickget $get_name {}\"' +Icon=$icon_file +Categories=System;Virtualization;" + echo "$desktop_file_content" > "$DH_CONFIG_DIR"/test/ubuntu.desktop + fi + done < "$DH_CONFIG_DIR"/test/ubuntu.md +} + +function run_gui() { + check_gui_dependencies + key=$((RANDOM % 9000 + 1000)) + yad --plug="$key" --tabnum=1 --monitor --icons --listen --read-dir="$DH_CONFIG_DIR"/ready --sort-by-name --no-buttons --borders=0 --icon-size=46 --item-width=76 & + yad --plug="$key" --tabnum=2 --monitor --icons --listen --read-dir="$DH_CONFIG_DIR"/supported --sort-by-name --no-buttons --borders=0 --icon-size=46 --item-width=76 & + yad --dynamic --notebook --key="$key" --monitor --listen --window-icon="$DH_ICON_DIR"/hop.svg --width=900 --height=900 --title="DistroHopper" --tab="run VM" --tab="download VM" +} + +function run_tui() { + check_tui_dependencies + vms=(*.conf) + printf ' Prepared VMs:\n-------------\n\n' + # Check if there are any VMs + if [ ${#vms[@]} -eq 0 ]; then + echo $"No VMs found." + exit 1 + fi + # Print the names of the available VMs + printf "%s\n" "${vms[@]%.*}" + echo "-------------" + # Action prompt + printf " Do you want to create a new VM? (c) + or run an existing one? (press anything)\n" + read -rn 1 -s start + case $start in + c ) + todo="create" + ;; + esac + # If the user chose to create a new VM + if [ "$todo" = "create" ]; then + os=$("$prefix"quickget | sed 1d | cut -d':' -f2 | grep -o '[^ ]*' | fzf --cycle --header='Choose OS to download + or CTRL-c or ESC to quit') + # If the OS is Windows + if [ "$os" = windows ]; then + answer=$(echo "Default English +Choose other language" | fzf --cycle) + # If the user wants another windows language + if [ "$answer" = "Choose other language" ]; then + wrelease=$(echo "8 +10 +11" | fzf --cycle) + # get window language list + wlend=$(($(cat "$prefix"quickget | sed '/Arabic/,$!d' | grep -n '}' | cut -d':' -f1 | head -n 1) - 1)) + # get windows language + wlang=$(cat "$prefix"quickget | sed '/Arabic/,$!d' | head -n $wlend | cut -d'=' -f2 | tail -c +2 | head -c -2 | sed 's/^[ \t]*//' | fzf --cycle --header='Choose Language + or CTRL-c or ESC to quit') + # downloading windows + printf '\n Trying to download Windows %s %s...\n\n' "$wrelease" "$wlang" + "$prefix"quickget "windows" "$wrelease" "$wlang" + fi + fi + # Get the release and edition to download, if necessary + choices=$("$prefix"quickget "$os" | sed 1d) + if [ "$(echo "$choices" | wc -l)" = 1 ]; then + # get release + release=$(echo "$choices" | grep 'Releases' | cut -d':' -f2 | grep -o '[^ ]*' | fzf --cycle --header='Choose Release + or CTRL-c or ESC to quit') + # downloading + printf '\n Trying to download %s %s...\n\n' "$os" "$release" + "$prefix"quickget "$os" "$release" + else + # get release + release=$(echo "$choices" | grep 'Releases' | cut -d':' -f2 | grep -o '[^ ]*' | fzf --cycle --header='Choose Release + or CTRL-c or ESC to quit') + # get edition + edition=$(echo "$choices" | grep 'Editions' | cut -d':' -f2 | grep -o '[^ ]*' | fzf --cycle --header='Choose Edition + or CTRL-c or ESC to quit') + # downloading + printf '\n Trying to download %s %s %s...\n\n' "$os" "$release" "$edition" + "$prefix"quickget "$os" "$release" "$edition" + fi + # choose VM to run + choosed=$(echo "$(ls ./***.conf 2>/dev/null | sed 's/\.conf$//')" | fzf --cycle --header='Choose VM to run + or CTRL-c or ESC to quit') + # Run choosed VM + printf '\n Starting %s...\n\n' "$choosed" + "$prefix"quickemu -vm "$choosed.conf" + fi +} + +# more +function isos_to_dir() { + yad --file --directory > target + cd "$VMS_DIR" || exit 1 + cp */*.iso "$target" +} + +function add_distro() { + TMP_DIR="/tmp" + yad --form --field="Pretty name" "" --field="Name" "" --field="Releases" "" --field="Editions" "" --field="URL" "" --field="ISO" "" --field="Checksum file" "" > ${TMP_DIR}/template.tmp + PRETTY_NAME="$(cat ${TMP_DIR}/template.tmp | cut -d'|' -f1)" + NAME="$(cat ${TMP_DIR}/template.tmp | cut -d'|' -f2)" + RELEASES="$(cat ${TMP_DIR}/template.tmp | cut -d'|' -f3)" + EDITIONS="$(cat ${TMP_DIR}/template.tmp | cut -d'|' -f4)" + URL="$(cat ${TMP_DIR}/template.tmp | cut -d'|' -f5)" + ISO="$(cat ${TMP_DIR}/template.tmp | cut -d'|' -f6)" + CHECKSUM_FILE="$(cat ${TMP_DIR}/template.tmp | cut -d'|' -f7)" + echo " $NAME) PRETTY_NAME=$PRETTY_NAME;; +" > ${TMP_DIR}/${NAME}.tmp + { echo " $NAME \\ +"; echo "function releases_$NAME() { + echo $RELEASES +} +"; echo "function editions_$NAME() { + echo $EDITIONS +} +"; echo "function get_$NAME() { + local EDITION="${1:-}" + local HASH="" + local ISO="$ISO" + local URL="$URL" + HASH=\"$(wget -q -O- "${URL}/${CHECKSUM_FILE}" | grep "(${ISO}" | cut -d' ' -f4)\" + echo \"${URL}/${ISO} ${HASH}\" +} +"; } >> ${TMP_DIR}/${NAME}.tmp + meld "${TMP_DIR}/${NAME}.tmp $DH_CONFIG_DIR/quickget" +} + +function sort_functions() { + # Get the name of the script from the command line argument + script_name=$1 + # Get a list of all the function names in the script + function_names=$(grep -oP '^[[:space:]]*function \K\w+' "$script_name") + # Sort the function names alphabetically + sorted_function_names=$(echo "$function_names" | sort) + # Loop through the sorted function names and print the function definitions + for function_name in $sorted_function_names + do + # Print the function definition to stdout + grep -A $(wc -l < "$script_name") -w "function $function_name" "$script_name" + done +} + +function localization() { + #. gettext.sh + TEXTDOMAIN=distrohopper + TEXTDOMAINDIR=/usr/share/locale + mkdir lang + mkdir lang/cs + bash --dump-po-strings dh > lang/source.pot + cp lang/source.pot lang/cs/distrohopper.pot.tmp + meld lang/cs/distrohopper.pot.tmp lang/cs/distrohopper.pot && rm lang/cs/distrohopper.pot.tmp +} + +create_translation() { + echo $"Which language you want use [en,cs]?" + read -rn 1 -s lang + echo $"Choosed language is: $lang" + echo $"Dumping language source..." + bash --dump-po-strings dh.sh > "$DH_CONFIG_DIR"/locale/dh-source.pot + echo $"Merging changes... (Do it yourself)" + meld "$DH_CONFIG_DIR"/locale/dh-source.pot "$DH_CONFIG_DIR"/distrohopper-"$lang".pot + echo $"Generating .mo file..." + msgfmt -o "$DH_CONFIG_DIR"/locale/distrohopper-"$lang".mo "$DH_CONFIG_DIR"/locale/distrohopper-"$lang".pot + echo $"Copying translation to '/usr/share/local'..." + sudo cp "$DH_CONFIG_DIR"/locale/distrohopper-"$lang".mo /usr/share/locale/"$lang"/LC_MESSAGES/distrohopper.mo +} + +# run +set_variables + +if [[ $# -eq 0 ]]; then + printf $"No argumet provided!\n\n" + show_help + exit 0 +fi + +while [[ $# -gt 0 ]] +do + key="$1" + case $key in + -h|--help) + show_help + shift + ;; + -d|-dir) + set_dir + shift + ;; + -i|--install) + echo $"Starting installation..." + install_process + shift + ;; + -m|--mode) + echo $"Switching to portable mode!" + mode_portable + shift + ;; + -s|--supported) + echo $"Updating supported VMs..." + renew_supported + shift + ;; + -r|--ready) + echo $"Updating ready VMs..." + renew_ready + shift + ;; + -t|--tui) + echo $"Running TUI..." + run_tui + shift + ;; + -g|--gui) + echo $"Starting DistroHopper GUI..." + run_gui + shift + ;; + -a|--add) + echo $"Adding new distro started..." + add_distro + shift + ;; + -f|--functions) + echo $"Sorting functions in template..." + sort_functions + shift + ;; + -p|--push) + echo $"Pushing changes to... #TODO" + push_changes + shift + ;; + -c|--copy) + echo $"Copying ISOs to dir. It will take some time..." + isos_to_dir + shift + ;; + -e|--test) + echo $"Running supported test..." + renew_supported_test + shift + ;; + -l|--language) + create_translation + shift + ;; + *) + printf $"Invalid option: $1\n\n" + show_help + exit 1 + ;; + esac +done + +some_bugs + +exit 0 diff --git a/locale/cs_CZ/LC_MESSAGE/cs.po b/documents/distrohopper-cs.pot similarity index 63% rename from locale/cs_CZ/LC_MESSAGE/cs.po rename to documents/distrohopper-cs.pot index 618cd76..4f78c88 100644 --- a/locale/cs_CZ/LC_MESSAGE/cs.po +++ b/documents/distrohopper-cs.pot @@ -1,216 +1,147 @@ -msgid "" -msgstr "" -"Project-Id-Version: \n" -"POT-Creation-Date: \n" -"PO-Revision-Date: \n" -"Last-Translator: zenobit \n" -"Language-Team: \n" -"Language: cs\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 3.2.2\n" - -#: dh:5 +#: dh.sh:10 msgid "Done" msgstr "Hotovo" - -#: dh:6 +#: dh.sh:11 msgid "PS: You saw some bugs?" msgstr "PS: Viděli jste nějaké chyby?" - -#: dh:7 +#: dh.sh:12 msgid "Could you please provide feedback?" msgstr "Můžete prosím poslat zpětnou vazbu?" - -#: dh:8 +#: dh.sh:13 msgid "How do you like DistroHopper?" msgstr "Jak se vám líbí DistroHopper?" - -#: dh:9 +#: dh.sh:14 msgid "What can be improved, added, changed?" msgstr "Co může být vylepšeno, přidáno, změněno?" - -#: dh:10 +#: dh.sh:15 msgid " Let me know..." msgstr " Dejte mi vědět..." - -#: dh:11 +#: dh.sh:16 msgid "Flawless distro hopping..." msgstr "Bezchybné zkoušení distribucí..." - -#: dh:16 +#: dh.sh:21 msgid "Possible arguments:" msgstr "Možné argumenty:" - -#: dh:17 -msgid "\t-h\t--help\t\t\tShow this help and exit" -msgstr "\t-h\t--help\t\t\tZobrazit tuto nápovědu a skončit" - -#: dh:19 -msgid "\t-d\t--dir\t\t\tSet default directory where VMs are stored" -msgstr "\t-d\t--dir\t\t\tNastavit adresář kde jsou virtuální stroje uloženy" - -#: dh:20 -msgid "\t-i\t--install\t\tInstall DistroHopper" +#: dh.sh:22 +msgid " -h --help Show this help and exit" +msgstr " -h --help Zobrazit tuto nápovědu a skončit" +#: dh.sh:24 +msgid " -d --dir Set default directory where VMs are stored" +msgstr " -d --dir Nastavit adresář kde jsou virtuální stroje uloženy" +#: dh.sh:25 +msgid " -i --install Install DistroHopper" msgstr "\t-i\t--install\t\tInstalovat DistroHopper" - -#: dh:22 -msgid "\t-m\t--mode\t\t\tPortable mode" +#: dh.sh:27 +msgid " -m --mode Portable mode" msgstr "\t-m\t--mode\t\t\tPřenosný mód" - -#: dh:24 -msgid "\t-s\t--supported\t\tUpdate supported VMs" +#: dh.sh:29 +msgid " -s --supported Update supported VMs" msgstr "\t-s\t--supported\t\tAktualizovat podporované VM" - -#: dh:25 -msgid "\t-r\t--ready\t\t\tUpdate ready to run VMs" +#: dh.sh:30 +msgid " -r --ready Update ready to run VMs" msgstr "\t-r\t--ready\t\t\tAktualizovat připravené VM" - -#: dh:27 -msgid "\t-t\t--tui\t\t\tRun TUI" +#: dh.sh:32 +msgid " -t --tui Run TUI" msgstr "\t-t\t--tui\t\t\tSpustit terminálové uživatelské rozhranní" - -#: dh:28 -msgid "\t-g\t--gui\t\t\tRun GUI" +#: dh.sh:33 +msgid " -g --gui Run GUI" msgstr "\t-g\t--gui\t\t\tSpustit grafické uživatelské rozhranní" - -#: dh:30 -msgid "\t-a\t--add\t\t\tAdd new distro to quickget" +#: dh.sh:35 +msgid " -a --add Add new distro to quickget" msgstr "\t-a\t--add\t\t\tPřidat distribuci do quickget" - -#: dh:31 -msgid "\t-f\t--functions\t\tSort functions in quickget" +#: dh.sh:36 +msgid " -f --functions Sort functions in quickget" msgstr "\t-f\t--functions\t\tSeřadit funkce v quickget" - -#: dh:32 -msgid "\t-p\t--push\t\t\tPush changed quickget to quickemu project #todo" +#: dh.sh:37 +msgid " -p --push Push changed quickget to quickemu project #todo" msgstr "\t-p\t--push\t\t\tPoslat změněný quickget do quickemu projektu #UDELAT" - -#: dh:34 -msgid "\t-c\t--copy\t\t\tCopy all ISOs to target dir (for Ventoy)" -msgstr "\t-c\t--copy\t\t\tKopírovat všechny ISO to cílového adresáře" - -#: dh:36 +#: dh.sh:39 +msgid " -c --copy Copy all ISOs to target dir (for Ventoy)" +msgstr "\t-c\t--copy\t\t\tKopírovat všechny ISO to cílového adresáře (pro Ventoy)" +#: dh.sh:41 msgid "Homepage: dh.osowoso.xyz" msgstr "Domovský stránka: dh.osowoso.xyz" - -#: dh:37 +#: dh.sh:42 msgid "Project hosted at: https://github.com/oSoWoSo/DistroHopper" msgstr "Projekt hostován na: https://github.com/oSoWoSo/DistroHopper" - -#: dh:38 +#: dh.sh:43 msgid "Chat group on SimpleX: https://tinyurl.com/7hm4kcjx" msgstr "Chat skupina na SimpleX: https://tinyurl.com/7hm4kcjx" - -#: dh:61 -msgid "" -"You are missing yad...\n" -"\tNeeded for GUI!" -msgstr "" -"Chybí vám yad...\n" -" Potřeba pro GUI!" - -#: dh:66 -msgid "" -"You are missing fzf...\n" -"\tNeeded for TUI!" -msgstr "" -"Chybí vám fzf...\n" -" Potřeba pro TUI!" - -#: dh:90 +#: dh.sh:66 +msgid "Missing yad!" +msgstr "Chybí vám yad!" +#: dh.sh:70 +msgid "Missing fzf!" +msgstr "Chybí vám fzf!" +#: dh.sh:93 msgid "creating config dir..." msgstr "vytvářím adresář konfigurace..." - -#: dh:92 +#: dh.sh:95 msgid "creating icons dir as root..." msgstr "vytvářím adresář ikon jako superuživatel..." - -#: dh:115 +#: dh.sh:118 msgid "Copying icons..." msgstr "Kopíruji ikony..." - -#: dh:117 +#: dh.sh:120 msgid "Copying to config dir..." msgstr "Kopíruji do konfig adresáře..." - -#: dh:127 +#: dh.sh:130 msgid "Creating directory structure..." msgstr "Vytvářím adresářovou stukturu..." - -#: dh:129 +#: dh.sh:132 msgid "Setting up directory..." msgstr "Nastavuji adresář..." - -#: dh:131 +#: dh.sh:134 msgid "Installing needed..." msgstr "Instaluji potřebné..." - -#: dh:132 +#: dh.sh:135 msgid "For now voidlinux only" msgstr "Zatím jen VoidLinux" - -#: dh:134 +#: dh.sh:137 msgid "Installing DistroHopper to bin..." msgstr "Instaluji DistroHopper do bin..." - -#: dh:143 -msgid "No .conf files found" -msgstr "Nenalezen žádný soubor .conf" - -#: dh:275 +#: dh.sh:279 msgid "No VMs found." msgstr "Žádný VM nenalezen." - -#: dh:428 +#: dh.sh:411 +msgid "Which language you want use [en_US cs_CZ]?" +msgstr "Který jazyk chcete použít [en_US cs_CZ]?" +#: dh.sh:438 msgid "No argumet provided!\\n\\n" msgstr "Nezadali jste žádný argument!\\n\\n" - -#: dh:446 +#: dh.sh:456 msgid "Starting installation..." msgstr "Zahajuji instalaci..." - -#: dh:451 +#: dh.sh:461 msgid "Switching to portable mode!" msgstr "Přepínám do přenosného módu!" - -#: dh:456 +#: dh.sh:466 msgid "Updating supported VMs..." msgstr "Aktualizuji podporované VM..." - -#: dh:461 +#: dh.sh:471 msgid "Updating ready VMs..." msgstr "Aktualizuji připravené VM..." - -#: dh:466 +#: dh.sh:476 msgid "Running TUI..." msgstr "Spouštím TUI..." - -#: dh:471 +#: dh.sh:481 msgid "Starting DistroHopper GUI..." msgstr "Spouštím DistroHopper GUI..." - -#: dh:476 +#: dh.sh:486 msgid "Adding new distro started..." msgstr "Přidání nového distra zahájeno..." - -#: dh:481 +#: dh.sh:491 msgid "Sorting functions in template..." msgstr "Srovnávám funkce v šabloně..." - -#: dh:486 +#: dh.sh:496 msgid "Pushing changes to... #TODO" msgstr "Posílám změny do... #UDELAT" - -#: dh:491 +#: dh.sh:501 msgid "Copying ISOs to dir. It will take some time..." msgstr "Kopíruji soubory ISO do adresáře. Zabere to nějaký čas..." - -#: dh:496 +#: dh.sh:506 msgid "Running supported test..." msgstr "Spouštím test podporovaných..." - -#: dh:505 +#: dh.sh:515 msgid "Invalid option: $1\\n\\n" msgstr "Chybný argument: $1\\n\\n" diff --git a/documents/distrohopper.pot b/documents/distrohopper.pot new file mode 100644 index 0000000..4f78c88 --- /dev/null +++ b/documents/distrohopper.pot @@ -0,0 +1,147 @@ +#: dh.sh:10 +msgid "Done" +msgstr "Hotovo" +#: dh.sh:11 +msgid "PS: You saw some bugs?" +msgstr "PS: Viděli jste nějaké chyby?" +#: dh.sh:12 +msgid "Could you please provide feedback?" +msgstr "Můžete prosím poslat zpětnou vazbu?" +#: dh.sh:13 +msgid "How do you like DistroHopper?" +msgstr "Jak se vám líbí DistroHopper?" +#: dh.sh:14 +msgid "What can be improved, added, changed?" +msgstr "Co může být vylepšeno, přidáno, změněno?" +#: dh.sh:15 +msgid " Let me know..." +msgstr " Dejte mi vědět..." +#: dh.sh:16 +msgid "Flawless distro hopping..." +msgstr "Bezchybné zkoušení distribucí..." +#: dh.sh:21 +msgid "Possible arguments:" +msgstr "Možné argumenty:" +#: dh.sh:22 +msgid " -h --help Show this help and exit" +msgstr " -h --help Zobrazit tuto nápovědu a skončit" +#: dh.sh:24 +msgid " -d --dir Set default directory where VMs are stored" +msgstr " -d --dir Nastavit adresář kde jsou virtuální stroje uloženy" +#: dh.sh:25 +msgid " -i --install Install DistroHopper" +msgstr "\t-i\t--install\t\tInstalovat DistroHopper" +#: dh.sh:27 +msgid " -m --mode Portable mode" +msgstr "\t-m\t--mode\t\t\tPřenosný mód" +#: dh.sh:29 +msgid " -s --supported Update supported VMs" +msgstr "\t-s\t--supported\t\tAktualizovat podporované VM" +#: dh.sh:30 +msgid " -r --ready Update ready to run VMs" +msgstr "\t-r\t--ready\t\t\tAktualizovat připravené VM" +#: dh.sh:32 +msgid " -t --tui Run TUI" +msgstr "\t-t\t--tui\t\t\tSpustit terminálové uživatelské rozhranní" +#: dh.sh:33 +msgid " -g --gui Run GUI" +msgstr "\t-g\t--gui\t\t\tSpustit grafické uživatelské rozhranní" +#: dh.sh:35 +msgid " -a --add Add new distro to quickget" +msgstr "\t-a\t--add\t\t\tPřidat distribuci do quickget" +#: dh.sh:36 +msgid " -f --functions Sort functions in quickget" +msgstr "\t-f\t--functions\t\tSeřadit funkce v quickget" +#: dh.sh:37 +msgid " -p --push Push changed quickget to quickemu project #todo" +msgstr "\t-p\t--push\t\t\tPoslat změněný quickget do quickemu projektu #UDELAT" +#: dh.sh:39 +msgid " -c --copy Copy all ISOs to target dir (for Ventoy)" +msgstr "\t-c\t--copy\t\t\tKopírovat všechny ISO to cílového adresáře (pro Ventoy)" +#: dh.sh:41 +msgid "Homepage: dh.osowoso.xyz" +msgstr "Domovský stránka: dh.osowoso.xyz" +#: dh.sh:42 +msgid "Project hosted at: https://github.com/oSoWoSo/DistroHopper" +msgstr "Projekt hostován na: https://github.com/oSoWoSo/DistroHopper" +#: dh.sh:43 +msgid "Chat group on SimpleX: https://tinyurl.com/7hm4kcjx" +msgstr "Chat skupina na SimpleX: https://tinyurl.com/7hm4kcjx" +#: dh.sh:66 +msgid "Missing yad!" +msgstr "Chybí vám yad!" +#: dh.sh:70 +msgid "Missing fzf!" +msgstr "Chybí vám fzf!" +#: dh.sh:93 +msgid "creating config dir..." +msgstr "vytvářím adresář konfigurace..." +#: dh.sh:95 +msgid "creating icons dir as root..." +msgstr "vytvářím adresář ikon jako superuživatel..." +#: dh.sh:118 +msgid "Copying icons..." +msgstr "Kopíruji ikony..." +#: dh.sh:120 +msgid "Copying to config dir..." +msgstr "Kopíruji do konfig adresáře..." +#: dh.sh:130 +msgid "Creating directory structure..." +msgstr "Vytvářím adresářovou stukturu..." +#: dh.sh:132 +msgid "Setting up directory..." +msgstr "Nastavuji adresář..." +#: dh.sh:134 +msgid "Installing needed..." +msgstr "Instaluji potřebné..." +#: dh.sh:135 +msgid "For now voidlinux only" +msgstr "Zatím jen VoidLinux" +#: dh.sh:137 +msgid "Installing DistroHopper to bin..." +msgstr "Instaluji DistroHopper do bin..." +#: dh.sh:279 +msgid "No VMs found." +msgstr "Žádný VM nenalezen." +#: dh.sh:411 +msgid "Which language you want use [en_US cs_CZ]?" +msgstr "Který jazyk chcete použít [en_US cs_CZ]?" +#: dh.sh:438 +msgid "No argumet provided!\\n\\n" +msgstr "Nezadali jste žádný argument!\\n\\n" +#: dh.sh:456 +msgid "Starting installation..." +msgstr "Zahajuji instalaci..." +#: dh.sh:461 +msgid "Switching to portable mode!" +msgstr "Přepínám do přenosného módu!" +#: dh.sh:466 +msgid "Updating supported VMs..." +msgstr "Aktualizuji podporované VM..." +#: dh.sh:471 +msgid "Updating ready VMs..." +msgstr "Aktualizuji připravené VM..." +#: dh.sh:476 +msgid "Running TUI..." +msgstr "Spouštím TUI..." +#: dh.sh:481 +msgid "Starting DistroHopper GUI..." +msgstr "Spouštím DistroHopper GUI..." +#: dh.sh:486 +msgid "Adding new distro started..." +msgstr "Přidání nového distra zahájeno..." +#: dh.sh:491 +msgid "Sorting functions in template..." +msgstr "Srovnávám funkce v šabloně..." +#: dh.sh:496 +msgid "Pushing changes to... #TODO" +msgstr "Posílám změny do... #UDELAT" +#: dh.sh:501 +msgid "Copying ISOs to dir. It will take some time..." +msgstr "Kopíruji soubory ISO do adresáře. Zabere to nějaký čas..." +#: dh.sh:506 +msgid "Running supported test..." +msgstr "Spouštím test podporovaných..." +#: dh.sh:515 +msgid "Invalid option: $1\\n\\n" +msgstr "Chybný argument: $1\\n\\n" diff --git a/locale/strings_dump-0.7.po b/documents/source.pot similarity index 76% rename from locale/strings_dump-0.7.po rename to documents/source.pot index 14602f4..d761f97 100644 --- a/locale/strings_dump-0.7.po +++ b/documents/source.pot @@ -1,151 +1,147 @@ -#: dh:5 +#: dh.sh:10 msgid "Done" msgstr "" -#: dh:6 +#: dh.sh:11 msgid "PS: You saw some bugs?" msgstr "" -#: dh:7 +#: dh.sh:12 msgid "Could you please provide feedback?" msgstr "" -#: dh:8 +#: dh.sh:13 msgid "How do you like DistroHopper?" msgstr "" -#: dh:9 +#: dh.sh:14 msgid "What can be improved, added, changed?" msgstr "" -#: dh:10 +#: dh.sh:15 msgid " Let me know..." msgstr "" -#: dh:11 +#: dh.sh:16 msgid "Flawless distro hopping..." msgstr "" -#: dh:16 +#: dh.sh:21 msgid "Possible arguments:" msgstr "" -#: dh:17 +#: dh.sh:22 msgid " -h --help Show this help and exit" msgstr "" -#: dh:19 +#: dh.sh:24 msgid " -d --dir Set default directory where VMs are stored" msgstr "" -#: dh:20 +#: dh.sh:25 msgid " -i --install Install DistroHopper" msgstr "" -#: dh:22 +#: dh.sh:27 msgid " -m --mode Portable mode" msgstr "" -#: dh:24 +#: dh.sh:29 msgid " -s --supported Update supported VMs" msgstr "" -#: dh:25 +#: dh.sh:30 msgid " -r --ready Update ready to run VMs" msgstr "" -#: dh:27 +#: dh.sh:32 msgid " -t --tui Run TUI" msgstr "" -#: dh:28 +#: dh.sh:33 msgid " -g --gui Run GUI" msgstr "" -#: dh:30 +#: dh.sh:35 msgid " -a --add Add new distro to quickget" msgstr "" -#: dh:31 +#: dh.sh:36 msgid " -f --functions Sort functions in quickget" msgstr "" -#: dh:32 +#: dh.sh:37 msgid " -p --push Push changed quickget to quickemu project #todo" msgstr "" -#: dh:34 +#: dh.sh:39 msgid " -c --copy Copy all ISOs to target dir (for Ventoy)" msgstr "" -#: dh:36 +#: dh.sh:41 msgid "Homepage: dh.osowoso.xyz" msgstr "" -#: dh:37 +#: dh.sh:42 msgid "Project hosted at: https://github.com/oSoWoSo/DistroHopper" msgstr "" -#: dh:38 +#: dh.sh:43 msgid "Chat group on SimpleX: https://tinyurl.com/7hm4kcjx" msgstr "" -#: dh:61 -msgid "" -"You are missing yad...\n" -" Needed for GUI!" +#: dh.sh:66 +msgid "Missing yad!" msgstr "" -#: dh:66 -msgid "" -"You are missing fzf...\n" -" Needed for TUI!" +#: dh.sh:70 +msgid "Missing fzf!" msgstr "" -#: dh:90 +#: dh.sh:93 msgid "creating config dir..." msgstr "" -#: dh:92 +#: dh.sh:95 msgid "creating icons dir as root..." msgstr "" -#: dh:115 +#: dh.sh:118 msgid "Copying icons..." msgstr "" -#: dh:117 +#: dh.sh:120 msgid "Copying to config dir..." msgstr "" -#: dh:127 +#: dh.sh:130 msgid "Creating directory structure..." msgstr "" -#: dh:129 +#: dh.sh:132 msgid "Setting up directory..." msgstr "" -#: dh:131 +#: dh.sh:134 msgid "Installing needed..." msgstr "" -#: dh:132 +#: dh.sh:135 msgid "For now voidlinux only" msgstr "" -#: dh:134 +#: dh.sh:137 msgid "Installing DistroHopper to bin..." msgstr "" -#: dh:143 -msgid "No .conf files found" -msgstr "" -#: dh:275 +#: dh.sh:279 msgid "No VMs found." msgstr "" -#: dh:440 +#: dh.sh:411 +msgid "Which language you want use [en_US cs_CZ]?" +msgstr "" +#: dh.sh:438 msgid "No argumet provided!\\n\\n" msgstr "" -#: dh:458 +#: dh.sh:456 msgid "Starting installation..." msgstr "" -#: dh:463 +#: dh.sh:461 msgid "Switching to portable mode!" msgstr "" -#: dh:468 +#: dh.sh:466 msgid "Updating supported VMs..." msgstr "" -#: dh:473 +#: dh.sh:471 msgid "Updating ready VMs..." msgstr "" -#: dh:478 +#: dh.sh:476 msgid "Running TUI..." msgstr "" -#: dh:483 +#: dh.sh:481 msgid "Starting DistroHopper GUI..." msgstr "" -#: dh:488 +#: dh.sh:486 msgid "Adding new distro started..." msgstr "" -#: dh:493 +#: dh.sh:491 msgid "Sorting functions in template..." msgstr "" -#: dh:498 +#: dh.sh:496 msgid "Pushing changes to... #TODO" msgstr "" -#: dh:503 +#: dh.sh:501 msgid "Copying ISOs to dir. It will take some time..." msgstr "" -#: dh:508 +#: dh.sh:506 msgid "Running supported test..." msgstr "" -#: dh:517 +#: dh.sh:515 msgid "Invalid option: $1\\n\\n" msgstr "" diff --git a/locale/cs/LC_MESSAGE/distrohopper.mo b/locale/cs/LC_MESSAGE/distrohopper.mo new file mode 100644 index 0000000000000000000000000000000000000000..9de0ca5237a407052bf8a71dcae99dcadf259a63 GIT binary patch literal 4369 zcmb7`O>7-k700I#XkA(w%2)YldW}m-)8wV$qku)Rg55T0<0jz5p{6CeZ|3^V_|2O; z%-ng-d#qU?(Qc|rBoPY>SY+W=f*q2>;@K2cERYHdHoyuAkk}vuNL}zd_s#ooNF^9~ z^z+P|`*qI$ob!Hv?}1kWt`poJ=l;=cL9hsqzB33Of?qfg1fPSK;A8L=_z3(Jd_Vjb zd=TFCt{|9$C*Vin1^6YH!%xEPnr}iG_iuO)y!+k5b?=9t;dvf5U zb@%}M3uNiw&fACU-2*?w^ARZaC*l2Y4bH;L@B{EF6uZ~pUGNt*--LJb{6{F`{|3eG z_B)3AJp|`@{xtj;?7;WJ@4}D3@52wnpFjoQfa1@;LYeQ5nc=uu_(7f@hca#jihnxr z2z(jJx;LQg|F`w~zr&|_K6K|WJ_(dKY{SRk@8F~G;CqH~I|*g|7%su@z$5Stcntmn z%6aB+g81c|@F7@2iT72w0Dledg$Hqt_;C(?3O)h-z9FFqUWTHBt5D|qIh1()1}gZ^ zn)l%}@zWQf_~olm;=EDw+fdH`Jt*`25GwdfDEs&`d>p<755ajv^gj3;l=a$B#=it* zzdwdz_c|26{|SoSTlM<~SX{n;8H)d2fRDhJpsfEhD7oeXB~scFQ=-Ld-&&_pn<8N~fthy>hk`Gp7rT7+0vn>$Xs< zCUds;Fry+y@tQ#^Vqn&Fm3l)HI$QMAW^4+hR+meqVaYoaF>IY->s1!I#AYR9ZQ<1T zStZ%@##-36s)QxJR%Pm`3#S<$^DZ`NF6+j2Q@J=PmAp_oiI}~A z7}d_~W~0#v2yBwIren*gWls6H7;C3mg{^XBGqsX*^3;5NUd7Jk<^1vEF3EaTkv2lx zIsW;$^VxQ|aXAnL$c!Ta5aNb9?bK$1Dx7W;O3V5#=@`F6ZJvaLbNU6R<<)x96738> zRB5Do7LTPymqr}dO(LV#jft8%Y%c_hIEqdAA+?H-YZbbx@QW?k%mh!SdNVa;Inr`W zKp7)TJc&T@i|X1WN|UU*%(2s6aEcA*x@G276gO;XH@O>^dwo8T5!UZ1O*q-KLKcEr zH?p7U4-&^_lF52g78!>aI{kFk)oBtbn~TKf)q^LV&z{eM<)kcSs`dW*?D(OlquJnD z>$7CtR$0`LCsMBJ5a!xJ(X5}~+{(Oq4)2wEa~OhV)hZW)bC!8UyTehLE9ZlAwIpL( zq6DSgB<8Ke#Z}XX+^*P*+{dR67l__vn?uP<3E-e=?)=%MvjIt%$v1Q;ryo5|MC(lH zDChY{To{9z>hd(`fIFv@?)cW00#S>g>uyJ9iDCrSK$AM4CUDmL>UHWL^6T@xC~ zsBtdO20pQ5#$gVUd@^GEcCz>S%SB0|UILxgPYa5|+29B*KonqukXNpdO zLwwZV-kWO4Y|x@Qi4woqs*lsfOv|LC1N&GndUL3ivJ&8eX9eS3H4#OsU-Whj{agSQ$Ff8Mj^nGgj zh3{2+JA6?tEW%@co%hU&4ymzBE8nvWJ16xgy*vPJq>~-pDui0A& zmZ>4)%h9l2-O1WcNhd>yTNyI@Kbo0@Iu!@{RPEs#&Oc7am0V)xqf@uEsW(=M4*^ICU%!dA&k5l59iQjVj&V7M+M9bj@2#R@)b^y1T9ESZ~O*!|tZTLMP!D3pC_l0A|sy{na8JwY7Tbj8okuyqGNkh z7E2;r&cCBdXBUEJs4K*OL-%`a0vGz6!jCrw+wSJx*S%FT)%jT!I`lpN)<%-rEYh}$ M7Hx`gGmt(12hAV|1poj5 literal 0 HcmV?d00001 diff --git a/locale/cs_CZ/LC_MESSAGE/cs.html b/locale/cs_CZ/LC_MESSAGE/cs.html deleted file mode 100644 index 2401fda..0000000 --- a/locale/cs_CZ/LC_MESSAGE/cs.html +++ /dev/null @@ -1,468 +0,0 @@ - - - - - - - - -
- - - -
-
-
 
-
-
Přeloženo: 49 z 49 (100 %)
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Zdrojový text — angličtinaPřeklad — čeština
-Done -Hotovo
-PS: You saw some bugs? -PS: Viděli jste nějaké chyby?
-Could you please provide feedback? -Můžete prosím poslat zpětnou vazbu?
-How do you like DistroHopper? -Jak se vám líbí DistroHopper?
-What can be improved, added, changed? -Co může být vylepšeno, přidáno, změněno?
- Let me know... - Dejte mi vědět...
-Flawless distro hopping... -Bezchybné zkoušení distribucí...
-Possible arguments: -Možné argumenty:
- -h --help Show this help and exit - -h --help Zobrazit tuto nápovědu a skončit
- -d --dir Set default directory where VMs are stored - -d --dir Nastavit adresář kde jsou virtuální stroje uloženy
- -i --install Install DistroHopper - -i --install Instalovat DistroHopper
- -m --mode Portable mode - -m --mode Přenosný mód
- -s --supported Update supported VMs - -s --supported Aktualizovat podporované VM
- -r --ready Update ready to run VMs - -r --ready Aktualizovat připravené VM
- -t --tui Run TUI - -t --tui Spustit terminálové uživatelské rozhranní
- -g --gui Run GUI - -g --gui Spustit grafické uživatelské rozhranní
- -a --add Add new distro to quickget - -a --add Přidat distribuci do quickget
- -f --functions Sort functions in quickget - -f --functions Seřadit funkce v quickget
- -p --push Push changed quickget to quickemu project #todo - -p --push Poslat změněný quickget do quickemu projektu #UDELAT
- -c --copy Copy all ISOs to target dir (for Ventoy) - -c --copy Kopírovat všechny ISO to cílového adresáře
-Homepage: dh.osowoso.xyz -Domovský stránka: dh.osowoso.xyz
-Project hosted at: https://github.com/oSoWoSo/DistroHopper -Projekt hostován na: https://github.com/oSoWoSo/DistroHopper
-Chat group on SimpleX: https://tinyurl.com/7hm4kcjx -Chat skupina na SimpleX: https://tinyurl.com/7hm4kcjx
-You are missing yad... -
Needed for GUI!
-Chybí vám yad... -
Potřeba pro GUI!
-You are missing fzf... -
Needed for TUI!
-Chybí vám fzf... -
Potřeba pro TUI!
-creating config dir... -vytvářím adresář konfigurace...
-creating icons dir as root... -vytvářím adresář ikon jako superuživatel...
-Copying icons... -Kopíruji ikony...
-Copying to config dir... -Kopíruji do konfig adresáře...
-Creating directory structure... -Vytvářím adresářovou stukturu...
-Setting up directory... -Nastavuji adresář...
-Installing needed... -Instaluji potřebné...
-For now voidlinux only -Zatím jen VoidLinux
-Installing DistroHopper to bin... -Instaluji DistroHopper do bin...
-No .conf files found -Nenalezen žádný soubor .conf
-No VMs found. -Žádný VM nenalezen.
-No argumet provided!\n\n -Nezadali jste žádný argument!\n\n
-Starting installation... -Zahajuji instalaci...
-Switching to portable mode! -Přepínám do přenosného módu!
-Updating supported VMs... -Aktualizuji podporované VM...
-Updating ready VMs... -Aktualizuji připravené VM...
-Running TUI... -Spouštím TUI...
-Starting DistroHopper GUI... -Spouštím DistroHopper GUI...
-Adding new distro started... -Přidání nového distra zahájeno...
-Sorting functions in template... -Srovnávám funkce v šabloně...
-Pushing changes to... #TODO -Posílám změny do... #UDELAT
-Copying ISOs to dir. It will take some time... -Kopíruji soubory ISO do adresáře. Zabere to nějaký čas...
-Running supported test... -Spouštím test podporovaných...
-Invalid option: $1\n\n -Chybný argument: $1\n\n
-
- - diff --git a/locale/cs_CZ/LC_MESSAGE/cs.mo b/locale/cs_CZ/LC_MESSAGE/cs.mo deleted file mode 100644 index cecce71dba7c9422437c651b92535fb0aa740396..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4664 zcmb7`Pi!1l9ml661lIg-%b!qMo=FI8@vf7!K($S45<6+!#)%a>Zm}xC+nKk!|9FVvm2c)$HCpaMS=TIb2k07`qfrR*e-^|YLHmL-o zOg^6Xe(%rk|NiOz!#6xUr}2IY?;H1d-XeJB5dOn+@v!He0GGipfHC+*@cZEB!8gGN zz{P7{cnmxTeiCegXTWcQp9Sv}d<*2dnIoR}A@C89=hwg|z!$(8_zm#G;E%vh zfIkO61O5U0H27~2SMVNsPkx>NKZft8LCRkR9|k+%Ech+(LGXtl<$h6o{~r7RzW)kx z-M@pu#&HpL2&-0!Ep9JZz1f)NH3erD+0Z)QQ-=F*M zd64&c1zZBZ4RW8~f>rQ8AoZJr5on(lcmn)7NWZ@hE`Wao?+1@UdD?Rh`h6r#;(N0`^y8z>)yn2ROai#l^(n8(Eha|og1Vjpn1Li^P4B6Yk+ z@xlZyZ+Txn2#xZYEB>m22qE{tbuK6Q@fco&hHdaz0!4zXE zz_KQmH8bto(C8FvO=3m)EkZqcu@+=oS%@R9W?DRVZ5iv^7;CF2=DBUNEo?hX1qX!G zfl${&Y7{~!)TxCgmCADdhgfpDUo>&763BER(=~y@Myt4lY(z@%8&ff+;w)`*3J`u< z>Xr)1tCjXs-Au%Z*@DXAm^FdH;slEmB?FrCS{z8Lg!|;81Zuz{kV+wyW^s&@6&zFu zmLr9fg_JD~unq%=OE7j3iSi>VOAV6Uk(KBHXg*v+qwWGdw5f_eSOVvftu9?(qrq z4={m@Fz!xK2+bxVWWg)qhWDAApdTBd=6Mqm8cO6wU)DVtg@G_JL%c4IpL$upti8)d zz|guWnjvm4nkLf$2bm!5qsA{}Th@h#3)=*+GOXYTM{YKVG7ra%IrXj;N zU!`qY_g0H&Y?~B8Afz3;yA|4Y)^Of7Yvx6~^OJgc40S4-M?140I*McKSC+1L$Un_F zgdi0keU9VRs?>4@wZM50AqT(bPITi4bZ#(}>Q*5lkswZhVSAUYk@HiNMN%V5jCK>- zq4nLZ;T0xRnZ~o8%PH=drymT>73Jvo?#0ZD%obm2(NF@Zg6LGioIw2~iW0Ek(GM(W z-4Mp7LW3r@ovB=Q0RUGfG}7!{a(&5^oRWibvz|YS`RQyahh1X1`YThB7~`y5c)7Y9 zR5w(Tx;UFzy;8lZdLh56OR#EP%v_SGt*$3hr!ccg>SCa@X@pjs!5?3qNQGx1s#_V7 zq`IzT*DcMz>%vcGR+d-Jk54*PJ2|sxv_&hZuJ>acWYu*$4_AizX<8~tm3`*g`i1IK zV>w=;sgmk>?HiV?x_Al~nR%)DoYE@EZ?|exfXh8mJ6$_HgCaTZU#kZq1&B?Nc8uPC z^_}{lv&&T8Pq#uCM4MC(_e6L26E^J0W@s2kV$j{crST6kBM+3`C_7@uX5!ejrSq50 zu49wQrg#=psE`A9lNgST6WLQ5%5JPc^lhDSTG|9iax5&R#~pHHNvo1>2!l9Bzq2*P zlG;LR?uLSP+rO3P6~k<}LkH_3P6GaFkYXU)!<{XdhBd_X)wGkL??{1v|66Cx<1*U{ zQNyzae8Klzd-q0&02|2_e!Y!C*>Ch0ycJXsT5`0k zUo`QK6>Q=N!ySzv`#<_P9UakpE>Zii474wkaV@6DoNtP5J~4typ5oWXIL-F_Hcgk8 zMVhn>4i2v&7m;etS7n_$*g+FU3A*JZ#-~krt7z<-vMsl`ZQj_WA94|@y+RGg&Rx0{ zH6pJ`tlO+g*{nAz3(m{aHH14%O^>xQ IwhHR>Ur6O*!~g&Q diff --git a/locale/dh-source.pot b/locale/dh-source.pot new file mode 100644 index 0000000..fc63a35 --- /dev/null +++ b/locale/dh-source.pot @@ -0,0 +1,147 @@ +#: dh.sh:11 +msgid "Done" +msgstr "" +#: dh.sh:12 +msgid "PS: You saw some bugs?" +msgstr "" +#: dh.sh:13 +msgid "Could you please provide feedback?" +msgstr "" +#: dh.sh:14 +msgid "How do you like DistroHopper?" +msgstr "" +#: dh.sh:15 +msgid "What can be improved, added, changed?" +msgstr "" +#: dh.sh:16 +msgid " Let me know..." +msgstr "" +#: dh.sh:17 +msgid "Flawless distro hopping..." +msgstr "" +#: dh.sh:22 +msgid "Possible arguments:" +msgstr "" +#: dh.sh:23 +msgid " -h --help Show this help and exit" +msgstr "" +#: dh.sh:25 +msgid " -d --dir Set default directory where VMs are stored" +msgstr "" +#: dh.sh:26 +msgid " -i --install Install DistroHopper" +msgstr "" +#: dh.sh:28 +msgid " -m --mode Portable mode" +msgstr "" +#: dh.sh:30 +msgid " -s --supported Update supported VMs" +msgstr "" +#: dh.sh:31 +msgid " -r --ready Update ready to run VMs" +msgstr "" +#: dh.sh:33 +msgid " -t --tui Run TUI" +msgstr "" +#: dh.sh:34 +msgid " -g --gui Run GUI" +msgstr "" +#: dh.sh:36 +msgid " -a --add Add new distro to quickget" +msgstr "" +#: dh.sh:37 +msgid " -f --functions Sort functions in quickget" +msgstr "" +#: dh.sh:38 +msgid " -p --push Push changed quickget to quickemu project #todo" +msgstr "" +#: dh.sh:40 +msgid " -c --copy Copy all ISOs to target dir (for Ventoy)" +msgstr "" +#: dh.sh:42 +msgid "Homepage: dh.osowoso.xyz" +msgstr "" +#: dh.sh:43 +msgid "Project hosted at: https://github.com/oSoWoSo/DistroHopper" +msgstr "" +#: dh.sh:44 +msgid "Chat group on SimpleX: https://tinyurl.com/7hm4kcjx" +msgstr "" +#: dh.sh:67 +msgid "Missing yad!" +msgstr "" +#: dh.sh:71 +msgid "Missing fzf!" +msgstr "" +#: dh.sh:94 +msgid "creating config dir..." +msgstr "" +#: dh.sh:96 +msgid "creating icons dir as root..." +msgstr "" +#: dh.sh:119 +msgid "Copying icons..." +msgstr "" +#: dh.sh:121 +msgid "Copying to config dir..." +msgstr "" +#: dh.sh:131 +msgid "Creating directory structure..." +msgstr "" +#: dh.sh:133 +msgid "Setting up directory..." +msgstr "" +#: dh.sh:135 +msgid "Installing needed..." +msgstr "" +#: dh.sh:136 +msgid "For now voidlinux only" +msgstr "" +#: dh.sh:138 +msgid "Installing DistroHopper to bin..." +msgstr "" +#: dh.sh:280 +msgid "No VMs found." +msgstr "" +#: dh.sh:412 +msgid "Which language you want use [en_US cs_CZ]?" +msgstr "" +#: dh.sh:441 +msgid "No argumet provided!\\n\\n" +msgstr "" +#: dh.sh:459 +msgid "Starting installation..." +msgstr "" +#: dh.sh:464 +msgid "Switching to portable mode!" +msgstr "" +#: dh.sh:469 +msgid "Updating supported VMs..." +msgstr "" +#: dh.sh:474 +msgid "Updating ready VMs..." +msgstr "" +#: dh.sh:479 +msgid "Running TUI..." +msgstr "" +#: dh.sh:484 +msgid "Starting DistroHopper GUI..." +msgstr "" +#: dh.sh:489 +msgid "Adding new distro started..." +msgstr "" +#: dh.sh:494 +msgid "Sorting functions in template..." +msgstr "" +#: dh.sh:499 +msgid "Pushing changes to... #TODO" +msgstr "" +#: dh.sh:504 +msgid "Copying ISOs to dir. It will take some time..." +msgstr "" +#: dh.sh:509 +msgid "Running supported test..." +msgstr "" +#: dh.sh:518 +msgid "Invalid option: $1\\n\\n" +msgstr "" diff --git a/locale/distrohopper-cs.pot b/locale/distrohopper-cs.pot new file mode 100644 index 0000000..4f78c88 --- /dev/null +++ b/locale/distrohopper-cs.pot @@ -0,0 +1,147 @@ +#: dh.sh:10 +msgid "Done" +msgstr "Hotovo" +#: dh.sh:11 +msgid "PS: You saw some bugs?" +msgstr "PS: Viděli jste nějaké chyby?" +#: dh.sh:12 +msgid "Could you please provide feedback?" +msgstr "Můžete prosím poslat zpětnou vazbu?" +#: dh.sh:13 +msgid "How do you like DistroHopper?" +msgstr "Jak se vám líbí DistroHopper?" +#: dh.sh:14 +msgid "What can be improved, added, changed?" +msgstr "Co může být vylepšeno, přidáno, změněno?" +#: dh.sh:15 +msgid " Let me know..." +msgstr " Dejte mi vědět..." +#: dh.sh:16 +msgid "Flawless distro hopping..." +msgstr "Bezchybné zkoušení distribucí..." +#: dh.sh:21 +msgid "Possible arguments:" +msgstr "Možné argumenty:" +#: dh.sh:22 +msgid " -h --help Show this help and exit" +msgstr " -h --help Zobrazit tuto nápovědu a skončit" +#: dh.sh:24 +msgid " -d --dir Set default directory where VMs are stored" +msgstr " -d --dir Nastavit adresář kde jsou virtuální stroje uloženy" +#: dh.sh:25 +msgid " -i --install Install DistroHopper" +msgstr "\t-i\t--install\t\tInstalovat DistroHopper" +#: dh.sh:27 +msgid " -m --mode Portable mode" +msgstr "\t-m\t--mode\t\t\tPřenosný mód" +#: dh.sh:29 +msgid " -s --supported Update supported VMs" +msgstr "\t-s\t--supported\t\tAktualizovat podporované VM" +#: dh.sh:30 +msgid " -r --ready Update ready to run VMs" +msgstr "\t-r\t--ready\t\t\tAktualizovat připravené VM" +#: dh.sh:32 +msgid " -t --tui Run TUI" +msgstr "\t-t\t--tui\t\t\tSpustit terminálové uživatelské rozhranní" +#: dh.sh:33 +msgid " -g --gui Run GUI" +msgstr "\t-g\t--gui\t\t\tSpustit grafické uživatelské rozhranní" +#: dh.sh:35 +msgid " -a --add Add new distro to quickget" +msgstr "\t-a\t--add\t\t\tPřidat distribuci do quickget" +#: dh.sh:36 +msgid " -f --functions Sort functions in quickget" +msgstr "\t-f\t--functions\t\tSeřadit funkce v quickget" +#: dh.sh:37 +msgid " -p --push Push changed quickget to quickemu project #todo" +msgstr "\t-p\t--push\t\t\tPoslat změněný quickget do quickemu projektu #UDELAT" +#: dh.sh:39 +msgid " -c --copy Copy all ISOs to target dir (for Ventoy)" +msgstr "\t-c\t--copy\t\t\tKopírovat všechny ISO to cílového adresáře (pro Ventoy)" +#: dh.sh:41 +msgid "Homepage: dh.osowoso.xyz" +msgstr "Domovský stránka: dh.osowoso.xyz" +#: dh.sh:42 +msgid "Project hosted at: https://github.com/oSoWoSo/DistroHopper" +msgstr "Projekt hostován na: https://github.com/oSoWoSo/DistroHopper" +#: dh.sh:43 +msgid "Chat group on SimpleX: https://tinyurl.com/7hm4kcjx" +msgstr "Chat skupina na SimpleX: https://tinyurl.com/7hm4kcjx" +#: dh.sh:66 +msgid "Missing yad!" +msgstr "Chybí vám yad!" +#: dh.sh:70 +msgid "Missing fzf!" +msgstr "Chybí vám fzf!" +#: dh.sh:93 +msgid "creating config dir..." +msgstr "vytvářím adresář konfigurace..." +#: dh.sh:95 +msgid "creating icons dir as root..." +msgstr "vytvářím adresář ikon jako superuživatel..." +#: dh.sh:118 +msgid "Copying icons..." +msgstr "Kopíruji ikony..." +#: dh.sh:120 +msgid "Copying to config dir..." +msgstr "Kopíruji do konfig adresáře..." +#: dh.sh:130 +msgid "Creating directory structure..." +msgstr "Vytvářím adresářovou stukturu..." +#: dh.sh:132 +msgid "Setting up directory..." +msgstr "Nastavuji adresář..." +#: dh.sh:134 +msgid "Installing needed..." +msgstr "Instaluji potřebné..." +#: dh.sh:135 +msgid "For now voidlinux only" +msgstr "Zatím jen VoidLinux" +#: dh.sh:137 +msgid "Installing DistroHopper to bin..." +msgstr "Instaluji DistroHopper do bin..." +#: dh.sh:279 +msgid "No VMs found." +msgstr "Žádný VM nenalezen." +#: dh.sh:411 +msgid "Which language you want use [en_US cs_CZ]?" +msgstr "Který jazyk chcete použít [en_US cs_CZ]?" +#: dh.sh:438 +msgid "No argumet provided!\\n\\n" +msgstr "Nezadali jste žádný argument!\\n\\n" +#: dh.sh:456 +msgid "Starting installation..." +msgstr "Zahajuji instalaci..." +#: dh.sh:461 +msgid "Switching to portable mode!" +msgstr "Přepínám do přenosného módu!" +#: dh.sh:466 +msgid "Updating supported VMs..." +msgstr "Aktualizuji podporované VM..." +#: dh.sh:471 +msgid "Updating ready VMs..." +msgstr "Aktualizuji připravené VM..." +#: dh.sh:476 +msgid "Running TUI..." +msgstr "Spouštím TUI..." +#: dh.sh:481 +msgid "Starting DistroHopper GUI..." +msgstr "Spouštím DistroHopper GUI..." +#: dh.sh:486 +msgid "Adding new distro started..." +msgstr "Přidání nového distra zahájeno..." +#: dh.sh:491 +msgid "Sorting functions in template..." +msgstr "Srovnávám funkce v šabloně..." +#: dh.sh:496 +msgid "Pushing changes to... #TODO" +msgstr "Posílám změny do... #UDELAT" +#: dh.sh:501 +msgid "Copying ISOs to dir. It will take some time..." +msgstr "Kopíruji soubory ISO do adresáře. Zabere to nějaký čas..." +#: dh.sh:506 +msgid "Running supported test..." +msgstr "Spouštím test podporovaných..." +#: dh.sh:515 +msgid "Invalid option: $1\\n\\n" +msgstr "Chybný argument: $1\\n\\n" diff --git a/locale/distrohopper.pot b/locale/distrohopper.pot new file mode 100644 index 0000000..5bc1642 --- /dev/null +++ b/locale/distrohopper.pot @@ -0,0 +1,147 @@ +#: dh.sh:11 +msgid "Done" +msgstr "Hotovo" +#: dh.sh:12 +msgid "PS: You saw some bugs?" +msgstr "PS: Viděli jste nějaké chyby?" +#: dh.sh:13 +msgid "Could you please provide feedback?" +msgstr "Můžete prosím poslat zpětnou vazbu?" +#: dh.sh:14 +msgid "How do you like DistroHopper?" +msgstr "Jak se vám líbí DistroHopper?" +#: dh.sh:15 +msgid "What can be improved, added, changed?" +msgstr "Co může být vylepšeno, přidáno, změněno?" +#: dh.sh:16 +msgid " Let me know..." +msgstr " Dejte mi vědět..." +#: dh.sh:17 +msgid "Flawless distro hopping..." +msgstr "Bezchybné zkoušení distribucí..." +#: dh.sh:22 +msgid "Possible arguments:" +msgstr "Možné argumenty:" +#: dh.sh:23 +msgid " -h --help Show this help and exit" +msgstr " -h --help Zobrazit tuto nápovědu a skončit" +#: dh.sh:25 +msgid " -d --dir Set default directory where VMs are stored" +msgstr " -d --dir Nastavit adresář kde jsou virtuální stroje uloženy" +#: dh.sh:26 +msgid " -i --install Install DistroHopper" +msgstr "\t-i\t--install\t\tInstalovat DistroHopper" +#: dh.sh:28 +msgid " -m --mode Portable mode" +msgstr "\t-m\t--mode\t\t\tPřenosný mód" +#: dh.sh:30 +msgid " -s --supported Update supported VMs" +msgstr "\t-s\t--supported\t\tAktualizovat podporované VM" +#: dh.sh:31 +msgid " -r --ready Update ready to run VMs" +msgstr "\t-r\t--ready\t\t\tAktualizovat připravené VM" +#: dh.sh:33 +msgid " -t --tui Run TUI" +msgstr "\t-t\t--tui\t\t\tSpustit terminálové uživatelské rozhranní" +#: dh.sh:34 +msgid " -g --gui Run GUI" +msgstr "\t-g\t--gui\t\t\tSpustit grafické uživatelské rozhranní" +#: dh.sh:36 +msgid " -a --add Add new distro to quickget" +msgstr "\t-a\t--add\t\t\tPřidat distribuci do quickget" +#: dh.sh:37 +msgid " -f --functions Sort functions in quickget" +msgstr "\t-f\t--functions\t\tSeřadit funkce v quickget" +#: dh.sh:38 +msgid " -p --push Push changed quickget to quickemu project #todo" +msgstr "\t-p\t--push\t\t\tPoslat změněný quickget do quickemu projektu #UDELAT" +#: dh.sh:40 +msgid " -c --copy Copy all ISOs to target dir (for Ventoy)" +msgstr "\t-c\t--copy\t\t\tKopírovat všechny ISO to cílového adresáře (pro Ventoy)" +#: dh.sh:42 +msgid "Homepage: dh.osowoso.xyz" +msgstr "Domovský stránka: dh.osowoso.xyz" +#: dh.sh:43 +msgid "Project hosted at: https://github.com/oSoWoSo/DistroHopper" +msgstr "Projekt hostován na: https://github.com/oSoWoSo/DistroHopper" +#: dh.sh:44 +msgid "Chat group on SimpleX: https://tinyurl.com/7hm4kcjx" +msgstr "Chat skupina na SimpleX: https://tinyurl.com/7hm4kcjx" +#: dh.sh:67 +msgid "Missing yad!" +msgstr "Chybí vám yad!" +#: dh.sh:71 +msgid "Missing fzf!" +msgstr "Chybí vám fzf!" +#: dh.sh:94 +msgid "creating config dir..." +msgstr "vytvářím adresář konfigurace..." +#: dh.sh:96 +msgid "creating icons dir as root..." +msgstr "vytvářím adresář ikon jako superuživatel..." +#: dh.sh:119 +msgid "Copying icons..." +msgstr "Kopíruji ikony..." +#: dh.sh:121 +msgid "Copying to config dir..." +msgstr "Kopíruji do konfig adresáře..." +#: dh.sh:131 +msgid "Creating directory structure..." +msgstr "Vytvářím adresářovou stukturu..." +#: dh.sh:133 +msgid "Setting up directory..." +msgstr "Nastavuji adresář..." +#: dh.sh:135 +msgid "Installing needed..." +msgstr "Instaluji potřebné..." +#: dh.sh:136 +msgid "For now voidlinux only" +msgstr "Zatím jen VoidLinux" +#: dh.sh:138 +msgid "Installing DistroHopper to bin..." +msgstr "Instaluji DistroHopper do bin..." +#: dh.sh:280 +msgid "No VMs found." +msgstr "Žádný VM nenalezen." +#: dh.sh:412 +msgid "Which language you want use [en_US cs_CZ]?" +msgstr "Který jazyk chcete použít [en_US cs_CZ]?" +#: dh.sh:441 +msgid "No argumet provided!\\n\\n" +msgstr "Nezadali jste žádný argument!\\n\\n" +#: dh.sh:459 +msgid "Starting installation..." +msgstr "Zahajuji instalaci..." +#: dh.sh:464 +msgid "Switching to portable mode!" +msgstr "Přepínám do přenosného módu!" +#: dh.sh:469 +msgid "Updating supported VMs..." +msgstr "Aktualizuji podporované VM..." +#: dh.sh:474 +msgid "Updating ready VMs..." +msgstr "Aktualizuji připravené VM..." +#: dh.sh:479 +msgid "Running TUI..." +msgstr "Spouštím TUI..." +#: dh.sh:484 +msgid "Starting DistroHopper GUI..." +msgstr "Spouštím DistroHopper GUI..." +#: dh.sh:489 +msgid "Adding new distro started..." +msgstr "Přidání nového distra zahájeno..." +#: dh.sh:494 +msgid "Sorting functions in template..." +msgstr "Srovnávám funkce v šabloně..." +#: dh.sh:499 +msgid "Pushing changes to... #TODO" +msgstr "Posílám změny do... #UDELAT" +#: dh.sh:504 +msgid "Copying ISOs to dir. It will take some time..." +msgstr "Kopíruji soubory ISO do adresáře. Zabere to nějaký čas..." +#: dh.sh:509 +msgid "Running supported test..." +msgstr "Spouštím test podporovaných..." +#: dh.sh:518 +msgid "Invalid option: $1\\n\\n" +msgstr "Chybný argument: $1\\n\\n" diff --git a/locale/strings_dump-0.7.html b/locale/strings_dump-0.7.html deleted file mode 100644 index 51278fc..0000000 --- a/locale/strings_dump-0.7.html +++ /dev/null @@ -1,467 +0,0 @@ - - - - DistroHopper - - - - -
- - - - -
-
-
 
-
-
Přeloženo: 0 z 49 (0 %) • Zbývá: 49
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Zdrojový text — angličtinaPřeklad — angličtina
-Done -
-PS: You saw some bugs? -
-Could you please provide feedback? -
-How do you like DistroHopper? -
-What can be improved, added, changed? -
- Let me know... -
-Flawless distro hopping... -
-Possible arguments: -
- -h --help Show this help and exit -
- -d --dir Set default directory where VMs are stored -
- -i --install Install DistroHopper -
- -m --mode Portable mode -
- -s --supported Update supported VMs -
- -r --ready Update ready to run VMs -
- -t --tui Run TUI -
- -g --gui Run GUI -
- -a --add Add new distro to quickget -
- -f --functions Sort functions in quickget -
- -p --push Push changed quickget to quickemu project #todo -
- -c --copy Copy all ISOs to target dir (for Ventoy) -
-Homepage: dh.osowoso.xyz -
-Project hosted at: https://github.com/oSoWoSo/DistroHopper -
-Chat group on SimpleX: https://tinyurl.com/7hm4kcjx -
-You are missing yad... -
Needed for GUI!
-
-You are missing fzf... -
Needed for TUI!
-
-creating config dir... -
-creating icons dir as root... -
-Copying icons... -
-Copying to config dir... -
-Creating directory structure... -
-Setting up directory... -
-Installing needed... -
-For now voidlinux only -
-Installing DistroHopper to bin... -
-No .conf files found -
-No VMs found. -
-No argumet provided!\n\n -
-Starting installation... -
-Switching to portable mode! -
-Updating supported VMs... -
-Updating ready VMs... -
-Running TUI... -
-Starting DistroHopper GUI... -
-Adding new distro started... -
-Sorting functions in template... -
-Pushing changes to... #TODO -
-Copying ISOs to dir. It will take some time... -
-Running supported test... -
-Invalid option: $1\n\n -
-
- - diff --git a/locale/strings_dump-0.7.mo b/locale/strings_dump-0.7.mo deleted file mode 100644 index 1f2a4061b4286f8cafbfe5d9bebc0d58cb056fc5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 348 zcmYL^!AiqG5QZyy+M{O=t9Vdwqm7riH6qwl3l@V!@wz5sx{}U>-L1BL4`0t`abltU z;bUiZe)wm8_xFB!tR3cnIc9d5Gp19*9P#jq-_Em9?&uTBpvIMY1?MfHmP6}vecdh};8cbs zRTgV46W&MU&D@zrjmXWsme~HcK8*)*U8W}}4^!Dc9f&t|4+w63Pfk$rIhRo!#iI8I D!Cz&+