modification suggestion - "help" - Printable Version +- Ventoy Forums (https://forums.ventoy.net) +-- Forum: Ventoy General Use —— Ventoy 使用交流 (https://forums.ventoy.net/forumdisplay.php?fid=1) +--- Forum: Ventoy Discussion Forum (https://forums.ventoy.net/forumdisplay.php?fid=2) +--- Thread: modification suggestion - "help" (/showthread.php?tid=1922) |
modification suggestion - "help" - AlexBryansk - 12-22-2021 Hello. Thank you very much for the program. Since "help" is not in all national languages, I suggest that the user create a help file himself (for example /ventoy/ru_RU.txt), and make the following changes in grub.cfg: function ventoy_show_help { if [ -f $vtoy_iso_part/ventoy/ru_RU.txt ]; then background_color gray set color_normal=blue/black echo " файл справки /ventoy/ru_RU.txt:" echo ' ' cat $vtoy_iso_part/ventoy/ru_RU.txt background_color black set color_normal=white/black else if [ -f $prefix/help.tar.gz ]; then ....... Your code...... fi } you can also create a menu bar for the user to describe the composition of the flash drive, and the like ... if [ -f $vtoy_iso_part/ventoy/help_RU.txt ]; then menuentry ' о флешке, программах...' --hotkey=7 --class=info { set pager=1 background_color gray set color_normal=blue/black echo " файл справки /ventoy/help_RU.txt:" echo ' ' echo ' Нажатие на клавишу "Enter" листает файл вниз по-строчно, любая другая по-странично. Вверх листания нет.' echo ' ' cat $vtoy_iso_part/ventoy/help_RU.txt echo -e "\nнажмите ENTER для выхода из файла" read vtInputKey set pager=0 background_color black set color_normal=white/black } fi if something is unclear, beat google translator |