FS19 - l10n translation...

Your forum for all discussions around Modding.
User avatar
the.geremy
Posts: 30
Joined: Tue Nov 15, 2016 2:38 pm

FS19 - l10n translation...

Post by the.geremy »

Hi,
i need help with translation. I tried to modify mod FS19_SiloStations to FS19_SiloBuyingStations, where silos has unlimited quantity and you can buy seeds, lime, fertilizer and so on, directly in silo as in shop.

Everything works fine, but the translation.

Game use already translation for Lime Station >> $l10n_shopItem_limeStation and this works fine.

My translation for other stations, is not working fine. It is working in shop, but in dialog window when you access silo directly in game, it is not working. But original "vanila" Lime Station translation is working ok everywhere.

For example:
Fertilizer station and Herbicide station, record in modDesc.xml:
(not any record for Lime Station, because already included in the game)

Code: Select all

<title>
        <en>Placable silos</en>
        <de>Platzierbare silos</de>
        <cz>Umístitelné nákupní sila</cz>
</title>
<description>
	   <en>
<![CDATA[Placable buying silos with infinite Capacity.
You have to pay for what you get.
Prices are same as in shop.]]>
	   </en>
	   <de>
<![CDATA[Platzierbare Silos mit unendlicher Kapazität.
Sie müssen für das bezahlen, was Sie erhalten.
Gleiche Preise wie im Laden.]]>
	    </de>
       	    <cz>
<![CDATA[Umístelné nákupní sila s nekonečnou kapacitou.
Musíte zaplatit za to, co dostanete.
Stejné ceny jako v obchodě.]]>
	    </cz>
</description>
<l10n>		
        <text name="shopItem_fStation"><!-- fertilize station -->
            <en>Fertilizer Station</en>
            <de>Dünger Station</de>
            <cz>Stanice s pevným hnojivem</cz>
        </text>
        <text name="shopItem_hStation"><!-- herbicide station -->
          <en>Herbicide Station</en>
          <de>Pflanzenschutz Station</de>
          <cz>Stanice s herbicidem</cz>
        </text>
	<text name="function_fStation"><!-- fertilizer station -->
		<en>This are placeable Silos with fertilizer.</en>
		<de>Dies sind Platzierbare Silo mit Dünger.</de>
        	<cz>Jedná se o umístitelné nákupní silo s pevním hnojivem.</cz>
	</text>		
	<text name="function_hStation"><!-- herbicide station -->
		<en>This are placeable Silos with herbicide.</en>
		<de>Dies sind Platzierbare Silo mit Herbizid.</de>
                <cz>Jedná se o umístitelné nákupní silo s herbicidem.</cz>
	</text>        
</l10n>
Fertilizer station xml record:

Code: Select all

      <name>  
			<en>Fertilizer Station</en>
			<de>Dünger Station</de>
            <cz>Stanice s pevným hnojivem</cz>
        </name>
        <image>store_fertilizer.png</image>
        <functions>
            <function>$l10n_function_fStation</function>
        </functions>
        ....
<buyingStation stationName="$l10n_shopItem_fStation" appearsOnPDA="false" storageRadius="50" fillSoundIdentifier="fillSound01">
        <loadTrigger triggerNode="0|1|0|0|0" fillLitersPerSecond="200" infiniteCapacity="true"/>
        <fillType name="fertilizer" priceScale="1"/>
</buyingStation>   
Herbicide station xml record:

Code: Select all

        <name>  
		  <en>Herbicide Station</en>
		  <de>Pflanzenschutz Station</de>
          <cz>Stanice s herbicidem</cz>
        </name>
        <image>store_herbicide.png</image>
        <functions>
            <function>$l10n_function_hStation</function>
        </functions>
        ...
<buyingStation stationName="$l10n_shopItem_hStation" appearsOnPDA="false" storageRadius="50" fillSoundIdentifier="fillSound01">
        <loadTrigger triggerNode="0|1|0|0|0" fillLitersPerSecond="200" infiniteCapacity="true"/>
        <fillType name="herbicide" priceScale="1"/>
</buyingStation>     
Lime station xml record:

Code: Select all

        <name>  
		  <en>Lime Station</en>
		  <de>Kalk Station</de>
          <cz>Stanice s vápnem</cz>
        </name>
        <image>store_lime.png</image>
        <functions>
            <function>$l10n_function_lStation</function>
        </functions>
        ...
    <buyingStation stationName="$l10n_shopItem_limeStation" appearsOnPDA="false" storageRadius="50" fillSoundIdentifier="fillSound01">
        <loadTrigger triggerNode="0|1|0|0|0" fillLitersPerSecond="250" infiniteCapacity="true"/>
        <fillType name="lime" priceScale="1"/>
    </buyingStation>    
Where is the error? What I am doing wrong?

Image of some screens in game for ENGLISH:
https://drive.google.com/open?id=1n7VsT ... jfDwRtgPCH
Image of some screens in game for GERMAN:
https://drive.google.com/open?id=1RO0TP ... TRaPYuY30f
Image of some screens in game for CZECH:
https://drive.google.com/open?id=1RB9rp ... zqK1bChmJd

Thanks
the.geremy
:gamer: FS22 Seasons is great! First time a was able to past winter.
jodamm
Posts: 96
Joined: Thu Mar 30, 2017 7:22 pm

Re: FS19 - l10n translation...

Post by jodamm »

Maybe the error is in the programing from Giants. It seems that it is looking for the station name only in the original l10n file not in the modDesc.xml https://gdn.giants-software.com/thread. ... eadId=6548
User avatar
the.geremy
Posts: 30
Joined: Tue Nov 15, 2016 2:38 pm

Re: FS19 - l10n translation...

Post by the.geremy »

uff :/, thanks... they should solve this in next patch...
:gamer: FS22 Seasons is great! First time a was able to past winter.
Bonger76
Posts: 60
Joined: Thu Dec 15, 2016 7:27 am

Re: FS19 - l10n translation...

Post by Bonger76 »

the.geremy wrote: Fri Dec 21, 2018 6:38 pm Hi,
i need help with translation. I tried to modify mod FS19_SiloStations to FS19_SiloBuyingStations, where silos has unlimited quantity and you can buy seeds, lime, fertilizer and so on, directly in silo as in shop.

Everything works fine, but the translation.

Game use already translation for Lime Station >> $l10n_shopItem_limeStation and this works fine.

My translation for other stations, is not working fine. It is working in shop, but in dialog window when you access silo directly in game, it is not working. But original "vanila" Lime Station translation is working ok everywhere.

For example:
Fertilizer station and Herbicide station, record in modDesc.xml:
(not any record for Lime Station, because already included in the game)

Code: Select all

<title>
        <en>Placable silos</en>
        <de>Platzierbare silos</de>
        <cz>Umístitelné nákupní sila</cz>
</title>
<description>
	   <en>
<![CDATA[Placable buying silos with infinite Capacity.
You have to pay for what you get.
Prices are same as in shop.]]>
	   </en>
	   <de>
<![CDATA[Platzierbare Silos mit unendlicher Kapazität.
Sie müssen für das bezahlen, was Sie erhalten.
Gleiche Preise wie im Laden.]]>
	    </de>
       	    <cz>
<![CDATA[Umístelné nákupní sila s nekonečnou kapacitou.
Musíte zaplatit za to, co dostanete.
Stejné ceny jako v obchodě.]]>
	    </cz>
</description>
<l10n>		
        <text name="shopItem_fStation"><!-- fertilize station -->
            <en>Fertilizer Station</en>
            <de>Dünger Station</de>
            <cz>Stanice s pevným hnojivem</cz>
        </text>
        <text name="shopItem_hStation"><!-- herbicide station -->
          <en>Herbicide Station</en>
          <de>Pflanzenschutz Station</de>
          <cz>Stanice s herbicidem</cz>
        </text>
	<text name="function_fStation"><!-- fertilizer station -->
		<en>This are placeable Silos with fertilizer.</en>
		<de>Dies sind Platzierbare Silo mit Dünger.</de>
        	<cz>Jedná se o umístitelné nákupní silo s pevním hnojivem.</cz>
	</text>		
	<text name="function_hStation"><!-- herbicide station -->
		<en>This are placeable Silos with herbicide.</en>
		<de>Dies sind Platzierbare Silo mit Herbizid.</de>
                <cz>Jedná se o umístitelné nákupní silo s herbicidem.</cz>
	</text>        
</l10n>
Fertilizer station xml record:

Code: Select all

      <name>  
			<en>Fertilizer Station</en>
			<de>Dünger Station</de>
            <cz>Stanice s pevným hnojivem</cz>
        </name>
        <image>store_fertilizer.png</image>
        <functions>
            <function>$l10n_function_fStation</function>
        </functions>
        ....
<buyingStation stationName="$l10n_shopItem_fStation" appearsOnPDA="false" storageRadius="50" fillSoundIdentifier="fillSound01">
        <loadTrigger triggerNode="0|1|0|0|0" fillLitersPerSecond="200" infiniteCapacity="true"/>
        <fillType name="fertilizer" priceScale="1"/>
</buyingStation>   
Herbicide station xml record:

Code: Select all

        <name>  
		  <en>Herbicide Station</en>
		  <de>Pflanzenschutz Station</de>
          <cz>Stanice s herbicidem</cz>
        </name>
        <image>store_herbicide.png</image>
        <functions>
            <function>$l10n_function_hStation</function>
        </functions>
        ...
<buyingStation stationName="$l10n_shopItem_hStation" appearsOnPDA="false" storageRadius="50" fillSoundIdentifier="fillSound01">
        <loadTrigger triggerNode="0|1|0|0|0" fillLitersPerSecond="200" infiniteCapacity="true"/>
        <fillType name="herbicide" priceScale="1"/>
</buyingStation>     
Lime station xml record:

Code: Select all

        <name>  
		  <en>Lime Station</en>
		  <de>Kalk Station</de>
          <cz>Stanice s vápnem</cz>
        </name>
        <image>store_lime.png</image>
        <functions>
            <function>$l10n_function_lStation</function>
        </functions>
        ...
    <buyingStation stationName="$l10n_shopItem_limeStation" appearsOnPDA="false" storageRadius="50" fillSoundIdentifier="fillSound01">
        <loadTrigger triggerNode="0|1|0|0|0" fillLitersPerSecond="250" infiniteCapacity="true"/>
        <fillType name="lime" priceScale="1"/>
    </buyingStation>    
Where is the error? What I am doing wrong?

Thanks
the.geremy

You should try changeing the station name in the station .xml to just the name

<buyingStation stationName="$l10n_shopItem_fStation" appearsOnPDA="false" change to this
<buyingStation stationName="fStation" appearsOnPDA="false" or fertStation the $l10n_shopItem is asking the game to read name and tranlation from thier data and they dont have any name or translation for "fstation" you have to get it read the name and translation from you mods modDesc and you might try changeing the function to placable buypoint the best thing to do is compare to something like what you are trying to do that is not just a cut and past placable from Giants.
User avatar
the.geremy
Posts: 30
Joined: Tue Nov 15, 2016 2:38 pm

Re: FS19 - l10n translation...

Post by the.geremy »

Bonger76 wrote: Sat Dec 22, 2018 12:42 am You should try changeing the station name in the station .xml to just the name

<buyingStation stationName="$l10n_shopItem_fStation" appearsOnPDA="false" change to this
<buyingStation stationName="fStation" appearsOnPDA="false" or fertStation the $l10n_shopItem is asking the game to read name and tranlation from thier data and they dont have any name or translation for "fstation" you have to get it read the name and translation from you mods modDesc and you might try changeing the function to placable buypoint the best thing to do is compare to something like what you are trying to do that is not just a cut and past placable from Giants.
Hi Bonger76,

thanks for advice, but the stationName should start with $l10n_ and then the string you want to translate. If I just use fStation, this string will be static and will not be translated. That's mean, in every language this station name will be fStation. So if this part of translation is not working because of bug, my only option is to create som general name, which will be nice and understood in any language, e.g. just "Station" :D or something like that.
:gamer: FS22 Seasons is great! First time a was able to past winter.
Post Reply