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)">

  • <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>

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!