Sie sind nicht angemeldet.

VVZen

Anfänger

  • »VVZen« ist der Autor dieses Themas

Beiträge: 26

Beruf: Freelance 2d-3d Artist

  • Nachricht senden

1

Montag, 21. Dezember 2015, 11:41

Load different localised xml based on user language

Hi,
Is it possible to use the include statement like this:

Quellcode

1
<include url="language/info_en.xml" if="language == 'en'"/>

To dynamically load different language files based on the user language?
Currently the language var is passed as a query parameter, like this: file:///myFilePath/main_vr.html?startscene=scene_name&language=en
What would be the best way to support multiple languages and avoid to load multiple useless files?
Thanks,

Namastè
VVZen - 3d generalist getting into the VR world

yaskebasi.it

Beiträge: 1 117

Wohnort: Poland, Europe

Beruf: krpano developer : virtual tours : the cms4vr owner

  • Nachricht senden

2

Montag, 21. Dezember 2015, 13:33

It's possible, but you need to use initvars variable:

http://krpano.com/docu/html/#initvars

regards

Piotr

p.s. I think it only works in the new version KRpano.
Your own professional, online cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube :: wiki.cms4vr.com

cms4vr team *thumbsup*

VVZen

Anfänger

  • »VVZen« ist der Autor dieses Themas

Beiträge: 26

Beruf: Freelance 2d-3d Artist

  • Nachricht senden

3

Mittwoch, 23. Dezember 2015, 10:37

Thanks so much, tested on 1.19 pr3 and it works! *thumbup*
VVZen - 3d generalist getting into the VR world

yaskebasi.it

Beiträge: 1 117

Wohnort: Poland, Europe

Beruf: krpano developer : virtual tours : the cms4vr owner

  • Nachricht senden

4

Mittwoch, 23. Dezember 2015, 10:56

*thumbup*


I'm glad. Good luck.

Piotr
Your own professional, online cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube :: wiki.cms4vr.com

cms4vr team *thumbsup*

Ähnliche Themen