Translation instructions

 

In this part of the documentation I will explain how to translate the script.

Unfortunately, the batch has some limitations so you have to respect some rules because otherwise the translation may cause the script to crash.

Also note that the most up-to-date translation will be French, the script will remain optimized for this language in the first place.

 

Instructions

 

Also, in the languages script, you must replace the line "goto:%~1" (the first line of eatch french translation script) by this little function:

set lng_label_exist=0 %ushs_base_path%tools\gnuwin32\bin\grep.exe -c -E "^:%~1$" <"%~0" >"%ushs_base_path%temp_lng_var.txt" set /p lng_label_exist=<"%ushs_base_path%temp_lng_var.txt" del /q "%ushs_base_path%temp_lng_var.txt" IF "%lng_label_exist%"=="0" ( call "!associed_language_script:%language_path%=languages\FR_fr!" "%~1" goto:eof ) else ( goto:%~1 )

Submit a translation

 

To offer me a translation to integrate, you can make a pull request on Github or propose a zip by opening an exit. Please contact me in French or English.