Page 1 of 3
custom forecast : THANKS !
Posted: Tue 10 Nov 2009 6:15 pm
by aeropic
Hi Steve,
I've just tested the new custom forecast "string.ini" file... It works like a charm.
Many thanks for this function which allows a first step into internationalization .
Alain
PS : in the string file for forecast, there is missing "not available"
Re: custom forecast : THANKS !
Posted: Tue 10 Nov 2009 6:42 pm
by steve
Glad you like it, I might continue with it as the fancy takes me...
I realised that 'not available' was missing, but it's only there for a short time until the forecast appears (assuming you have the forecast switched on). I'll perhaps add it with the next batch.
Re: custom forecast : THANKS !
Posted: Wed 11 Nov 2009 7:38 am
by aeropic
Here is a first french translation of the strings file.
It could maybe be more accurate as my skills in meteorologie are not that great !
Alain
[Forecast]
exceptional=temps exceptionnel
forecast1=beau temps établi
forecast2=beau temps
forecast3=tendance au beau temps
forecast4=beau temps, tendance à se dégrader
forecast5=beau, averses possibles
forecast6=plutôt beau, en amélioration
forecast7=plutôt beau averses possibles en matinée
forecast8=assez beau, des averses en soirée
forecast9=averses, en amélioration
forecast10=variable, en amélioration
forecast11=plutôt beau, averses probables
forecast12=plutôt perturbé, s'améliorant
forecast13=perturbé, s'améliorant probablement
forecast14=pluies éparses, belles éclaircies
forecast15=averses, temps se découvrant
forecast16=variable, quelques précipitations
forecast17=perturbé, de rares éclairces
forecast18=variable, quelques précipitations tardives
forecast19=variable, quelques précipitations
forecast20=très perturbé
forecast21=précipitations occasionnelles, se dégradant
forecast22=quelques précipitations, très perturbé
forecast23=Precipitations à intervalles fréquents
forecast24=Pluie, très perturbé
forecast25=tempête, pourrait s'améliorer
forecast26=tempête, grosses pluies
Re: custom forecast : THANKS !
Posted: Wed 11 Nov 2009 9:10 am
by laulau
Hi,
I just upgrade to the build 871 Cumulus version and put Alain's French Strings.ini in cumulus folder, but Cumulus shows just "Clear" as forecast!!
What did i forgot ?
Laurent
P.S. In station configuration i enable "cumulus forecast"
Re: custom forecast : THANKS !
Posted: Wed 11 Nov 2009 9:33 am
by steve
laulau wrote:I just upgrade to the build 871 Cumulus version and put Alain's French Strings.ini in cumulus folder, but Cumulus shows just "Clear" as forecast!!
Sorry - when I put the forecast code in originally, I forgot to change the code for the WMR928 so that it could use it. I'll upload a fix later today.
Re: custom forecast : THANKS !
Posted: Wed 11 Nov 2009 10:46 am
by laulau
Thank's for the prompt reply, it'nice.
Are the strings.ini forecast reported in the forecast webtag ?
Laurent
Re: custom forecast : THANKS !
Posted: Wed 11 Nov 2009 11:02 am
by steve
laulau wrote:Are the strings.ini forecast reported in the forecast webtag ?
Yes, the forecast webtag uses the same strings.
Re: custom forecast : THANKS !
Posted: Wed 11 Nov 2009 1:31 pm
by daj
I have added this to the Cumulus Wiki, and will also include translations for all other languages shortly.
http://wiki.sandaysoft.com/index.php?title=Strings.ini
Re: custom forecast : THANKS !
Posted: Wed 11 Nov 2009 1:37 pm
by steve
David - many thanks.
Re: custom forecast : THANKS !
Posted: Wed 11 Nov 2009 2:56 pm
by bnwrx
Tried using this,but it retains the original descriptions? Does it take a while for cumulus to recognize any edits to the strings.ini file? I've edited the original and the copy files but still reads "settled fine" ??
Re: custom forecast : THANKS !
Posted: Wed 11 Nov 2009 3:10 pm
by beteljuice
I assume - because it's an ini file, you would need to restart Cumulus for any changes to take effect.
Re: custom forecast : THANKS !
Posted: Wed 11 Nov 2009 3:28 pm
by bnwrx
Retsarted several times,no change, rebooted, no change. The data is current but the forecast still shows the old forecast words ie:settled fine ?? Where is it getting this from? I've named it strings.ini and have edited it. Must be doing something wrong here.
Re: custom forecast : THANKS !
Posted: Wed 11 Nov 2009 3:37 pm
by steve
If you've restarted, assuming you've put the file in the right place, I can't think why it wouldn't work. If you upload your strings.ini file I'll have a look at it.
Re: custom forecast : THANKS !
Posted: Wed 11 Nov 2009 3:44 pm
by bnwrx
Just figured it out. The file name was strings.ini.ini . Now it works! Sorry to not have checked that!
Re: custom forecast : THANKS !
Posted: Thu 12 Nov 2009 12:54 pm
by steve
steve wrote:Sorry - when I put the forecast code in originally, I forgot to change the code for the WMR928 so that it could use it. I'll upload a fix later today.
Build 872 has this fix.
I've also added the moon phases to the list of strings that can be edited (and the words "Forecast" and "not available").