Where to change variables

Fragen, Anregungen zur PC-Wetterstations-Software

Moderatoren: Werner, Tex, weneu

Antworten
Fredens

Where to change variables

Beitrag 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
Benutzeravatar
weneu
Site Admin
Beiträge: 11572
Registriert: 22 Feb 2002 01:00
Wohnort: Donauwörth
Danksagung erhalten: 18 mal
Kontaktdaten:

Beitrag 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
Fredens

Beitrag 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
Benutzeravatar
weneu
Site Admin
Beiträge: 11572
Registriert: 22 Feb 2002 01:00
Wohnort: Donauwörth
Danksagung erhalten: 18 mal
Kontaktdaten:

Beitrag 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.
Fredens

Beitrag von Fredens »

Hi,

Thing is that it shows the english text on my html pages, but I want to translate them to danish.
Benutzeravatar
weneu
Site Admin
Beiträge: 11572
Registriert: 22 Feb 2002 01:00
Wohnort: Donauwörth
Danksagung erhalten: 18 mal
Kontaktdaten:

Beitrag 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
Benutzeravatar
Werner
Site Admin
Beiträge: 6071
Registriert: 04 Dez 2001 01:00
Wohnort: Lackenhäuser
Danksagung erhalten: 141 mal
Kontaktdaten:

Beitrag 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
Antworten