mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-26 14:03:28 -04:00
Get Language now works.
This commit is contained in:
parent
4c62dfaff1
commit
dd47b82055
4 changed files with 10 additions and 6 deletions
scripts/windows/coco-dev-setup/batch
|
@ -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
|
||||
)
|
|
@ -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...
|
||||
|
|
|
@ -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...
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue