From 7806cd6a9565e707939b948cfbfa33986f88e6fd Mon Sep 17 00:00:00 2001 From: Matthew Clark <43628254+mon5termatt@users.noreply.github.com> Date: Sat, 6 Aug 2022 02:17:24 -0500 Subject: [PATCH] Update Medicat_Installer.bat --- Medicat_Installer.bat | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Medicat_Installer.bat b/Medicat_Installer.bat index c18165d..32e4e05 100644 --- a/Medicat_Installer.bat +++ b/Medicat_Installer.bat @@ -59,9 +59,13 @@ REM IF POWERSHELL CHECK IS GOOD THEN PROMPT FOR LANGUAGE :lang call:binfolder FOR /F "skip=2 tokens=2*" %%a IN ('REG QUERY "HKEY_CURRENT_USER\Control Panel\International" /v "LocaleName"') DO SET "OSLanguage=%%b" -IF "%OSLanguage%"=="en-US" ( +set oslang=%OSLanguage:~0,2% +IF "%oslang%"=="en" ( set lang=en goto checkwget) +IF "%oslang%"=="fr" ( +set lang=fr +goto checkwget) echo.Select Your Language call Button 1 2 F2 "ENGLISH" 14 2 F2 "Francais" 28 2 F2 "Portugues" 43 2 F2 "Deutsch" X _Var_Box _Var_Hover GetInput /M %_Var_Box% /H %_Var_Hover%