Dear Garden Gnome Support Team,
I’m currently working on a multilingual virtual tour using Pano2VR v7.1.11 and have encountered an issue related to language synchronization between a main tour and embedded sub-tours.
Here’s the setup and the problem I’m facing:
1. Main Tour:
* Contains a language-switch button that correctly changes between Chinese and English using the built-in *Translations* system (.po / .mo).
* The main tour works perfectly—UI text and user data switch languages as expected.
2. Embedded Sub-Tours (Photo Albums):
* I created two separate projects that contain a series of flat images used as photo albums.
* Each image node has its own User Data → Description written in Chinese, and the English translations have been created using Poedit (.po files).
* These albums were built **following the workflow demonstrated in your webinar “Embedding Content in Pano2VR Projects.” I used the same method of creating standalone photo-based tours and then embedding them into the main tour as external panoramas, effectively using them as in-tour photo galleries.
* The embedded tours are loaded correctly and function as intended.
3. The Issue:
* When switching languages in the **main tour**, the **embedded sub-tours** do **not** update their displayed language automatically.
* It seems the translation system (or language variable) in the main project does not propagate to the embedded projects.
I’ve reviewed your documentation and the same *Webinar: Embedding Content in Pano2VR Projects*, but I haven’t found a way to synchronize language changes between the main and embedded tours.
Could you please advise whether:
* There’s a recommended workflow to make the embedded tours follow the main tour’s selected language, or
* A method to pass the current language variable (for example, `?lang=en`) from the main tour to the embedded one, so it can trigger the appropriate translation internally?
If possible, I’d greatly appreciate an example project or explanation that demonstrates how to achieve this behavior.
Thank you very much for your time and support.
I really appreciate your excellent documentation and webinars—they’ve been extremely helpful in my current workflow.
Best regards,
James Lee
Request for Assistance – Embedded Tour Language Synchronization in Pano2VR v7.1.11
- Hopki
- Gnome
- Posts: 13538
- Joined: Thu Jan 10, 2008 3:16 pm
- Location: Layer de la Haye, Essex UK
- Contact:
Hi James,
If you open an external tour, presumably using an iframe then it would have no idea what language you are using.
However, what you could do is use a text variable in the main project and when you change the language, it sets the language in the external project.
Then the external project uses a query which is added to the URL in the iframe.
Please see the attached project.
First open the external_project folder and create the output.
This will create the output_project folder in the main folder.
Return to the main folder and create the language project.
This project will add to assets the output_project.
Please note only the user data titles are translated, so the Hotspot Tooltips.
Regards,
If you open an external tour, presumably using an iframe then it would have no idea what language you are using.
However, what you could do is use a text variable in the main project and when you change the language, it sets the language in the external project.
Then the external project uses a query which is added to the URL in the iframe.
Please see the attached project.
First open the external_project folder and create the output.
This will create the output_project folder in the main folder.
Return to the main folder and create the language project.
This project will add to assets the output_project.
Please note only the user data titles are translated, so the Hotspot Tooltips.
Regards,
- Attachments
-
- lang_project.zip
- (57.2 KiB) Downloaded 292 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/
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/
Hi Sir,
Thank you for your guidance. I’ll give it a try tonight.
I’ve already tried passing the current language code to the iframe within the sub-tour after switching the language, which makes the whole process work correctly. However, this requires setting up each language individually, which is a bit inconvenient. Your method seems much simpler, so I’ll try it out this evening.
Thank you for your support.
Best regards,
James
Thank you for your guidance. I’ll give it a try tonight.
I’ve already tried passing the current language code to the iframe within the sub-tour after switching the language, which makes the whole process work correctly. However, this requires setting up each language individually, which is a bit inconvenient. Your method seems much simpler, so I’ll try it out this evening.
Thank you for your support.
Best regards,
James
Hey Hopki,
Very cool
Tony
Very cool
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/
