Hi, in skin.conf
[Forecast]
[[Labels]]
[[[Zambretti]]]
'A' = "Bueno y Estable"
'B' = "Buen Tiempo"
'C' = "Mejorando"
'D' = "Bueno, a Inestable"
'E' = "Bueno, posibles lloviznas"
'F' = "Bastante Bueno, algunas lloviznas"
'G' = "Bastante Bueno, lloviznas luego"
'H' = "Bastante Bueno, lloviznas luego"
'I' = "Lloviznas, luego mejorando"
'J' = "Variable"
'K' = "Bastante Bueno, Algunas lloviznas"
'L' = "Inestable, Aclarando luego"
'M' = "Inestable, Posible Mejora"
'N' = "Lluvioso, Aclarando a intervalos"
'O' = "Lluvioso, tendencia a mejorar"
'P' = "Variable, Con Precipitaciones"
'Q' = "Inestable, PerĂodos de mejora"
'R' = "Inestable, Precipitaciones mas tarde"
'S' = "Inestable, Algunas Precipitaciones"
'T' = "Bastante Inestable"
'U' = "Precipitaciones Ocasionales, empeorando"
'V' = "Precipitaciones, muy Inestable"
'W' = "Lluvias Frecuentes"
'X' = "Lluvias, altamente Inestable"
'Y' = "Tormentas, puede mejorar"
'Z' = "Tormentas, Altas Precipitaciones"
its work for me.
Regards
On Thursday, January 26, 2017 at 2:02:50 PM UTC-3, mwall wrote:
>
> 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.