Comment 2 for bug 587123

Revision history for this message
Nicolas Delvaux (malizor) wrote :

I had a look at the source code and I compared trunk with the 0.2 branch (where Weather Applet translation is ok).
I found this file in 0.2 but not in 0.4: http://bazaar.launchpad.net/~awn-extras/awn-extras/0.3.2.2/annotate/head:/src/weather/weathertext.py

Notice the header of this file:
# mrooney: I am maintaining this file for now but it doesn't seem to be needed.
# the XML feed gives us a description already so the mapping below isn't necessary,
# and the gettext wrapping can be done in weather.py.

That's surely why it was removed from 0.4
But the current gettext wrapping in weather.py is useless (and I fail to understand how it is supposed to work).

Otherwise, a simple fix may be to import the "weathertext.py" from the 0.2 branch and to adapt the "forecast.py" file accordingly (copy-paste from "forecastdialog.py" from 0.2?)