Capitalism Lab game text translation by users
- David
- Community and Marketing Manager at Enlight
- Posts: 9375
- Joined: Sat Jul 03, 2010 1:42 pm
- Has thanked: 19 times
- Been thanked: 50 times
Capitalism Lab game text translation by users
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.
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.
- clark17
- Translation Contributor
- Posts: 94
- Joined: Fri Feb 01, 2013 11:09 pm
Re: Capitalism Lab game text translation by users
Ok, but where are the original text?
[MOD] Real World for Capitalism Lab
Really sorry for my english like a Spanish cow
Really sorry for my english like a Spanish cow
- David
- Community and Marketing Manager at Enlight
- Posts: 9375
- Joined: Sat Jul 03, 2010 1:42 pm
- Has thanked: 19 times
- Been thanked: 50 times
Re: Capitalism Lab game text translation by users
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.
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.
- clark17
- Translation Contributor
- Posts: 94
- Joined: Fri Feb 01, 2013 11:09 pm
Re: Capitalism Lab game text translation by users
Can you post an example of translate.txt?
[MOD] Real World for Capitalism Lab
Really sorry for my english like a Spanish cow
Really sorry for my english like a Spanish cow
- David
- Community and Marketing Manager at Enlight
- Posts: 9375
- Joined: Sat Jul 03, 2010 1:42 pm
- Has thanked: 19 times
- Been thanked: 50 times
Re: Capitalism Lab game text translation by users
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|
~
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|
~
- clark17
- Translation Contributor
- Posts: 94
- Joined: Fri Feb 01, 2013 11:09 pm
Re: Capitalism Lab game text translation by users
Ok, i've tried this Translate.txt in \Users\my_name\AppData\Local\Capitalism Lab\Translate:
There is no effect in my game...
Code: Select all
Owned by Government|
Propriétée du gouvernement|
~
[MOD] Real World for Capitalism Lab
Really sorry for my english like a Spanish cow
Really sorry for my english like a Spanish cow
- David
- Community and Marketing Manager at Enlight
- Posts: 9375
- Joined: Sat Jul 03, 2010 1:42 pm
- Has thanked: 19 times
- Been thanked: 50 times
Re: Capitalism Lab game text translation by users
This functionality will be available in the next patch.
- David
- Community and Marketing Manager at Enlight
- Posts: 9375
- Joined: Sat Jul 03, 2010 1:42 pm
- Has thanked: 19 times
- Been thanked: 50 times
Re: Capitalism Lab game text translation by users
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.
You may give it a try and see if it works.
- clark17
- Translation Contributor
- Posts: 94
- Joined: Fri Feb 01, 2013 11:09 pm
Re: Capitalism Lab game text translation by users
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
Really sorry for my english like a Spanish cow
- clark17
- Translation Contributor
- Posts: 94
- Joined: Fri Feb 01, 2013 11:09 pm
Re: Capitalism Lab game text translation by users
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|
Example:
Corporation Name|
Nom Sociétée|
[MOD] Real World for Capitalism Lab
Really sorry for my english like a Spanish cow
Really sorry for my english like a Spanish cow