multi-langual hotspots

Q&A about the latest versions
Post Reply
User avatar
skyfocus
Posts: 268
Joined: Sat Jun 12, 2010 10:52 am
Location: The Netherlands
Contact:

Hi,

I'm working on a hotel tour and the customer wants the tour to be multi-lingual. Hotspot buttons should be in Dutch and English.
I can type both languages in one field and show them at ones. An other method is making two tours with 1 common entrance panorama
in which you enter the English or the Dutch tour. But for these minor differences in hotspot text, it is a lot of overhead.

Is there a more elegant solution to create some sort of language switch in the skin where you can select one of the two languages ? Should be something
conditional. If Language set to English, show text A and otherwise show text B. Has anybody done this yet ?

regards,

Arjan
Windows 10 Pro x64, Pano2VR pro V6.1.13 , Browser latest Firefox
Website: https://www.skyfocus.nl/
User avatar
Hopki
Gnome
Posts: 13025
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi Arjan
If you are not going to use the Target text field in the hotspot editor you can use this for the second language. Use the Title text field for Dutch text and the Target text field of the English.

In the skin add two text boxes that will be stacked on top of each other, hstext_dutch and hstext_english, using the following settings:
Set both for, Position: X: -50, Y: -50
Set both for, Size: Width: 100, Height: 20
Then set both for Auto Size.

For hstext_dutch set Scaling: X: 1.00, Y: 1.00
For hstext_english set Scaling: X: 0.00, Y: 0.00

Set the text $hs in hstext_dutch
Set the text $ht in hstext_english

Now highlight both hstext_xx boxes in the skin editor and add a container around them by clicking, Elements, Add Container, from the tool bar.

Rename the container to hstext and set its scaling to: X: 0.00, Y: 0.00
Now in it’s modifiers set:
Move X => Mouse x => Factor: 1.000 => Offset: 0.0
Move Y => Mouse Y => Factor: 1.000 => Offset: 0.0

This will cause the container with the two text boxes to follow the mouse pointer.

The Hotspot templet should have the actions:
Mouse Enter => Set Element Scale => Scale X/Y: 1 => Target: hstext
Mouse Leave => Set Element Scale => Scale X/Y: 0 => Target: hstext
Mouse Click => Go To Url => Url: $hu => Target: (leave blank)

To switch between the text you need two buttons in the skin, each denoting the language that will be displayed.

The buttons will have the following actions:
Button 1 = Dutch
Mouse Click => Set Element Scale => Scale X/Y: 1 = Target: hstext_dutch
Mouse Click => Set Element Scale => Scale X/Y: 0 = Target: hstext_english

Button 2 = English
Mouse Click => Set Element Scale => Scale X/Y: 0 = Target: hstext_dutch
Mouse Click => Set Element Scale => Scale X/Y: 1 = Target: hstext_english

This will now switch between the text set in the title text field, Dutch and the text set in the target text field, English of each hotspot.
I have used the actions “Scale” so this should work just as well with the iDevices, however you can substitute Scale Element for hide and show or Alpha if for Flash only.
Regards
Hopki
Attachments
bilingual_skin.ggsk
(10.16 KiB) Downloaded 184 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/
User avatar
skyfocus
Posts: 268
Joined: Sat Jun 12, 2010 10:52 am
Location: The Netherlands
Contact:

Hi Hopki,

Thanks for your reply, looks promising .... but there is one problem .... I do use the target field for entering next panorama's at the right angle.
I don't see other possible fields in the hotspot options which I can use. Maybe a good feature request to have the possibillity to have
two (or more) conditional text fields in a hotspot to support multi-langual tours.

regards,

Arjan
Windows 10 Pro x64, Pano2VR pro V6.1.13 , Browser latest Firefox
Website: https://www.skyfocus.nl/
User avatar
Hopki
Gnome
Posts: 13025
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi Arjan
This is already in the bug tracker.
A different approach would be leave the text in the hotspot editor as already stated, but remove the SWF from the Url text field, then in the skin editor have a container for each hotspot linked to the point hotspot by Hotspot Proxy ID.

The container would have the Open Next Panorama action with the P/T/FoV.
As you click the area or point hotspot the container would then sort out the navigation and opening view while the data in the area or point hotspot would be used in the tool tips displaying what language is required.
Ok, you may end up with a few containers in the skin, but should not affect file size.
Regards
Hopki
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