Hello
Sorry for broken English. This post is written with the help of Google-Translator.
My task:
Divide the control code, and all texts (titles hotspots, the names of panoramas, etc.)
Examples:
Code
<hotspot name="hs_01" devices="all"
onhover="showtext(TEXT, hs_name_style);"
/>
...
<scene name="scene_01" title="NAME" thumburl="%SWFPATH%/panos/01.tiles/thumb.jpg" >
I want to put text into a separate file.
Code
<include url="%SWFPATH%/skin/text_data_ru.xml" />
(or <include url="%SWFPATH%/skin/text_data_en.xml" />, etc...)
...
<hotspot name="hs_01" devices="all"
onhover="showtext($Hs_text_01, hs_name_style);"
/>
...
<scene name="scene_01" title="$Pano_name_01" thumburl="%SWFPATH%/panos/01.tiles/thumb.jpg" >
text_data_ru.xml
Code
$Hs_text_01="TEXT-1"
$Hs_text_02="TEXT-2"
...
$Pano_name_01="NAME-01"
$Pano_name_01="NAME-02"
...
This is in order that would simplify the work on translations, typos, etc.
A separate file that contains in one place all the used texts - it's very convenient.
How to do it?
PS
I read these threads. But there is described a different functionality. I need the imposition of a separate text file.
http://www.krpano.com/forum/wbb/inde…d&threadID=9144
Switching showtext according to chosen language?