Moved language selection to the top and starting localized the hardcoded stuff.

This commit is contained in:
Glen De Cauwsemaecker 2014-04-12 16:55:59 +02:00
parent 7a866981f7
commit 34c883b7df
15 changed files with 80 additions and 15 deletions

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="ISO-8859-1" ?>
<variables>
<version>3.4</version>
<version>3.5</version>
<author>GlenDC</author>
<copyright>CodeCombat.com © 2013-2014</copyright>
<github_url>https://github.com/codecombat/codecombat.git</github_url>

View file

@ -0,0 +1,8 @@
1) Antwoord voorzichtig en juist, indien er een vraag gesteld wordt.
2) Deze installatie is nog steeds in beta en kan bugs bevatten.
3) Rapporteer bugs op 'https://github.com/codecombat/codecombat/issues'
4) Heb je vragen of suggesties? Praat met ons op HipChat via CodeCombat.com
Je kan een Engelstalige stappengids
voor deze installatie vinden op onze wiki:
github.com/codecombat/codecombat/wiki/Setup-on-Windows:-a-step-by-step-guide

View file

@ -3,8 +3,12 @@
<global>
<native>Deutsch</native>
<description>German</description>
<intro>Ab jetzt senden wir unser Feedback in Englisch!</intro>
<tips>Before we start the installation, here are some tips:</tips>
</global>
<language>
<choosen>You have choosen Deutsch as your language.</choosen>
<feedback>Ab jetzt senden wir unser Feedback in Deutsch.</feedback>
</language>
<install>
<system>
<bit>-Bit System erkannt.</bit>
@ -52,6 +56,13 @@
<bashq>Bitte gebe den kompletten Pfad zur Git Bash ein, oder drücke Enter, um den Standardpfad zu verwenden</bashq>
<ssh>Willst du das Repository via SSH auschecken?</ssh>
</process>
<config>
<intro>You should have forked CodeCombat to your own GitHub Account by now...</intro>
<info>Please enter your github information, to configure your local repository.</info>
<username>Username: </username>
<password>Password: </password>
<process>Thank you... Configuring your local repistory right now...</process>
</config>
</github>
<switch>
<install>The installation of your local environment was succesfull!</install>

View file

@ -3,8 +3,12 @@
<global>
<native>English</native>
<description>English</description>
<intro>From now on we'll send our feedback in English!</intro>
<tips>Before we start the installation, here are some tips:</tips>
</global>
<language>
<choosen>You have choosen English as your language.</choosen>
<feedback>From now on we'll send our feedback in English.</feedback>
</language>
<install>
<system>
<bit>-bit computer detected.</bit>

View file

@ -3,8 +3,12 @@
<global>
<native>Nederlands</native>
<description>Dutch</description>
<intro>Vanaf nu geven we onze feedback in het Nederlands!</intro>
<tips>Voor we verder gaan met de installatie hier volgen enkele tips:</tips>
</global>
<language>
<choosen>Je hebt Nederlands gekozen als jouw taal naar keuze.</choosen>
<feedback>Vanaf nu geven we onze feedback in het Nederlands.</feedback>
</language>
<install>
<system>
<bit>-bit computer gedetecteerd.</bit>

View file

@ -3,8 +3,12 @@
<global>
<native>ðóññêèé</native>
<description>Russian</description>
<intro>C данного момента мы будем общаться на русском!</intro>
<tips>Before we start the installation, here are some tips:</tips>
</global>
<language>
<choosen>You have choosen ðóññêèé as your language.</choosen>
<feedback>C äàííîãî ìîìåíòà ìû áóäåì îáùàòüñÿ íà ðóññêîì.</feedback>
</language>
<install>
<system>
<bit>-áèòíûé êîìïüþòåð îáíàðóæåí.</bit>

View file

@ -3,8 +3,12 @@
<global>
<native>简体中文</native>
<description>Traditional Chinese</description>
<intro>目前我们只能用英文给你反馈!</intro>
<tips>Before we start the installation, here are some tips:</tips>
</global>
<language>
<choosen>You have choosen 简体中文 as your language.</choosen>
<feedback>目前我们只能用英文给你反馈</feedback>
</language>
<install>
<system>
<bit>-位系统.</bit>
@ -52,6 +56,13 @@
<bashq>请输入 git bash 的安装全路径, 如果你安装的是默认路径, 那么直接输入回车即可</bashq>
<ssh>你是否想使用 ssh 来检出(checkout)库(repository)?</ssh>
</process>
<config>
<intro>You should have forked CodeCombat to your own GitHub Account by now...</intro>
<info>Please enter your github information, to configure your local repository.</info>
<username>Username: </username>
<password>Password: </password>
<process>Thank you... Configuring your local repistory right now...</process>
</config>
</github>
<switch>
<install>The installation of your local environment was succesfull!</install>

View file

@ -3,8 +3,12 @@
<global>
<native>繁体中文</native>
<description>Simplified Chinese</description>
<intro>From now on we'll send our feedback in English!</intro>
<tips>Before we start the installation, here are some tips:</tips>
</global>
<language>
<choosen>You have choosen 繁体中文 as your language.</choosen>
<feedback>From now on we'll send our feedback in 繁体中文.</feedback>
</language>
<install>
<system>
<bit>-bit computer detected.</bit>
@ -52,6 +56,13 @@
<bashq>Please enter the full path where git bash is installed or just press enter if it's in the default location</bashq>
<ssh>Do you want to checkout the repository via ssh?</ssh>
</process>
<config>
<intro>You should have forked CodeCombat to your own GitHub Account by now...</intro>
<info>Please enter your github information, to configure your local repository.</info>
<username>Username: </username>
<password>Password: </password>
<process>Thank you... Configuring your local repistory right now...</process>
</config>
</github>
<switch>
<install>The installation of your local environment was succesfull!</install>

View file

@ -27,10 +27,13 @@ goto:get_localisation_id
goto:get_localisation_id
) else (
set language_id=!languages[%local_id%]!
call get_text !language_id! global_native global native
call print_dashed_seperator
echo You have choosen !global_native! as your language.
call get_text !language_id! global_intro global intro
echo !global_intro!
call get_local_text language_choosen language choosen
echo !language_choosen!
call get_local_text language_feedback language feedback
echo !language_feedback!
call print_seperator
)

View file

@ -0,0 +1,8 @@
set "LFTP=%1-%language_id%.coco"
if not exist "%LFTP%" (
echo printing %1.coco...
call print_file %1.coco
) else (
echo printing %LFTP%...
call print_file %LFTP%
)

View file

@ -1 +1 @@
print_file ..\\config\\tips.coco
call print_localized_file ..\\config\\localized\\tips

View file

@ -13,14 +13,15 @@ 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 get_language
call get_local_text global_tips global tips
echo !global_tips!
call print_tips
call print_seperator
call sign_license
call get_language
call download_and_install_applications
start cmd /c "setup_p2.bat"