l10n
10 posts
Page 1 of 1
Re: l10n
I tried it like this:Dogface wrote: ↑Fri Apr 29, 2022 9:20 pm It is the same, isn't it?
modDescCode: Select all
<l10n> <text name="function_Trailer"> <en>Trailer</en> <de>Anhängerin</de> <ru>Трейлер</ru> </text> </l10n>
<text name="action_openGate">
<en>open Gate</en>
<ru>Open the gate</en>
</text>
there is no translation...
Re: l10n
I drop the store in placeables, then register it in storeitems+placeable. I'm editing xml and this line doesn't translate: <controls posAction="ACTIVATE_HANDTOOL" triggerNode="15/5" posText="input_LIGHTSWITCH_CLICK_ON" negText="input_LIGHTSWITCH_CLICK_OFF" />
Prescribed as follows: <text name="input_LIGHTSWITCH_CLICK_ON">
<en>Turn on the light</en>
<ru>Turn on the light</en>
<<text name="input_LIGHTSWITCH_CLICK_OFF">
<en>Turn off the light</en>
<ru>Turn off the light</en>
</text>
Prescribed as follows: <text name="input_LIGHTSWITCH_CLICK_ON">
<en>Turn on the light</en>
<ru>Turn on the light</en>
<<text name="input_LIGHTSWITCH_CLICK_OFF">
<en>Turn off the light</en>
<ru>Turn off the light</en>
</text>
-
- Moderator
- Posts: 955
- Joined: Sun Jul 17, 2016 9:40 am
Re: l10n
You can't use the names used by the game, you must create your own, so eg.
clickOn_light
clicOff_light
clickOn_light
clicOff_light
Re: l10n
Unfortunately it didn't help((. Could it be because this action is in a completely different xml? for another objectZiuta Modding wrote: ↑Fri Apr 29, 2022 10:26 pm You can't use the names used by the game, you must create your own, so eg.
clickOn_light
clicOff_light
-
- Moderator
- Posts: 955
- Joined: Sun Jul 17, 2016 9:40 am
Re: l10n
Show your XML and modDesc
-
- Moderator
- Posts: 955
- Joined: Sun Jul 17, 2016 9:40 am
Re: l10n
and object XML?
btw.
action_openGate
action_closeGate
action_openDoor
action_closeDoor
are used by the game so what you have in modDesc is not used at all
and the main error you have is that you put the <l10n> section in the <maps> section so now the path looks like this:
modDesc.maps.l10n
and it should be
modDesc.l10n
so this is how it should look like:
btw.
action_openGate
action_closeGate
action_openDoor
action_closeDoor
are used by the game so what you have in modDesc is not used at all
and the main error you have is that you put the <l10n> section in the <maps> section so now the path looks like this:
modDesc.maps.l10n
and it should be
modDesc.l10n
so this is how it should look like:
Code: Select all
<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<modDesc descVersion="65">
<author>DuMoH</author>
<version>1.0.0.0</version>
<title>
<en>Lost valley</en>
<ru>Затерянная долина</ru>
</title>
<description>
<en><![CDATA[Welcome to the Lost Valley.This is a fictional map created in the European style.]]></en>
<ru><![CDATA[Добро пожаловать на затерянную долину.Это вымышленная карта созданная в европейском стиле.]]></ru>
</description>
<iconFilename>icon.png</iconFilename>
<multiplayer supported="true"/>
<l10n>
<text name="openingHours_closedDefault">
<en>closed</en>
<ru>Закрыто</ru>
</text>
<text name="clickOn_light">
<en>Turn on the light</en>
<ru>Включить свет</ru>
</text>
<text name="clickOff_light">
<en>Turn off the light</en>
<ru>Выключить свет</ru>
</text>
</l10n>
<maps>
<map id="SampleModMap" className="Mission00" filename="$dataS/scripts/missions/mission00.lua" configFilename="maps/map.xml" defaultVehiclesXMLFilename="maps/vehicles.xml" defaultPlaceablesXMLFilename="maps/placeables.xml" defaultItemsXMLFilename="maps/items.xml">
<title>
<en>Lost valley</en>
<ru>Затерянная долина</ru>
</title>
<description>
<en>Welcome to the Lost Valley.This is a fictional map created in the European style.</en>
<ru>Добро пожаловать на затерянную долину.Это вымышленная карта созданная в европейском стиле.</ru>
</description>
<iconFilename>preview.png</iconFilename>
</map>
</maps>
</modDesc>
Re: l10n
Thank you so muchZiuta Modding wrote: ↑Fri Apr 29, 2022 10:59 pm and object XML?
btw.
action_openGate
action_closeGate
action_openDoor
action_closeDoor
are used by the game so what you have in modDesc is not used at all
and the main error you have is that you put the <l10n> section in the <maps> section so now the path looks like this:
modDesc.maps.l10n
and it should be
modDesc.l10n
so this is how it should look like:Code: Select all
<?xml version="1.0" encoding="utf-8" standalone="no" ?> <modDesc descVersion="65"> <author>DuMoH</author> <version>1.0.0.0</version> <title> <en>Lost valley</en> <ru>Затерянная долина</ru> </title> <description> <en><![CDATA[Welcome to the Lost Valley.This is a fictional map created in the European style.]]></en> <ru><![CDATA[Добро пожаловать на затерянную долину.Это вымышленная карта созданная в европейском стиле.]]></ru> </description> <iconFilename>icon.png</iconFilename> <multiplayer supported="true"/> <l10n> <text name="openingHours_closedDefault"> <en>closed</en> <ru>Закрыто</ru> </text> <text name="clickOn_light"> <en>Turn on the light</en> <ru>Включить свет</ru> </text> <text name="clickOff_light"> <en>Turn off the light</en> <ru>Выключить свет</ru> </text> </l10n> <maps> <map id="SampleModMap" className="Mission00" filename="$dataS/scripts/missions/mission00.lua" configFilename="maps/map.xml" defaultVehiclesXMLFilename="maps/vehicles.xml" defaultPlaceablesXMLFilename="maps/placeables.xml" defaultItemsXMLFilename="maps/items.xml"> <title> <en>Lost valley</en> <ru>Затерянная долина</ru> </title> <description> <en>Welcome to the Lost Valley.This is a fictional map created in the European style.</en> <ru>Добро пожаловать на затерянную долину.Это вымышленная карта созданная в европейском стиле.</ru> </description> <iconFilename>preview.png</iconFilename> </map> </maps> </modDesc>
10 posts
Page 1 of 1