refactor(dh): replace hardcoded strings with variables and improve readability

refactor(dh): replace hardcoded strings with variables in the dh script

refactor(lang): improve language translations and remove unnecessary escape characters

chore(lang): update language files formatting and translations
This commit is contained in:
zenobit 2023-04-02 11:14:03 +02:00
parent 7cdb647f6f
commit 7f9a85e1f7
5 changed files with 152 additions and 152 deletions

View file

@ -8,30 +8,30 @@ MSG_C_LANG="Do you want copy translation to system? (y/n)"
MSG_C_TRANS="Copying translation..."
MSG_D_INTERM="Do you want DistroHopper to run in the terminal? (y/n)"
MSG_DIR="creating config dir..."
MSG_D_LANG="\n Trying to download Windows %s %s...\n\n"
MSG_D_LANG=" Trying to download Windows %s %s..."
MSG_DONE="Done"
MSG_D_OS="\n Trying to download %s %s...\n\n"
MSG_D_RELEASE="\n Trying to download %s %s %s...\n\n"
MSG_D_OS=" Trying to download %s %s..."
MSG_D_RELEASE=" Trying to download %s %s %s..."
MSG_DUMP="Dumping language source..."
MSG_ERROR="Error"
MSG_FEEDBACK="Could you please provide feedback?"
MSG_FZF="Missing fzf!"
MSG_H_ADD="\ta\tadd\t\t\tAdd new distro to quickget\n"
MSG_H_COPY="\tc\tcopy\t\t\tCopy all ISOs to target dir (for Ventoy)\n"
MSG_H_DIR="\td\tdir\t\t\tSet default directory where VMs are stored\n"
MSG_H_FIRST="\texample for First run from terminal:"
MSG_H_GUI="\tg\tgui\t\t\tRun graphical user interface (GUI)\n"
MSG_H_HELP="\th\thelp\t\t\tShow this help and exit\n"
MSG_H_INSTALL="\ti\tinstall\t\t\tInstall DistroHopper\n"
MSG_H_LANG="\tl\tlanguage\t\tTranslate DistroHopper\n"
MSG_H_MODE="\tm\tmode\t\t\tPortable mode\n"
MSG_H_ADD="Add new distro to quickget"
MSG_H_COPY="Copy all ISOs to target dir (for Ventoy)"
MSG_H_DIR="Set default directory where VMs are stored"
MSG_H_FIRST="example for First run from terminal:"
MSG_H_GUI="Run graphical user interface (GUI)"
MSG_H_HELP="Show this help and exit"
MSG_H_INSTALL="Install DistroHopper"
MSG_H_LANG="Translate DistroHopper"
MSG_H_MODE="Portable mode"
MSG_HOMEPAGE="Homepage: dh.osowoso.xyz"
MSG_HOSTED="Project hosted at: https://github.com/oSoWoSo/DistroHopper"
MSG_H_PUSH="\tp\tpush\t\t\tPush changed quickget to quickemu project\n"
MSG_H_READY="\tr\tready\t\t\tUpdate ready to run VMs\n"
MSG_H_SORT="\tf\tfunctions\t\tSort functions in quickget\n"
MSG_H_SUPPORTED="\ts\tsupported\t\tUpdate supported VMs\n"
MSG_H_TUI="\tt\ttui\t\t\tRun terminal user interface (TUI)\n"
MSG_H_PUSH="Push changed quickget to quickemu project"
MSG_H_READY="Update ready to run VMs"
MSG_H_SORT="Sort functions in quickget"
MSG_H_SUPPORTED="Update supported VMs"
MSG_H_TUI="Run terminal user interface (TUI)"
MSG_CHAT="Chat group on SimpleX: https://tinyurl.com/7hm4kcjx"
MSG_ICONS="creating icons dir as root..."
MSG_IMPROVE="What can be improved, added, changed?"
@ -49,17 +49,17 @@ MSG_NEEDED="Installing needed..."
MSG_NEW=" Do you want to create a new VM? (c)"
MSG_NO_CONF="No .conf files found"
MSG_NO_DISTROERROR="I currently don't have support for your distro"
MSG_NO="No argumet provided!\n\n"
MSG_NO="No argumet provided!"
MSG_NO_VM="No VMs found."
MSG_OR_RUN=" or run an existing one? (press anything)\n"
MSG_PREPARED=" Prepared VMs:\n-------------\n\n"
MSG_OR_RUN=" or run an existing one? (press anything)"
MSG_PREPARED=" Prepared VMs"
MSG_PUSHING="Pushing changes to..."
MSG_Q_INTERM="Do you want quickget to show outputs in the terminal? (y/n)"
MSG_R_TUI="Running DistroHopper TUI..."
MSG_RUNNING="DistroHopper is running... Press Ctrl-Q anytime to exit."
MSG_SETTINGUP="Setting up directory..."
MSG_S_GUI="Starting DistroHopper GUI..."
MSG_S_CHOOSED="\n Starting %s...\n\n"
MSG_S_CHOOSED=" Starting %s..."
MSG_S_INSTALL="Starting installation..."
MSG_SORTING="Sorting functions in template..."
MSG_STRUCTURE="Creating directory structure..."