Jump to content
Game-Labs Forum
admin

Custom localization file - discussions

Recommended Posts

Captains. 

Please discuss the usage and technical issues with the custom file, that allows you to replace the language in the game. You can also ask questions if you do not understand something in the custom file and got stuck. 

  • To use the custom file for your version of the translation:
    • Open folder Languages (currently Langs)
    • Copy the file named  _English.csv
    • Paste and rename it to another name (make sure new file name doesn't start with underscore symbol "_")
    • Translate or edit that file to the language you want 
    • Save it in the standard CSV format if you open it in the Excel (file uses UTF-8)
    • Name of that file will be available in the general section of options in the drop down menu
    • File will be working properly after game has been restarted.

fu1d2Cy.png

  • Like 2

Share this post


Link to post
Share on other sites
4 minutes ago, Released Privateer said:

Rookie question here, which parts are we supposed to translate and which should remain untouched? Translate literally everything, or the common categories like:  "Common/ButtonExit" should be left as they are?

I think that, like a mod, you 'modder/translator' do what you want. There will certainly be several files of the same langage.

Edited by LeBoiteux

Share this post


Link to post
Share on other sites
1 minute ago, LeBoiteux said:

I think that, like a mod, you do what you want. There will certainly be several files of the same langage.

I mean if there are these parts in the file that are like the file generic names and they shouldn't be renamed/changed. 

  • Like 1

Share this post


Link to post
Share on other sites
2 minutes ago, Released Privateer said:

I mean if there are these parts in the file that are like the file generic names and they shouldn't be renamed/changed. 

causing bugs if changed ? I got it.

Share this post


Link to post
Share on other sites

 

1 hour ago, Released Privateer said:

Rookie question here, which parts are we supposed to translate and which should remain untouched? Translate literally everything, or the common categories like:  "Common/ButtonExit" should be left as they are?

 So far I have translated everything besides the loading screen quotes. I'm not sure if I will, because they might not be as funny as before or they might stop making sense.

Share this post


Link to post
Share on other sites
1 hour ago, Released Privateer said:

Rookie question here, which parts are we supposed to translate and which should remain untouched? Translate literally everything, or the common categories like:  "Common/ButtonExit" should be left as they are?

All what is exported into the _English.csv can be translated (some strings are blank though). All strings that won't be translated (like ship names, port names, etc) aren't exported to that file.

  • Like 1

Share this post


Link to post
Share on other sites
1 minute ago, slik said:

All what is exported into the _English.csv can be translated (some strings are blank though). All strings that won't be translated (like ship names, port names, etc) aren't exported to that file.

Hmm, although I am using Notepad C++ instead of Excell (just like @Hethwill the Red Duke) as it makes some of the things easier, hence where the confusion comes from I guess.

Share this post


Link to post
Share on other sites

Don't like that language file contain hard coded numeric values.

If devs change them in game then all who made translation must change their files..

for example

"Port/Taxes/TradingOutpost/Message2","Are you sure want to enable Trading Outpost for 10%?. This will increase daily cost by 10%."
"Port/Taxes/TradingOutpost/Message3","Are you sure want to enable Trading Outpost for 20%?. This will increase daily cost by 20%."
"Tutorial/BoardingCombat/RepairSail/Tip","Repair fixes 25% of sails and lasts for 2 minutes depending on crew on repairs. You can only repair Hull or Sails at the same time once every 12 mins"
"Tutorial/BoardingCombat/SailToObjective/Tip","Repair fixes 25% of sails and lasts for 2 minutes depending on crew on repairs. You can only repair Hull or Sails at the same time once every 12 mins.
"Tutorial/PreparingForBoarding/Tip","Boarding is possible if both ships sail below 3.5 knots and are close to each other.
"Tutorial/ReducingCrew/DestroyCrew/Tip","Get very close to the target, aim at the areas where crew is (guns on the deck).

Grape is only effective if you shoot though the damaged side (below 30%).

Grape ricochets more if you are shooting at angle to hull"
"Port/Missions/Hostility/HostilityReachedMessage","Hostility for {0} has reached 25%"

And description of modules and perks

"Module/Description/646","-5% dispersion on carronades"
"Module/Description/628","mortar reloads 2x faster – accuracy is 25% better – shoots 2 balls from 1 mortar"
Edited by qw569
  • Like 1

Share this post


Link to post
Share on other sites
4 minutes ago, qw569 said:

Don't like that language file contain hard coded numeric values.

Yes, there are some, will be fixed later.

Share this post


Link to post
Share on other sites

@admin I am testing that and after minor changes, changing game settings language and re-launching it worked! Then I did more changes to the localization file and now I receive no ping/server status. If I disable language file with "_", servers work normally again. Any idea? I might have added the stuff I shouldn't be touching (which I was asking earlier about). Now I am not sure how to locate the issue. I did not remove, nor add any new lines. Just simply change the text in the brackets.

Edited by Released Privateer

Share this post


Link to post
Share on other sites
11 minutes ago, Released Privateer said:

@admin I am testing that and after minor changes, changing game settings language and re-launching it worked! Then I did more changes to the localization file and now I receive no ping/server status. If I disable language file with "_", servers work normally again. Any idea? I might have added the stuff I shouldn't be touching (which I was asking earlier about). Now I am not sure how to locate the issue. I did not remove, nor add any new lines. Just simply change the text in the brackets.

Perhaps some kind of csv linter would help, like https://csvlint.io/

But I recommend you to create a google spreadsheet document for translating. I will post instructions in a few minutes.

Share this post


Link to post
Share on other sites

1) Create a new spreadsheet document, then click on "Import" option

original.png

 

2) In the window that appeared select "Upload" tab, and upload the _English.csv file

3) In the Import file window select the next radio buttons

original.png

 

4) Click "Import data" and wait while imported. You will see the data appeared in your document.

5) Do edit/translate strings you want to change.

6) When you finished select File -> Download As -> .csv to download your translation file

original.png

 

7) Move the downloaded file into the game's Languages folder

 

You should not have any problems with csv formatting now, google formats the csv file automatically for you.

 

@Released Privateer

  • Like 4

Share this post


Link to post
Share on other sites

@Released Privateer

To revert the _English.csv file to original (and correct) state - try to validate steam cache:

1) Right click on the game in steam client, select Properties

2) Select LOCAL FILES tab

3) Click VERIFY INTEGRITY OF GAME FILES

original.png

Share this post


Link to post
Share on other sites

Reviewing, translating and personalizing the CSV file.

During CSV upload in excel and translation, I have the following questions:

1. Some lines appear that characters. It is normal?

Quote

Examples: 

Yes, I’m… I’m a bit nervous myself…    Sí, estoy ... Estoy un poco nerviosa yo misma ...
Placing ships alongside that of the enemy…    Situando barcos junto a la del enemigo ...
He’s a good swimmer.    Es un buen nadador.
You’re gonna need a bigger boat…    Vas a necesitar un barco más grande ...

 

2. In Spanish, special characters such as Ñ and tildes are used. Do these special characters require special coding ?. Do you have a conversion table?

Quote

Examples: 

You attacked in that thing? You are braver than we thought..    ¿Atacaste en esa cosa? Eres más valiente de lo que pensábamos.
Good Captain. Good. Kill him. Kill him now…    Buen capitán. Bueno. Mátalo. Mátalo ahora ...
He has been waiting for you Captain..    Él ha estado esperando Capitán ..
It was the ship of dreams to everyone else…    Fue el barco de los sueños para todos los demás ...

Some characters:

Ñ,   Vocals (Upper and low): Á, á, É, é, Í,í,Ó,ó,Ú,ú, Ç, ç, ï, ü

 

3. There are longer words or phrases in Spanish than in English. Is the text automatically resized in the element (button, label ...)

 

4. Can the variables be changed or add extra coding in the text?

Share this post


Link to post
Share on other sites
5 hours ago, Released Privateer said:

First noticed that:

image.png.76ca955a23f987919f403fa9d2143018.png

and I did not change anything with speed

Uhh...

”Houston, we have a problem “....

This is not good...seems that is related to the.csv file. I hope to not touch that string.

I almost quitting the idea to customize my language file. It’s good enough the way it is ...

Share this post


Link to post
Share on other sites

@Released Privateer 

I'll check

 

@FRAN

1) csv uses utf-8 encoding, it seems your Excel installation opened the file with some other character encoding

2) all characters work fine with utf-8

3) some of them are automatically resized, some of them lowering font size, some of them just have static width (we will try to fix the last ones); but better to think "no" and try to use phrases with the same or less length

4) changed how? please explain what do you mean, thanks

Share this post


Link to post
Share on other sites
10 hours ago, slik said:

@Released Privateer 

I'll check

 

@FRAN

1) csv uses utf-8 encoding, it seems your Excel installation opened the file with some other character encoding

2) all characters work fine with utf-8

3) some of them are automatically resized, some of them lowering font size, some of them just have static width (we will try to fix the last ones); but better to think "no" and try to use phrases with the same or less length

4) changed how? please explain what do you mean, thanks

Indeed. In Google sheets it is very simple and easy. No issues till now.

Edited by La bouche

Share this post


Link to post
Share on other sites

Found how to fix:

{0}<size=11>Kn</size>

You should get rid of the aditional space between the {0} and the rest of the line. Aditionally, if you change the value after "=", you can change the size of the numbers...

  • Like 2

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...