On Thursday, January 26, 2017 at 11:31:50 AM UTC-5, Daniel Jerez wrote:
>
>
> Hi, I wanted to know if it was possible to translate Zambretti's data with
> a forecast extension into another language?
>
you should put the translation in your skin.conf like this:
[Forecast]
[[Labels]]
[[[Zambretti]]]
A = Bueno y Estable
B = Buen Tiemp
C = Mejorano
...
then in your templates you use the labels like this:
$forecast.label('Zambretti', 'C')
or like this:
$forecast.label('Zambretti', $forecast.zambretti.code)
see forecast.py for a complete list of the labels that should be
translated. for example, the [[[Weather]]] stanza has labels for cloudy,
rain, hail, etc. that are used for wu, nws, and other forecasting services.
one of these days we'll come up with an easier way to do translations...
m
--
You received this message because you are subscribed to the Google Groups
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.