<= Trouble Shooting | Level Building =>

### Localisation

#### Introduction

Blob and Conquer supports a fairly primitive localisation system. If you wish to translate B&C in to another language then the information below will be useful to you. Blob and Conquer usually starts up using the default system language and will fall back to English for this parts of the game which haven't been translated.

#### Files and Format

Localisation files live in the data/locale directory of the source and then under a two letter named directory that contains the locale data. For example,

    data/locale/
    	en/
    	fr/
    	es/
    	it/

Blob And Conquer does not inspect the directories under the locale directory and instead relies on a file called index which contains the supported language information. It is a simple file that contains key-value pairs for the language and the symbol. Adding a new supported language is simply a case of adding in the language key and the language name.

The formatting of the locale files is as below (taken from the battle file)

HINT_SAVE | Press ACTION to Save Game
HINT_INFO | Press ACTION to get Information
INFO_PICKED_UP | Picked up %s
ITEM_REQUIRED | %s required

The first column represents the key for the localisation string. The second column represents the translated string.

Translating is simply a case of adding in the appropriate key-value pairs for the language you desire. So, for example, if you wanted to add in some French values you would add in a line as such,

HINT_SAVE | <Translated French String>

When running the game in French the game will load up the string for HINT_SAVE and display this instead of the English string.

NOTE: All lines must end with a semi colon! Also multi line strings are not supported (ie - all your text for that key-value pair must be on the same line). The game will give you little warning of issues with this. Again, (as it appears in the file)

    HINT_USE_SWITCH Press ACTION to activate switch;

Note the semi colon at the end of the line.

<= Trouble Shooting | Level Building =>