Page 1 of 1

French translation errors with generic translations

Posted: Wed Apr 04, 2018 1:15 pm
by Ronkhar
Hello,
I would like to know if there is a way to overwrite automatic/generic translations, when they are incorrect.

The main problem I saw is related to the 3 barrel strings:
- fill XX barrel (fill-barrel=Remplir le baril de __1__)
- empty XX barrel (empty-filled-barrel=Vider un baril de __1__)
- XX barrel (filled-barrel=Baril de __1__)

These strings are created through a concatenate function with the name of the product. In the French translation, this creates two translation errors.

1) The name of the product begins with a capital letter but it should be a lower case.
For example, "Baril de Pétrole" should be "Baril de pétrole".

2) All product names are preceded by "de", but it should be either "de" or "d'" depending on the first letter of the product name.

The grammatical rule is
- "d'" before voyels or a silent h
- "de" before the other letters
(https://en.wiktionary.org/wiki/d'#French)

For example, Sulfuric acid ("acide sulfurique") should use Baril d'
while heavy oil ("pétrole lourd") should use Baril de

Any idea how to correct this?
Can we use different strings for each type of barrel? Or does it require a change inside the game code?

Thanks in advance
Ronkhar

Re: French translation errors with generic translations

Posted: Fri Apr 06, 2018 4:18 pm
by Sephrat
Sadly there is no easy way to do it. Every language has its own grammar rules, the devs can't handle every specificity in their messages.
I think the best way to do it would be to add quote marks around the 'variables' so that it looks less ugly.

Code: Select all

Remplir le baril de "__1__"
would look ingame like:
Remplir le baril de "Acide sulfurique"

Re: French translation errors with generic translations

Posted: Fri Apr 06, 2018 4:33 pm
by steinio
Remplir le baril. (Acide sulfurique)

But i'm not french so i have no competence on this.