Capitalism Lab game text translation by users

This forum is for those of you who are interested in localizing the game text in Capitalism Lab into your native language on your own
User avatar
David
Community and Marketing Manager at Enlight
Posts: 9349
Joined: Sat Jul 03, 2010 1:42 pm
Has thanked: 15 times
Been thanked: 46 times

Capitalism Lab game text translation by users

Post 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.
User avatar
clark17
Translation Contributor
Translation Contributor
Posts: 94
Joined: Fri Feb 01, 2013 11:09 pm

Re: Capitalism Lab game text translation by users

Post by clark17 »

Ok, but where are the original text?
[MOD] Real World for Capitalism Lab
Really sorry for my english like a Spanish cow ;-)
User avatar
David
Community and Marketing Manager at Enlight
Posts: 9349
Joined: Sat Jul 03, 2010 1:42 pm
Has thanked: 15 times
Been thanked: 46 times

Re: Capitalism Lab game text translation by users

Post 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.
User avatar
clark17
Translation Contributor
Translation Contributor
Posts: 94
Joined: Fri Feb 01, 2013 11:09 pm

Re: Capitalism Lab game text translation by users

Post by clark17 »

Can you post an example of translate.txt?
[MOD] Real World for Capitalism Lab
Really sorry for my english like a Spanish cow ;-)
User avatar
David
Community and Marketing Manager at Enlight
Posts: 9349
Joined: Sat Jul 03, 2010 1:42 pm
Has thanked: 15 times
Been thanked: 46 times

Re: Capitalism Lab game text translation by users

Post 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|
~
User avatar
clark17
Translation Contributor
Translation Contributor
Posts: 94
Joined: Fri Feb 01, 2013 11:09 pm

Re: Capitalism Lab game text translation by users

Post 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...
[MOD] Real World for Capitalism Lab
Really sorry for my english like a Spanish cow ;-)
User avatar
David
Community and Marketing Manager at Enlight
Posts: 9349
Joined: Sat Jul 03, 2010 1:42 pm
Has thanked: 15 times
Been thanked: 46 times

Re: Capitalism Lab game text translation by users

Post by David »

This functionality will be available in the next patch.
User avatar
David
Community and Marketing Manager at Enlight
Posts: 9349
Joined: Sat Jul 03, 2010 1:42 pm
Has thanked: 15 times
Been thanked: 46 times

Re: Capitalism Lab game text translation by users

Post 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.
User avatar
clark17
Translation Contributor
Translation Contributor
Posts: 94
Joined: Fri Feb 01, 2013 11:09 pm

Re: Capitalism Lab game text translation by users

Post by clark17 »

Ok, i've tested this feature and it work! Great!
[MOD] Real World for Capitalism Lab
Really sorry for my english like a Spanish cow ;-)
User avatar
clark17
Translation Contributor
Translation Contributor
Posts: 94
Joined: Fri Feb 01, 2013 11:09 pm

Re: Capitalism Lab game text translation by users

Post 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
[MOD] Real World for Capitalism Lab
Really sorry for my english like a Spanish cow ;-)
Post Reply