Multi Language info hotspot

Q&A about the latest versions
Post Reply
LaurentVR
Posts: 41
Joined: Mon May 25, 2020 11:21 am

Hi everyone,

I'm working on a tour with 2 languages.

My question is about information hotspots.
I have 10 info hotspots (sometime 2 per nodes) and I don't know how to figure to manage the translation.

Help would be appreciate !

Thanks
Laurent
Javier B
Posts: 98
Joined: Wed Sep 23, 2020 11:59 am

Take a look to this topic viewtopic.php?t=12858
LaurentVR
Posts: 41
Joined: Mon May 25, 2020 11:21 am

Thanks @JJBL.
In my case I only have few texts to put in the info hotspot (2/3 phrases).

For only one info hotspot in a node, I manage with a logic block lang=en / lang=de / lang=fr AND Tag=something (-> text to display).

But I'm stuck if I have 2 info Hotspots...

Would it be possible to use the ID of the hotspot ?

Regards
User avatar
Tony
Posts: 1342
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

Hi Laurent,

There's a number of different ways to do this but one of the fastest is to use a couple of variables and a text element logic block.

Here is a sample with 2 Point Hotspots in the panorama and 1 Info Hotspot in the skin https://p2vr.s3-ap-southeast-2.amazonaw ... index.html

language_0.jpg
language_0.jpg (420.52 KiB) Viewed 3654 times

The node has two Point Hotspots with the titles, Macbeth and Julius Ceaser

language_1.jpg
language_1.jpg (510.75 KiB) Viewed 3654 times

The skin has one Info Hotspot and two variables op_shakespeare and op_language. op_shakespeare is assigned the Hotspot Title when the ht_info hotspot is selected and the op_language is assigned either english or french when the language buttons are selected.

In the text element Logic Block the different language options are shown or hidden based on the values in the two variables.

There is a project folder you can download at https://p2vr.s3-ap-southeast-2.amazonaw ... tspots.zip and have a play with.

regards,

Tony
Tony Redhead | Panoramic Photographer | mobile: +61438501002 | website: https://tonyredhead.com - https://redsquare.com | Pano2VR Tutorials: https://tonyredhead.com/pano2vr | instagram: https://www.instagram.com/tonyredhead/
deedee123
Posts: 285
Joined: Wed May 20, 2020 10:38 am
Location: NL

...but this all doesn't work anymore in VR mode... :(
i hope for a less "workaround" type multi language solution that also works in VR mode for a next version.
david
LaurentVR
Posts: 41
Joined: Mon May 25, 2020 11:21 am

@Tony, Thanks a lot for your explanations and the test files !
I understood that I had forget a variable, so I think it's ok now ! :)
User avatar
Hopki
Gnome
Posts: 13005
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi,
If you guys are interested here is a different spin on this.
Basically, you make copies of the hotspot in the list view, I am adding the country code for each hotspot ID to better keep track of which one is for what language.
Then in the skin, there is a Hotspot for each language.
It then uses a text variable to show and hide the relevant Hotspot Template depending on which flag you select.
This way has the advantage of once the skin is set up with the Hotspots, you add text to each point hotspot.
This includes the title as well as body text.
The skin, once you set up one point hotspot template, just copy and paste it for each language.
As far as the file size is concerned the Hotspot template has hardly any file size so having copies is no big deal.
Regards,
Attachments
MultiLang.zip
(45.29 KiB) Downloaded 143 times
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
MeinePanoramen
Posts: 6
Joined: Mon Apr 12, 2021 7:05 pm

Hello Hopki,
thank you very much for this work.
The basic setting is the English language.
How can I preset the German language as the basic setting?
deedee123
Posts: 285
Joined: Wed May 20, 2020 10:38 am
Location: NL

hi,
i do hope a next version can handle multiple languages without needing the skin to hide or show items, as for VR, with the double hotspot trick, you end up with... well, double hotspots.
of course it's also possible to make a separate project for each language... not ideal though.
david
MeinePanoramen
Posts: 6
Joined: Mon Apr 12, 2021 7:05 pm

MeinePanoramen wrote: Sat Apr 24, 2021 9:59 pm Hello Hopki,
thank you very much for this work.
The basic setting is the English language.
How can I preset the German language as the basic setting?
I found the solution.
In the skin editor, click on an empty space in the drawing area so that no module is marked in the tree (left).
Then you can see the definition of "var_lang" and its default setting in the properties on the right under variables.
The basic setting can be defined here.
variable.PNG
variable.PNG (7.58 KiB) Viewed 3445 times
User avatar
Hopki
Gnome
Posts: 13005
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi,
Well worked out.
Good job.
Regards,
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
Post Reply