Page 1 of 3

Capitalism Lab game text translation by users

Posted: Mon Jan 28, 2013 3:12 pm
by David
We are in the process of preparing a new version that will allow users to translate the game text on their own.

The new version will allow for user localization of game text in Capitalism Lab into your native language.

Here is a preview of how it works:

Steps:
1) Create a folder named “Translate” under your Capitalism Lab game folder.
2) Create a text file named “Translate.txt” and save it under the “Translate” folder.
3) Edit translate.txt with a text editor and follow the syntax described below.


Syntax of Translate.TXT

<Original Text>|
<Translated Text>|
~
<Original Text>|
<Translated Text>|
~

Note:
| - always place this character at the end of each text line
~ - place this character between text blocks


The text file must be encoded in UTF-8 without BOM format.

-------------------------------------------------------------------------------------------

Improved support for user translated text

You may now use % to represent variables in user translated text.

Example:
The stock price rose from % to %|
Le prix des actions a augmenté de % à %|

“The stock price rose from $10.00 to $11.00. “ will be translated into “Le prix des actions a augmenté de $10.00 à $11.00”

In other words, you may use % to represent text that need not to be translated, such as company names, person names, product names, prices, and numbers.

Re: Capitalism Lab game text translation by users

Posted: Fri Feb 01, 2013 11:17 pm
by clark17
Ok, but where are the original text?

Re: Capitalism Lab game text translation by users

Posted: Thu Feb 07, 2013 4:55 am
by David
Actually the current translation method basically lets the game run through a translation routine whenever any text is to be displayed. It is a simple implementation and has its downside, including that the user will have to find the original text in the game and enter them into the translation file.

If you have read some of our posts earlier, you may have known that localization was originally not planned due to lack of resources. In the past few weeks, we have received messages from users offering to help, so we came up with this implementation which could be coded quickly by our programmers.

I would say that it is an experimental effort and new issues may pop up as we proceed with it.

So I would suggest that translations to be done at a small scale in this stage and see how it goes.

Re: Capitalism Lab game text translation by users

Posted: Fri Feb 08, 2013 12:16 am
by clark17
Can you post an example of translate.txt?

Re: Capitalism Lab game text translation by users

Posted: Fri Feb 08, 2013 8:03 am
by David
Here is an example with random translated text:

Your Start-up Capital|
My translated text for Startup Capital|
~
ENVIRONMENT|
HELLOWORLD|
~
Your start-up capital|
Help text translation--Enlight Translation|
~
Unemployment Rate|
Employment New Rate|
~

Re: Capitalism Lab game text translation by users

Posted: Fri Feb 08, 2013 8:24 pm
by clark17
Ok, i've tried this Translate.txt in \Users\my_name\AppData\Local\Capitalism Lab\Translate:

Code: Select all

Owned by Government|
Propriétée du gouvernement|
~
There is no effect in my game...

Re: Capitalism Lab game text translation by users

Posted: Sat Feb 09, 2013 4:58 am
by David
This functionality will be available in the next patch.

Re: Capitalism Lab game text translation by users

Posted: Sat Feb 16, 2013 5:17 am
by David
It is supported in the latest version 2.2.00 which you may download from: http://www.capitalismlab.com/forum/view ... =10&t=1361

You may give it a try and see if it works.

Re: Capitalism Lab game text translation by users

Posted: Sat Feb 16, 2013 4:31 pm
by clark17
Ok, i've tested this feature and it work! Great!

Re: Capitalism Lab game text translation by users

Posted: Tue Mar 05, 2013 5:07 pm
by clark17
Hello david, when I use the translate.txt with accented character they do not display correctly in the game:

Example:
Corporation Name|
Nom Sociétée|

Image