Hello, I include the name in moddesc with tag l10n, but the station name show bad:
How include translation station name?
8 posts
Page 1 of 1
How include translation station name?
PC Specs:
Re: How include translation station name?
Could you paste your code?
- Decker_MMIV
- Posts: 287
- Joined: Wed Aug 22, 2012 1:02 am
Re: How include translation station name?
Suggestion / experiment:
Also try to change the user-attribute value in the map I3D file, and see if that changes anything regarding "matching" the same value in your modDesc.XML file's <text> elements.
Code: Select all
<text name="$l10n_station_inn" ...
<text name="l10n_station_inn" ...
<text name="station_inn" ...
Re: How include translation station name?
In i3d map:SLUBADOG wrote:Could you paste your code?
Code: Select all
<UserAttribute nodeId="17245">
<Attribute name="index" type="string" value="FREIGHTYARD"/>
....
In map01.xml:
Code: Select all
<tipTrigger index="FREIGHTYARD" stationName="station_freightYard"
....
Code: Select all
<tipTrigger index="FREIGHTYARD" stationName="$l10n_station_freightYard"
....
In moddesc.xml:
Code: Select all
<l10n>
<text name="station_freightYard">
<en>Freight Yard</en>
<de>Güterbahnhof</de>
</text>
</l10n>
The second line I have not tried yet, but in the next code work in the game:Decker_MMIV wrote:Suggestion / experiment:
Also try to change the user-attribute value in the map I3D file, and see if that changes anything regarding "matching" the same value in your modDesc.XML file's <text> elements.Code: Select all
<text name="$l10n_station_inn" ... <text name="l10n_station_inn" ... <text name="station_inn" ...
Code: Select all
<tipTrigger index="FARM_SILO" stationName="station_farmSilo"
Code: Select all
<l10n>
<elements>
<e k="station_farmSilo" v="Farm Silo"/>
....
Edit:
In game show the station name write in map01.xml, no translate.
PC Specs:
Re: How include translation station name?
Try to change this line of code:
to this:
Code: Select all
<tipTrigger index="FREIGHTYARD" stationName="$l10n_station_freightYard"
Code: Select all
<tipTrigger index="FREIGHTYARD" stationName=$l10n_station_freightYard
Re: How include translation station name?
SLUBADOG wrote:Try to change this line of code:to this:Code: Select all
<tipTrigger index="FREIGHTYARD" stationName="$l10n_station_freightYard"
Code: Select all
<tipTrigger index="FREIGHTYARD" stationName=$l10n_station_freightYard
No is possible, the xml value need into " "
PC Specs:
- Decker_MMIV
- Posts: 287
- Joined: Wed Aug 22, 2012 1:02 am
Re: How include translation station name?
My guess then is, that it could be due to 'TipTrigger' is a base-script and therefor the g_i18n:getText() which is called in lines 301 - 304 simply won't use the mod-map's modDesc.XML's <l10n><text> elements.
Maybe make a "bug report" to GIANTS, about the TipTrigger needs to also look into map-mod's <l10n><text> elements, instead of just the base-game's global i18n lookup table.
A workaround would be to inject the custom <l10n><text> elements into the base-game's global i18n lookup table. But that needs a LUA script to be loaded before the map is loaded/parsed.
Maybe make a "bug report" to GIANTS, about the TipTrigger needs to also look into map-mod's <l10n><text> elements, instead of just the base-game's global i18n lookup table.
A workaround would be to inject the custom <l10n><text> elements into the base-game's global i18n lookup table. But that needs a LUA script to be loaded before the map is loaded/parsed.
Re: How include translation station name?
Is possible add stationName with string to User attibute TipTrigger, but this only replaces to stationName in map01.xml
Bug report in "[FS17] Bug Collection Thread (Version 1.3 and up) "?
Bug report in "[FS17] Bug Collection Thread (Version 1.3 and up) "?
PC Specs:
8 posts
Page 1 of 1