Community Forum

Translations <l10n></l10n> modDesc.xml

Forum Overview >> Editor

CategoryEditor
Created02.12.2018 22:29


Ander Ss (anderrios) 02.12.2018 22:29
Hello, I can not translate the name of the points of sale, I have tried in the modDesc.xml of the map and in the .xml of the point of sale.
In the game find the file l10n_ [LNG] .xml
I tried to create it but I do not know where they are referenced.
A greeting.

Smith Jhon (Unknown) 03.12.2018 18:09
same problem here, have you solved it?

Ander Ss (anderrios) 03.12.2018 22:03
The problem is when trying to translate this string:
<sellingStation stationName="$l10n_name"

since when you add it to buy in the store itself it translates;
<placeable>
<storeData>
<name>$l10n_name</name> <-this translates works

William Rowe (Bonger76) 04.12.2018 18:16
This is the way I got it to show on the PDA,

<placeable>
<storeData>
<name>l10n_Marys</name>
<image>placeables/sellingStations/store_sellingStationGeneric.png</image>
<price>1</price>
<canBeSold>false</canBeSold>
<showInStore>false</showInStore>
<lifetime>1000</lifetime>
<rotation>0</rotation>
<brand>LIZARD</brand>
<species>placeable</species>
<category>placeableMisc</category>
<vertexBufferMemoryUsage>86776</vertexBufferMemoryUsage>
<indexBufferMemoryUsage>9624</indexBufferMemoryUsage>
<textureMemoryUsage>128</textureMemoryUsage>
<instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
<instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
</storeData>

<placeableType>sellingStation</placeableType>
<filename>maps/placeables/sellingStations/sellingStationGeneric.i3d</filename>
<placement testSizeX="15" testSizeZ="8" sizeX="4" sizeZ="3" useRandomYRotation="false" useManualYRotation="true" />

<sellingStation stationName="Marys" appearsOnPDA="true" storageRadius="0" litersForFullPriceDrop="100000" fullPriceRecoverHours="48">
<unloadTrigger exactFillRootNode="0|0|0|0|0" baleTriggerNode="0|0|0|0|1" />
<fillType name="wheat" priceScale="1" supportsGreatDemand="true" disablePriceDrop="false" />
<fillType name="barley" priceScale="1" supportsGreatDemand="true" disablePriceDrop="false" />
<fillType name="canola" priceScale="1" supportsGreatDemand="true" disablePriceDrop="false" />
<fillType name="sunflower" priceScale="1" supportsGreatDemand="true" disablePriceDrop="false" />
<fillType name="soybean" priceScale="1" supportsGreatDemand="true" disablePriceDrop="false" />
<fillType name="maize" priceScale="1" supportsGreatDemand="true" disablePriceDrop="false" />
<fillType name="potato" priceScale="1" supportsGreatDemand="true" disablePriceDrop="false" />
<fillType name="sugarBeet" priceScale="1" supportsGreatDemand="true" disablePriceDrop="false" />
<fillType name="sugarCane" priceScale="1" supportsGreatDemand="true" disablePriceDrop="false" />
<fillType name="oat" priceScale="1" supportsGreatDemand="true" disablePriceDrop="false" />
</sellingStation>
</placeable>

--------------------------------------------
<name>l10n_Marys</name>

<sellingStation stationName="Marys" appearsOnPDA="true" storageRadius="0" litersForFullPriceDrop="100000" fullPriceRecoverHours="48">

the only problem I ran into was with my train silos tried to give them a number, trainSilo01,trainSilo02, train Silo03,allshowed on PDA as trainSilo01
so I took out the numbers and then they all loaded as just trainSilo


Ander Ss (anderrios) 04.12.2018 20:58
But this way you do not translate the point of sale, it is simply called the same in all languages. It works if they are proper names, but my point of sale is called "point of sale" and I have to translate it into several languages ....

<sellingStation stationName="$l10n_puntoventa"

Bilbo Beutlin (BBeutlin) 04.12.2018 21:11
If you have in the object.xml
<sellingStation stationName="name"
use in modDesc.xml in chapter <l10n>
<text name="station_name"> <en>..</en> .. </text>
If the text contains language specific characters, enclose it in <![CDATA[..]]>

At least in FS17 it worked in this way. I'd assume in FS19 also.

Ander Ss (anderrios) 04.12.2018 23:02
I've tried it and if in stationName = you do not put $ l10n_ it shows the string directly. see the image
1.- https://image.giants-software.com/index.php?hash=PS8VWckS
2.- https://image.giants-software.com/index.php?hash=WVxwSTKL
3.- https://image.giants-software.com/index.php?hash=E8VQQrRu
4.- https://image.giants-software.com/index.php?hash=RQLuNYWc
5.- https://image.giants-software.com/index.php?hash=eCRqpXHd

Bilbo Beutlin (BBeutlin) 04.12.2018 23:21
Might have changed vs FS17.
The basic in <l10n> text is: className_label - like eg. "shopItem_abc" or "inputBinding_xyz".
Try with a leading '$' : stationName="$abc" or "$l10n_abc" or "$l10n_station_abc"

Ander Ss (anderrios) 08.12.2018 11:52
I try again all the combinations already with the beta version of patch 1.2
IT IS NOT SOLVING THIS PROBLEM

4.- https://image.giants-software.com/index.php?hash=RQLuNYWc
5.- https://image.giants-software.com/index.php?hash=eCRqpXHd


Note: Log in to post. Create a new account here.