Zambretti translation

28 views
Skip to first unread message

Vetti52

unread,
Aug 23, 2020, 3:18:57 PM8/23/20
to weewx-user

Some time ago, I was wondering about the nice and colorful forecasting pictures on my weather station, and how to get the corresponding data downloaded.

Since I have recently installed the Weewx forecast module, I have concluded, that these pictures may be graphical interpretations of Zambretti codes, which the console may calculate itself. The Weewx forecast module also has a build in Zambretti calculation and expresses the codes (A to Z) as narrative English text modules. I have found such text modules at two places in forecast.py
[Forecasts]
    [[Labels]]
        [[[Zambretti]]]
            # mapping between zambretti codes and descriptive labels
                            ...

and at
zambretti_label_dict = {
...}

Now I want to replace the text modules with German expressions. I found a github project https://github.com/3KUdelta/Solar_WiFi_Weather_Station , where the file Translations.h contains versions in 9 languages.
Although is easy to reformat and insert the text into that of the both places at forecast.py (not sure, if I need them at both places), I would like to have the translation outside of the file, so that it survives updates. And maybe, there is some interest to use the other languages as well.
What do you think about it?
Reply all
Reply to author
Forward
0 new messages