Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
modification suggestion - "help"
#1
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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)