language changes

This commit is contained in:
zenobit 2023-03-30 04:38:55 +02:00
parent 6d6f21896e
commit e94ee28b81
5 changed files with 11 additions and 11 deletions

14
dh
View File

@ -34,8 +34,8 @@ function show_help() {
printf $"\ts\tsupported\t\tUpdate supported VMs\n"
printf $"\tr\tready\t\t\tUpdate ready to run VMs\n"
echo "---------------------------------------------------------"
printf $"\tt\ttui\t\t\tRun TUI\n"
printf $"\tg\tgui\t\t\tRun GUI\n"
printf $"\tt\ttui\t\t\tRun terminal user interface (TUI)\n"
printf $"\tg\tgui\t\t\tRun graphical user interface (GUI)\n"
echo "---------------------------------------------------------"
printf $"\ta\tadd\t\t\tAdd new distro to quickget\n"
printf $"\tf\tfunctions\t\tSort functions in quickget\n"
@ -417,9 +417,9 @@ function sort_functions() {
}
function translate() {
echo $"Which language change? [en,cs]"
echo $"Which language change? (en/cs)"
echo $"If you want create new one, insert two digit language code..."
read -rn 2 -s lang
read lang
echo $"Choosed language is: $lang"
echo $"Dumping language source..."
bash --dump-po-strings dh > "$DH_CONFIG_DIR"/locale/dh-source.pot
@ -427,9 +427,9 @@ function translate() {
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 $"Do you want copy $lang translation to '/usr/share/local' as ROOT? (y/n)"
echo $"Do you want copy $lang translation to '/usr/share/local' as root? (y/n)"
read response
if [[ "$response" =~ ^[Yy]$ ]]; then
if [[ "$response" =~ ^[YyAa]$ ]]; then
echo $"Copying translation to '/usr/share/local'..."
sudo cp "$DH_CONFIG_DIR"/locale/distrohopper-"$lang".mo /usr/share/locale/"$lang"/LC_MESSAGES/distrohopper.mo
fi
@ -476,7 +476,7 @@ do
shift
;;
t|tui)
echo $"Running TUI..."
echo $"Running DistroHopper TUI..."
run_tui
shift
;;

Binary file not shown.

View File

@ -2,7 +2,7 @@ msgid ""
msgstr ""
"Project-Id-Version: 0.77b\n"
"POT-Creation-Date: 2023-03-29\n"
"PO-Revision-Date: 2023-03-30 02:52+0200\n"
"PO-Revision-Date: 2023-03-30 04:44+0200\n"
"Last-Translator: zenobit <zen@osowoso.xyz>\n"
"Language-Team: Czech\n"
"Language: cs\n"
@ -156,7 +156,7 @@ msgstr "Instaluji potřebné..."
msgid "Installing DistroHopper to bin..."
msgstr "Instaluji DistroHopper do bin..."
#: dh:220
#: dh:219
msgid "Creating desktop file for $vm_desktop..."
msgstr "Vytvářím soubor desktop pro $vm_desktop..."

View File

@ -103,7 +103,7 @@ msgstr ""
#: dh:165
msgid "Installing DistroHopper to bin..."
msgstr ""
#: dh:220
#: dh:219
msgid "Creating desktop file for $vm_desktop..."
msgstr ""
#: dh:264

View File

@ -153,7 +153,7 @@ msgstr "Instaluji potřebné..."
msgid "Installing DistroHopper to bin..."
msgstr "Instaluji DistroHopper do bin..."
#: dh:220
#: dh:219
msgid "Creating desktop file for $vm_desktop..."
msgstr "Vytvářím soubor desktop pro $vm_desktop..."