| 1 | <HTML> |
| 2 | <HEAD> |
| 3 | <LINK REL=STYLESHEET type="text/css" HREF="stylesheet.css"> |
| 4 | </HEAD> |
| 5 | <BODY BACKGROUND="images/briefing.png"> |
| 6 | |
| 7 | <TABLE STYLE="width: 100%"> |
| 8 | <TR> |
| 9 | <TD STYLE="width: 50%; text-align: LEFT;"><A HREF="trouble.html"><= Trouble Shooting</A></TD> |
| 10 | <TD STYLE="width: 50%; text-align: RIGHT;"><A HREF="levelBuilding.html">Level Building =></A></TD> |
| 11 | </TR> |
| 12 | </TABLE> |
| 13 | |
| 14 | <P><DIV CLASS="line"></DIV></P> |
| 15 | |
| 16 | <CENTER><IMG SRC="../images/title.png"></CENTER> |
| 17 | |
| 18 | <H3>Localisation</H3> |
| 19 | |
| 20 | <H4>Introduction</H4> |
| 21 | |
| 22 | <P>Blob and Conquer supports a fairly primitive localisation system. If you wish to translate B&C in to |
| 23 | another language then the information below will be useful to you. Blob and Conquer usually starts up using |
| 24 | the default system language and will fall back to English for this parts of the game which haven't been |
| 25 | translated.</P> |
| 26 | |
| 27 | <H4>Files and Format</H4> |
| 28 | |
| 29 | <P>Localisation files live in the data/locale directory of the source and then under a two letter |
| 30 | named directory that contains the locale data. For example,</P> |
| 31 | |
| 32 | <PRE> |
| 33 | data/locale/ |
| 34 | en/ |
| 35 | fr/ |
| 36 | es/ |
| 37 | it/ |
| 38 | </PRE> |
| 39 | |
| 40 | <P>Blob And Conquer does not inspect the directories under the locale directory and instead relies on |
| 41 | a file called <SPAN STYLE="font-family:monospace">index</SPAN> which contains the supported language information. |
| 42 | It is a simple file that contains key-value pairs for the language and the symbol. Adding a new supported |
| 43 | language is simply a case of adding in the language key and the language name.</P> |
| 44 | |
| 45 | <P>The formatting of the locale files is as below (taken from the <I>battle</I> file)</P> |
| 46 | |
| 47 | <TABLE STYLE="font-family:monospace" CELLSPACING="1" CELLPADDING="5" WIDTH="100%"> |
| 48 | <TR><TD WIDTH="20%">HINT_SAVE</TD><TD>Press ACTION to Save Game</TD></TR> |
| 49 | <TR><TD>HINT_INFO</TD><TD>Press ACTION to get Information</TD></TR> |
| 50 | <TR><TD>INFO_PICKED_UP</TD><TD>Picked up %s</TD></TR> |
| 51 | <TR><TD>ITEM_REQUIRED</TD><TD>%s required</TD></TR> |
| 52 | </TABLE> |
| 53 | |
| 54 | <P>The first column represents the key for the localisation string. The second column represents the translated string.</P> |
| 55 | |
| 56 | <P>Translating is simply a case of adding in the appropriate key-value pairs for the language you desire. So, for example, |
| 57 | if you wanted to add in some French values you would add in a line as such,</P> |
| 58 | |
| 59 | <TABLE STYLE="font-family:monospace" CELLSPACING="1" CELLPADDING="5" WIDTH="100%"> |
| 60 | <TR><TD WIDTH="20%">HINT_SAVE</TD><TD><Translated French String></TD></TR> |
| 61 | </TABLE> |
| 62 | |
| 63 | <P>When running the game in French the game will load up the string for HINT_SAVE and display this instead of the |
| 64 | English string.</P> |
| 65 | |
| 66 | <P><B STYLE="color:#BBBBFF">NOTE: All lines must end with a semi colon! Also multi line strings are not supported (ie - all |
| 67 | 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, |
| 68 | (as it appears in the file)</B></P> |
| 69 | |
| 70 | <PRE> |
| 71 | HINT_USE_SWITCH Press ACTION to activate switch; |
| 72 | </PRE> |
| 73 | |
| 74 | <P><B STYLE="color:#BBBBFF">Note the semi colon at the end of the line.</B></P> |
| 75 | |
| 76 | <P><DIV CLASS="line"></DIV></P> |
| 77 | |
| 78 | <TABLE STYLE="width: 100%"> |
| 79 | <TR> |
| 80 | <TD STYLE="width: 50%; text-align: LEFT;"><A HREF="trouble.html"><= Trouble Shooting</A></TD> |
| 81 | <TD STYLE="width: 50%; text-align: RIGHT;"><A HREF="levelBuilding.html">Level Building =></A></TD> |
| 82 | </TR> |
| 83 | </TABLE> |
| 84 | |
| 85 | </BODY> |
| 86 | </HTML> |