localisation

This commit is contained in:
zenobit 2023-03-27 07:38:39 +02:00
parent c8ec6743b6
commit a42b38e19f
13 changed files with 1292 additions and 1207 deletions

140
dh
View File

@ -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 <<EOF
msgid ""
msgstr ""
"Project-Id-Version: DistroHopper $version\n"
"POT-Creation-Date: $(date +%Y-%m-%d\ %H:%M%z)\n"
"PO-Revision-Date: $(date +%Y-%m-%d\ %H:%M%z)\n"
"Last-Translator: zenobit\n"
"Language-Team: Czech\n"
"Language: cs\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n>=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
;;

517
dh.sh Executable file
View File

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

View File

@ -1,216 +1,147 @@
msgid ""
msgstr ""
"Project-Id-Version: \n"
"POT-Creation-Date: \n"
"PO-Revision-Date: \n"
"Last-Translator: zenobit <zen@osowoso.xyz>\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"

147
documents/distrohopper.pot Normal file
View File

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

View File

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

Binary file not shown.

View File

@ -1,468 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>
<style>
/*
Based on Minimal CSS (minimalcss.com) under the MIT license.
*/
/* Reset */
* { margin: 0; padding: 0; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }
/* Layout */
body { font: 14px/20px -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
.container { position: relative; max-width: 90%; margin: 0 auto; }
/* Typography */
a { color: #105CB6; text-decoration: none; }
a:hover, a:focus { color: #105CB6; text-decoration: underline; }
a:active { color: #105CB6; }
h1 { font-size: 24px; line-height: 20px; margin: 10px 0; }
h2 { font-size: 20px; line-height: 20px; margin: 10px 0; }
h3 { font-size: 16px; line-height: 20px; margin: 10px 0; }
h4 { font-size: 14px; line-height: 20px; margin: 10px 0; }
h5 { font-size: 12px; line-height: 20px; margin: 10px 0; }
h5 { font-size: 10px; line-height: 20px; margin: 10px 0; }
p { margin-bottom: 10px; }
.float-left { float: left; }
.float-right { float: right; }
img.float-left { float: left; margin: 0 20px 20px 0; }
img.float-right { float: right; margin: 0 0 20px 20px; }
img.center { margin: 0 auto; display: block; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }
/* List */
ul { list-style-position:inside; }
ol { list-style-position:inside; }
/* Table */
table {
border-collapse: collapse;
border-spacing: 0;
}
th { font-weight: bold; }
tfoot { font-style: italic; }
/* Metadata part */
.metadata {
margin-top: 15px;
margin-bottom: 10px;
font-size: 90%;
}
table.metadata td {
padding-right: 20px;
}
.stats {
padding-top: 5px;
padding-bottom: 20px;
}
.graph {
width: 100%;
}
.graph div { float: left; }
.graph div:first-child { border-top-left-radius: 3px; border-bottom-left-radius: 3px; }
.graph div:last-child { border-top-right-radius: 3px; border-bottom-right-radius: 3px; }
.legend {
font-size: smaller;
padding-top: 12px;
text-align: center;
}
/* Translations */
table.translations {
width: 100%;
table-layout: fixed;
}
table.translations th, table.translations td {
padding: 5px 10px;
vertical-align: top;
border-bottom: 1px solid #F1F1F1;
}
table.translations th {
text-align: left;
}
table.translations th:first-child, table.translations td:first-child { padding-left: 0; }
table.translations th:last-child, table.translations td:last-child { padding-right: 0; }
.with-comments td {
border-bottom: none !important;
}
tr.comments div {
float: left;
max-width: 90%;
font-size: smaller;
}
tr.comments div p:last-child { margin-bottom: 0; }
tr.comments td { padding-top: 0; }
.msgctxt {
font-size: smaller;
border-radius: 2px;
padding: 2px 4px;
margin-right: 4px;
}
/* Colors */
body { background-color: #fff; color: #333; }
.percent-done { background-color: rgb(146, 236, 106); height: 10px; }
.percent-fuzzy { background-color: rgb(255, 149, 0); height: 10px; }
.percent-untrans { background-color: #F1F1F1; height: 10px; }
.legend { color: #aaa; }
tr.comments div { color: #aaa; }
.fuzzy .tra { color: rgb(230, 134, 0); }
.msgctxt { color: rgb(70, 109, 137); background-color: rgb(217, 232, 242); }
@media (prefers-color-scheme: dark) {
body { background-color: rgb(45, 42, 41); color: #eee; }
.percent-untrans { background-color: rgba(255, 255, 255, 0.3); }
.legend { color: rgba(255, 255, 255, 0.6); }
tr.comments div { color: rgba(255, 255, 255, 0.6); }
.fuzzy .tra { color: rgb(253, 178, 72); }
.msgctxt { color: rgb(180, 222, 254); background-color: rgba(67, 94, 147, 0.6); }
table.translations th, table.translations td { border-bottom: 1px solid #333; }
}
</style>
</head>
<body>
<div class='container'>
<table class='metadata'>
<tr><td>Jazyk:</td><td>čeština</td></tr>
</table>
<div class='stats'>
<div class='graph'>
<div class='percent-done' style='width: 100%'>&nbsp;</div>
</div>
<div class='legend'>Přeloženo: 49 z 49 (100 %) </div>
</div>
<table class='translations'>
<thead>
<tr>
<th>Zdrojový text — angličtina</th>
<th>Překlad — čeština</th>
</tr>
</thead>
<tbody>
<tr class='i'>
<td class='src' lang='en'>
Done</td>
<td class='tra' lang='cs'>
Hotovo</td>
</tr>
<tr class='i'>
<td class='src' lang='en'>
PS: You saw some bugs?</td>
<td class='tra' lang='cs'>
PS: Viděli jste nějaké chyby?</td>
</tr>
<tr class='i'>
<td class='src' lang='en'>
Could you please provide feedback?</td>
<td class='tra' lang='cs'>
Můžete prosím poslat zpětnou vazbu?</td>
</tr>
<tr class='i'>
<td class='src' lang='en'>
How do you like DistroHopper?</td>
<td class='tra' lang='cs'>
Jak se vám líbí DistroHopper?</td>
</tr>
<tr class='i'>
<td class='src' lang='en'>
What can be improved, added, changed?</td>
<td class='tra' lang='cs'>
Co může být vylepšeno, přidáno, změněno?</td>
</tr>
<tr class='i'>
<td class='src' lang='en'>
Let me know...</td>
<td class='tra' lang='cs'>
Dejte mi vědět...</td>
</tr>
<tr class='i'>
<td class='src' lang='en'>
Flawless distro hopping...</td>
<td class='tra' lang='cs'>
Bezchybné zkoušení distribucí...</td>
</tr>
<tr class='i'>
<td class='src' lang='en'>
Possible arguments:</td>
<td class='tra' lang='cs'>
Možné argumenty:</td>
</tr>
<tr class='i'>
<td class='src' lang='en'>
-h --help Show this help and exit</td>
<td class='tra' lang='cs'>
-h --help Zobrazit tuto nápovědu a skončit</td>
</tr>
<tr class='i'>
<td class='src' lang='en'>
-d --dir Set default directory where VMs are stored</td>
<td class='tra' lang='cs'>
-d --dir Nastavit adresář kde jsou virtuální stroje uloženy</td>
</tr>
<tr class='i'>
<td class='src' lang='en'>
-i --install Install DistroHopper</td>
<td class='tra' lang='cs'>
-i --install Instalovat DistroHopper</td>
</tr>
<tr class='i'>
<td class='src' lang='en'>
-m --mode Portable mode</td>
<td class='tra' lang='cs'>
-m --mode Přenosný mód</td>
</tr>
<tr class='i'>
<td class='src' lang='en'>
-s --supported Update supported VMs</td>
<td class='tra' lang='cs'>
-s --supported Aktualizovat podporované VM</td>
</tr>
<tr class='i'>
<td class='src' lang='en'>
-r --ready Update ready to run VMs</td>
<td class='tra' lang='cs'>
-r --ready Aktualizovat připravené VM</td>
</tr>
<tr class='i'>
<td class='src' lang='en'>
-t --tui Run TUI</td>
<td class='tra' lang='cs'>
-t --tui Spustit terminálové uživatelské rozhranní</td>
</tr>
<tr class='i'>
<td class='src' lang='en'>
-g --gui Run GUI</td>
<td class='tra' lang='cs'>
-g --gui Spustit grafické uživatelské rozhranní</td>
</tr>
<tr class='i'>
<td class='src' lang='en'>
-a --add Add new distro to quickget</td>
<td class='tra' lang='cs'>
-a --add Přidat distribuci do quickget</td>
</tr>
<tr class='i'>
<td class='src' lang='en'>
-f --functions Sort functions in quickget</td>
<td class='tra' lang='cs'>
-f --functions Seřadit funkce v quickget</td>
</tr>
<tr class='i'>
<td class='src' lang='en'>
-p --push Push changed quickget to quickemu project #todo</td>
<td class='tra' lang='cs'>
-p --push Poslat změněný quickget do quickemu projektu #UDELAT</td>
</tr>
<tr class='i'>
<td class='src' lang='en'>
-c --copy Copy all ISOs to target dir (for Ventoy)</td>
<td class='tra' lang='cs'>
-c --copy Kopírovat všechny ISO to cílového adresáře</td>
</tr>
<tr class='i'>
<td class='src' lang='en'>
Homepage: dh.osowoso.xyz</td>
<td class='tra' lang='cs'>
Domovský stránka: dh.osowoso.xyz</td>
</tr>
<tr class='i'>
<td class='src' lang='en'>
Project hosted at: https://github.com/oSoWoSo/DistroHopper</td>
<td class='tra' lang='cs'>
Projekt hostován na: https://github.com/oSoWoSo/DistroHopper</td>
</tr>
<tr class='i'>
<td class='src' lang='en'>
Chat group on SimpleX: https://tinyurl.com/7hm4kcjx</td>
<td class='tra' lang='cs'>
Chat skupina na SimpleX: https://tinyurl.com/7hm4kcjx</td>
</tr>
<tr class='i'>
<td class='src' lang='en'>
You are missing yad...
<br> Needed for GUI!</td>
<td class='tra' lang='cs'>
Chybí vám yad...
<br> Potřeba pro GUI!</td>
</tr>
<tr class='i'>
<td class='src' lang='en'>
You are missing fzf...
<br> Needed for TUI!</td>
<td class='tra' lang='cs'>
Chybí vám fzf...
<br> Potřeba pro TUI!</td>
</tr>
<tr class='i'>
<td class='src' lang='en'>
creating config dir...</td>
<td class='tra' lang='cs'>
vytvářím adresář konfigurace...</td>
</tr>
<tr class='i'>
<td class='src' lang='en'>
creating icons dir as root...</td>
<td class='tra' lang='cs'>
vytvářím adresář ikon jako superuživatel...</td>
</tr>
<tr class='i'>
<td class='src' lang='en'>
Copying icons...</td>
<td class='tra' lang='cs'>
Kopíruji ikony...</td>
</tr>
<tr class='i'>
<td class='src' lang='en'>
Copying to config dir...</td>
<td class='tra' lang='cs'>
Kopíruji do konfig adresáře...</td>
</tr>
<tr class='i'>
<td class='src' lang='en'>
Creating directory structure...</td>
<td class='tra' lang='cs'>
Vytvářím adresářovou stukturu...</td>
</tr>
<tr class='i'>
<td class='src' lang='en'>
Setting up directory...</td>
<td class='tra' lang='cs'>
Nastavuji adresář...</td>
</tr>
<tr class='i'>
<td class='src' lang='en'>
Installing needed...</td>
<td class='tra' lang='cs'>
Instaluji potřebné...</td>
</tr>
<tr class='i'>
<td class='src' lang='en'>
For now voidlinux only</td>
<td class='tra' lang='cs'>
Zatím jen VoidLinux</td>
</tr>
<tr class='i'>
<td class='src' lang='en'>
Installing DistroHopper to bin...</td>
<td class='tra' lang='cs'>
Instaluji DistroHopper do bin...</td>
</tr>
<tr class='i'>
<td class='src' lang='en'>
No .conf files found</td>
<td class='tra' lang='cs'>
Nenalezen žádný soubor .conf</td>
</tr>
<tr class='i'>
<td class='src' lang='en'>
No VMs found.</td>
<td class='tra' lang='cs'>
Žádný VM nenalezen.</td>
</tr>
<tr class='i'>
<td class='src' lang='en'>
No argumet provided!\n\n</td>
<td class='tra' lang='cs'>
Nezadali jste žádný argument!\n\n</td>
</tr>
<tr class='i'>
<td class='src' lang='en'>
Starting installation...</td>
<td class='tra' lang='cs'>
Zahajuji instalaci...</td>
</tr>
<tr class='i'>
<td class='src' lang='en'>
Switching to portable mode!</td>
<td class='tra' lang='cs'>
Přepínám do přenosného módu!</td>
</tr>
<tr class='i'>
<td class='src' lang='en'>
Updating supported VMs...</td>
<td class='tra' lang='cs'>
Aktualizuji podporované VM...</td>
</tr>
<tr class='i'>
<td class='src' lang='en'>
Updating ready VMs...</td>
<td class='tra' lang='cs'>
Aktualizuji připravené VM...</td>
</tr>
<tr class='i'>
<td class='src' lang='en'>
Running TUI...</td>
<td class='tra' lang='cs'>
Spouštím TUI...</td>
</tr>
<tr class='i'>
<td class='src' lang='en'>
Starting DistroHopper GUI...</td>
<td class='tra' lang='cs'>
Spouštím DistroHopper GUI...</td>
</tr>
<tr class='i'>
<td class='src' lang='en'>
Adding new distro started...</td>
<td class='tra' lang='cs'>
Přidání nového distra zahájeno...</td>
</tr>
<tr class='i'>
<td class='src' lang='en'>
Sorting functions in template...</td>
<td class='tra' lang='cs'>
Srovnávám funkce v šabloně...</td>
</tr>
<tr class='i'>
<td class='src' lang='en'>
Pushing changes to... #TODO</td>
<td class='tra' lang='cs'>
Posílám změny do... #UDELAT</td>
</tr>
<tr class='i'>
<td class='src' lang='en'>
Copying ISOs to dir. It will take some time...</td>
<td class='tra' lang='cs'>
Kopíruji soubory ISO do adresáře. Zabere to nějaký čas...</td>
</tr>
<tr class='i'>
<td class='src' lang='en'>
Running supported test...</td>
<td class='tra' lang='cs'>
Spouštím test podporovaných...</td>
</tr>
<tr class='i'>
<td class='src' lang='en'>
Invalid option: $1\n\n</td>
<td class='tra' lang='cs'>
Chybný argument: $1\n\n</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>

Binary file not shown.

147
locale/dh-source.pot Normal file
View File

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

147
locale/distrohopper-cs.pot Normal file
View File

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

147
locale/distrohopper.pot Normal file
View File

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

View File

@ -1,467 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<title>DistroHopper</title>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>
<style>
/*
Based on Minimal CSS (minimalcss.com) under the MIT license.
*/
/* Reset */
* { margin: 0; padding: 0; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }
/* Layout */
body { font: 14px/20px -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
.container { position: relative; max-width: 90%; margin: 0 auto; }
/* Typography */
a { color: #105CB6; text-decoration: none; }
a:hover, a:focus { color: #105CB6; text-decoration: underline; }
a:active { color: #105CB6; }
h1 { font-size: 24px; line-height: 20px; margin: 10px 0; }
h2 { font-size: 20px; line-height: 20px; margin: 10px 0; }
h3 { font-size: 16px; line-height: 20px; margin: 10px 0; }
h4 { font-size: 14px; line-height: 20px; margin: 10px 0; }
h5 { font-size: 12px; line-height: 20px; margin: 10px 0; }
h5 { font-size: 10px; line-height: 20px; margin: 10px 0; }
p { margin-bottom: 10px; }
.float-left { float: left; }
.float-right { float: right; }
img.float-left { float: left; margin: 0 20px 20px 0; }
img.float-right { float: right; margin: 0 0 20px 20px; }
img.center { margin: 0 auto; display: block; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }
/* List */
ul { list-style-position:inside; }
ol { list-style-position:inside; }
/* Table */
table {
border-collapse: collapse;
border-spacing: 0;
}
th { font-weight: bold; }
tfoot { font-style: italic; }
/* Metadata part */
.metadata {
margin-top: 15px;
margin-bottom: 10px;
font-size: 90%;
}
table.metadata td {
padding-right: 20px;
}
.stats {
padding-top: 5px;
padding-bottom: 20px;
}
.graph {
width: 100%;
}
.graph div { float: left; }
.graph div:first-child { border-top-left-radius: 3px; border-bottom-left-radius: 3px; }
.graph div:last-child { border-top-right-radius: 3px; border-bottom-right-radius: 3px; }
.legend {
font-size: smaller;
padding-top: 12px;
text-align: center;
}
/* Translations */
table.translations {
width: 100%;
table-layout: fixed;
}
table.translations th, table.translations td {
padding: 5px 10px;
vertical-align: top;
border-bottom: 1px solid #F1F1F1;
}
table.translations th {
text-align: left;
}
table.translations th:first-child, table.translations td:first-child { padding-left: 0; }
table.translations th:last-child, table.translations td:last-child { padding-right: 0; }
.with-comments td {
border-bottom: none !important;
}
tr.comments div {
float: left;
max-width: 90%;
font-size: smaller;
}
tr.comments div p:last-child { margin-bottom: 0; }
tr.comments td { padding-top: 0; }
.msgctxt {
font-size: smaller;
border-radius: 2px;
padding: 2px 4px;
margin-right: 4px;
}
/* Colors */
body { background-color: #fff; color: #333; }
.percent-done { background-color: rgb(146, 236, 106); height: 10px; }
.percent-fuzzy { background-color: rgb(255, 149, 0); height: 10px; }
.percent-untrans { background-color: #F1F1F1; height: 10px; }
.legend { color: #aaa; }
tr.comments div { color: #aaa; }
.fuzzy .tra { color: rgb(230, 134, 0); }
.msgctxt { color: rgb(70, 109, 137); background-color: rgb(217, 232, 242); }
@media (prefers-color-scheme: dark) {
body { background-color: rgb(45, 42, 41); color: #eee; }
.percent-untrans { background-color: rgba(255, 255, 255, 0.3); }
.legend { color: rgba(255, 255, 255, 0.6); }
tr.comments div { color: rgba(255, 255, 255, 0.6); }
.fuzzy .tra { color: rgb(253, 178, 72); }
.msgctxt { color: rgb(180, 222, 254); background-color: rgba(67, 94, 147, 0.6); }
table.translations th, table.translations td { border-bottom: 1px solid #333; }
}
</style>
</head>
<body>
<div class='container'>
<table class='metadata'>
<tr><td>Projekt:</td><td>DistroHopper</td></tr>
<tr><td>Jazyk:</td><td>angličtina</td></tr>
</table>
<div class='stats'>
<div class='graph'>
<div class='percent-untrans' style='width: 100%'>&nbsp;</div>
</div>
<div class='legend'>Přeloženo: 0 z 49 (0 %) • Zbývá: 49 </div>
</div>
<table class='translations'>
<thead>
<tr>
<th>Zdrojový text — angličtina</th>
<th>Překlad — angličtina</th>
</tr>
</thead>
<tbody>
<tr class='i untrans'>
<td class='src' lang='en'>
Done</td>
<td class='tra' lang='en'>
</td>
</tr>
<tr class='i untrans'>
<td class='src' lang='en'>
PS: You saw some bugs?</td>
<td class='tra' lang='en'>
</td>
</tr>
<tr class='i untrans'>
<td class='src' lang='en'>
Could you please provide feedback?</td>
<td class='tra' lang='en'>
</td>
</tr>
<tr class='i untrans'>
<td class='src' lang='en'>
How do you like DistroHopper?</td>
<td class='tra' lang='en'>
</td>
</tr>
<tr class='i untrans'>
<td class='src' lang='en'>
What can be improved, added, changed?</td>
<td class='tra' lang='en'>
</td>
</tr>
<tr class='i untrans'>
<td class='src' lang='en'>
Let me know...</td>
<td class='tra' lang='en'>
</td>
</tr>
<tr class='i untrans'>
<td class='src' lang='en'>
Flawless distro hopping...</td>
<td class='tra' lang='en'>
</td>
</tr>
<tr class='i untrans'>
<td class='src' lang='en'>
Possible arguments:</td>
<td class='tra' lang='en'>
</td>
</tr>
<tr class='i untrans'>
<td class='src' lang='en'>
-h --help Show this help and exit</td>
<td class='tra' lang='en'>
</td>
</tr>
<tr class='i untrans'>
<td class='src' lang='en'>
-d --dir Set default directory where VMs are stored</td>
<td class='tra' lang='en'>
</td>
</tr>
<tr class='i untrans'>
<td class='src' lang='en'>
-i --install Install DistroHopper</td>
<td class='tra' lang='en'>
</td>
</tr>
<tr class='i untrans'>
<td class='src' lang='en'>
-m --mode Portable mode</td>
<td class='tra' lang='en'>
</td>
</tr>
<tr class='i untrans'>
<td class='src' lang='en'>
-s --supported Update supported VMs</td>
<td class='tra' lang='en'>
</td>
</tr>
<tr class='i untrans'>
<td class='src' lang='en'>
-r --ready Update ready to run VMs</td>
<td class='tra' lang='en'>
</td>
</tr>
<tr class='i untrans'>
<td class='src' lang='en'>
-t --tui Run TUI</td>
<td class='tra' lang='en'>
</td>
</tr>
<tr class='i untrans'>
<td class='src' lang='en'>
-g --gui Run GUI</td>
<td class='tra' lang='en'>
</td>
</tr>
<tr class='i untrans'>
<td class='src' lang='en'>
-a --add Add new distro to quickget</td>
<td class='tra' lang='en'>
</td>
</tr>
<tr class='i untrans'>
<td class='src' lang='en'>
-f --functions Sort functions in quickget</td>
<td class='tra' lang='en'>
</td>
</tr>
<tr class='i untrans'>
<td class='src' lang='en'>
-p --push Push changed quickget to quickemu project #todo</td>
<td class='tra' lang='en'>
</td>
</tr>
<tr class='i untrans'>
<td class='src' lang='en'>
-c --copy Copy all ISOs to target dir (for Ventoy)</td>
<td class='tra' lang='en'>
</td>
</tr>
<tr class='i untrans'>
<td class='src' lang='en'>
Homepage: dh.osowoso.xyz</td>
<td class='tra' lang='en'>
</td>
</tr>
<tr class='i untrans'>
<td class='src' lang='en'>
Project hosted at: https://github.com/oSoWoSo/DistroHopper</td>
<td class='tra' lang='en'>
</td>
</tr>
<tr class='i untrans'>
<td class='src' lang='en'>
Chat group on SimpleX: https://tinyurl.com/7hm4kcjx</td>
<td class='tra' lang='en'>
</td>
</tr>
<tr class='i untrans'>
<td class='src' lang='en'>
You are missing yad...
<br> Needed for GUI!</td>
<td class='tra' lang='en'>
</td>
</tr>
<tr class='i untrans'>
<td class='src' lang='en'>
You are missing fzf...
<br> Needed for TUI!</td>
<td class='tra' lang='en'>
</td>
</tr>
<tr class='i untrans'>
<td class='src' lang='en'>
creating config dir...</td>
<td class='tra' lang='en'>
</td>
</tr>
<tr class='i untrans'>
<td class='src' lang='en'>
creating icons dir as root...</td>
<td class='tra' lang='en'>
</td>
</tr>
<tr class='i untrans'>
<td class='src' lang='en'>
Copying icons...</td>
<td class='tra' lang='en'>
</td>
</tr>
<tr class='i untrans'>
<td class='src' lang='en'>
Copying to config dir...</td>
<td class='tra' lang='en'>
</td>
</tr>
<tr class='i untrans'>
<td class='src' lang='en'>
Creating directory structure...</td>
<td class='tra' lang='en'>
</td>
</tr>
<tr class='i untrans'>
<td class='src' lang='en'>
Setting up directory...</td>
<td class='tra' lang='en'>
</td>
</tr>
<tr class='i untrans'>
<td class='src' lang='en'>
Installing needed...</td>
<td class='tra' lang='en'>
</td>
</tr>
<tr class='i untrans'>
<td class='src' lang='en'>
For now voidlinux only</td>
<td class='tra' lang='en'>
</td>
</tr>
<tr class='i untrans'>
<td class='src' lang='en'>
Installing DistroHopper to bin...</td>
<td class='tra' lang='en'>
</td>
</tr>
<tr class='i untrans'>
<td class='src' lang='en'>
No .conf files found</td>
<td class='tra' lang='en'>
</td>
</tr>
<tr class='i untrans'>
<td class='src' lang='en'>
No VMs found.</td>
<td class='tra' lang='en'>
</td>
</tr>
<tr class='i untrans'>
<td class='src' lang='en'>
No argumet provided!\n\n</td>
<td class='tra' lang='en'>
</td>
</tr>
<tr class='i untrans'>
<td class='src' lang='en'>
Starting installation...</td>
<td class='tra' lang='en'>
</td>
</tr>
<tr class='i untrans'>
<td class='src' lang='en'>
Switching to portable mode!</td>
<td class='tra' lang='en'>
</td>
</tr>
<tr class='i untrans'>
<td class='src' lang='en'>
Updating supported VMs...</td>
<td class='tra' lang='en'>
</td>
</tr>
<tr class='i untrans'>
<td class='src' lang='en'>
Updating ready VMs...</td>
<td class='tra' lang='en'>
</td>
</tr>
<tr class='i untrans'>
<td class='src' lang='en'>
Running TUI...</td>
<td class='tra' lang='en'>
</td>
</tr>
<tr class='i untrans'>
<td class='src' lang='en'>
Starting DistroHopper GUI...</td>
<td class='tra' lang='en'>
</td>
</tr>
<tr class='i untrans'>
<td class='src' lang='en'>
Adding new distro started...</td>
<td class='tra' lang='en'>
</td>
</tr>
<tr class='i untrans'>
<td class='src' lang='en'>
Sorting functions in template...</td>
<td class='tra' lang='en'>
</td>
</tr>
<tr class='i untrans'>
<td class='src' lang='en'>
Pushing changes to... #TODO</td>
<td class='tra' lang='en'>
</td>
</tr>
<tr class='i untrans'>
<td class='src' lang='en'>
Copying ISOs to dir. It will take some time...</td>
<td class='tra' lang='en'>
</td>
</tr>
<tr class='i untrans'>
<td class='src' lang='en'>
Running supported test...</td>
<td class='tra' lang='en'>
</td>
</tr>
<tr class='i untrans'>
<td class='src' lang='en'>
Invalid option: $1\n\n</td>
<td class='tra' lang='en'>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>

Binary file not shown.