Hi Piotr and all,
I used the proposed solution by Piotr with success:
First you need to define a list of the descriptions to be used in the desired languages:
|
Source code
|
1
2
3
4
5
6
7
8
9
10
11
|
<s_tit name="de">
<item name="01" val="Eingang" />
<item name="02" val="Auditorium" />
<item name="03" val="VIP Bereich" />
</s_tit>
<s_tit name="gb">
<item name="01" val="Auditorium Entrance" />
<item name="02" val="Auditorium Hall" />
<item name="03" val="VIP Hall" />
</s_tit>
|
then you need a variable for the language switch, in my case I called it "v_lang"
I added a custom-tag to the scenes, called "langtit", eg. <scene name="scene_01" title="Better title of scene 01" langtit="01"... >
This seems not necessary, it was only a result of my proscess and I did not want to strip it for this additional tag, once it all was running. Obviously, you can fill the name="" parameter in s_tit with e.g. "scene_01", "scene_02" etc instead.
then you locate the "skin_hotspotstyle" and edit the hover-parameter:
|
Source code
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
onhover="
if(
skin_settings.tooltips_hotspots,
if(
linkedscene,
showtext(
get( s_tit[get(v_lang)].item[get(scene[get(linkedscene)].langtit)].val )
,SKIN_TOOLTIPS
);
):
);
"
|
In the "skin_addthumbs"-action (at the end) and in the "skin_update_scene_infos"-action (at the beginning) you need to edit the code as well:
|
Source code
|
1
2
3
|
showtext( get( s_tit[get(v_lang)].item[get(scene[get(linkedscene)].langtit)].val )
,SKIN_TOOLTIPS
); );
|
|
Source code
|
1
2
3
|
if(title, txtadd(layer[skin_title].html, get(title), ' - ', get(scene[get(xml.scene)].title) ); , copy(layer[skin_title].html,
s_tit[get(v_lang)].item[get(scene[get(xml.scene)].langtit)].val ); );
|