mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-29 02:25:37 -05:00
36 lines
No EOL
1.2 KiB
Batchfile
Executable file
36 lines
No EOL
1.2 KiB
Batchfile
Executable file
echo Some feedback is sent in your system's language
|
|
echo but most feedback is sent and localised by us.
|
|
echo Here is a list of languages:
|
|
call print_dashed_seperator
|
|
|
|
call get_array ..\\localisation\\languages.coco languages language_count
|
|
for /l %%i in (1,1,%language_count%) do (
|
|
call get_text !languages[%%i]! "global-native"
|
|
echo [%%i] !global_native!
|
|
)
|
|
|
|
goto:get_localisation_id
|
|
|
|
:get_localisation_id
|
|
call print_dashed_seperator
|
|
set /p "localisation_id=Enter the language ID of your preference and press <ENTER>: "
|
|
goto:validation_check
|
|
|
|
:validation_check
|
|
set "localisation_is_false="
|
|
set /a local_id = %localisation_id%
|
|
if !local_id! EQU 0 set localisation_is_false=1
|
|
if !local_id! LSS 1 set localisation_is_false=1
|
|
if !local_id! GTR !language_count! set localisation_is_false=1
|
|
if defined localisation_is_false (
|
|
echo The id you entered is invalid, please try again...
|
|
goto:get_localisation_id
|
|
) else (
|
|
set language_id=!languages[%local_id%]!
|
|
call get_text !language_id! "global-native"
|
|
call print_dashed_seperator
|
|
echo You have choosen !global_native! as your language.
|
|
call get_text !language_id! "global-intro"
|
|
echo !global_intro!
|
|
call print_seperator
|
|
) |