Get Language now works.

This commit is contained in:
Glen De Cauwsemaecker 2014-03-24 00:29:29 +01:00
parent 4c62dfaff1
commit dd47b82055
4 changed files with 10 additions and 6 deletions
scripts/windows/coco-dev-setup/batch

View file

@ -21,17 +21,16 @@ goto:get_localisation_id
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 !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 get_text !language_id! "global-native"
call print_dashed_seperator
echo You have choosen '%native%' as your language.
call get_text %language_id% "global-intro"
echo You have choosen !native! as your language.
call get_text !language_id! "global-intro"
echo !intro!
call print_seperator
)

View file

@ -1,6 +1,6 @@
[global]
native=English
intro=From now on we'll send you feedback in English!
intro=From now on we'll send our feedback in English!
bye=Bye Bye!
[install]
begin=Installation has begun, this can take a while... Please stay tuned...

View file

@ -1,5 +1,6 @@
[global]
native=Nederlands
intro=Vanaf nu geven we onze feedback in het Nederlands!
bye=Bye Bye!
[install]
begin=De installatie is begonnen, dit kan een tijdje duren. Geduld alsjeblieft...

View file

@ -14,6 +14,10 @@ echo Welcome to the automated Installation of the CodeCombat Dev. Environment!
echo v%version% authored by %author% and published by %copyright%.
call print_seperator
echo Before we start the installation, here are some tips:
call print_tips
call print_seperator
call sign_license
call get_language