You are not logged in.

thienkd

Beginner

  • "thienkd" started this thread

Posts: 21

Location: Viet Nam

  • Send private message

1

Sunday, June 13th 2021, 5:47pm

How to set tour title by language

Hello !
Can I set the title of the krpano tour by language?

I understand I have to define the title according to the language but I'm not sure how to assign it.

<strings name="english" text1="English title" />
<strings name="other_language" text1="Other_language title" />



<action name="startup" autorun="onstart">

.....
set(language, english);
</action>

and in the krpano tag i write:

<krpano version="1.20.6" title="get(strings[get(language)].text1)">

thienkd

Beginner

  • "thienkd" started this thread

Posts: 21

Location: Viet Nam

  • Send private message

2

Monday, June 14th 2021, 4:19pm

Can someone help me?

panoyun

Intermediate

Posts: 234

Location: Somalia

  • Send private message

3

Monday, June 14th 2021, 4:52pm

<strings name="language" english="English title" other_language="Other_language title" />

<action name="action_xzmioufysdna" autorun="onstart">
trace(get(title));
set(language,english);
if(language == english,
set(title,get(strings[language].english));
trace(get(title))
,
set(title,get(strings[language].other_language));
trace(get(title))
);
</action>