Seite 1 von 1

Where to change variables

Verfasst: 01 Okt 2006 18:37
von Fredens
Hi,

Where do I translate/change default variables for :
%forecast_txt%
%thermicstress%
%seaforce%

used in my custom.txt file

Thanks in advance

Fredensvejr

Verfasst: 01 Okt 2006 18:46
von weneu
Hello,
you have to use
%forecast_txt[x]% in order to swith the language.
That means with %forecast_txt[1]% it's in English, with %forecast_txt[2]% it's in French and so on.
Exactly the same with %seaforce[x]%
A little difference is with %thermicstress%
You can only use %thermicstress_nv[x]%
See also the WSWIN-Helpfile

Verfasst: 01 Okt 2006 18:52
von Fredens
How is that done?

I asume the weatherforecast texts are set in
Weather->Weather forecast->Text

Can you explain how to do it?

Thanks

Verfasst: 01 Okt 2006 22:34
von weneu
Hello,
I asume the weatherforecast texts are set in
Weather->Weather forecast->Text
No, that's not correct. You have to do nothing. WSWIN itself builds the different forecast-texts and stores themt in %forecast_txt%
Now you open your custom.txt and ... for %forecast_txt%
Then you replace it by %forecast_txt[1]% and you will get the text not in German, but in English.

Verfasst: 02 Okt 2006 18:00
von Fredens
Hi,

Thing is that it shows the english text on my html pages, but I want to translate them to danish.

Verfasst: 02 Okt 2006 18:06
von weneu
Hello,
it's only possible in these languages:
x=1 englisch
x=2 französisch
x=3 italienisch
x=4 tschechisch
x=5 niederländisch
x=6 spanisch

Verfasst: 02 Okt 2006 21:00
von Werner
@Fredens,

maybe you can do that with

Compare text
%ws_comparestr=text1~text2~text3%
If text1 <> text2 then result = text2
If text1 = text2 then result = text3

Werner