~ubuntu-branches/ubuntu/utopic/awn-extras-applets/utopic

« back to all changes in this revision

Viewing changes to src/weather/weathertext.py

  • Committer: Bazaar Package Importer
  • Author(s): Julien Lavergne
  • Date: 2010-01-13 21:50:33 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20100113215033-kd9otcdjrajmiag0
Tags: 0.3.9~bzr1944-0ubuntu1
* New upstream snapshot.
 - Catch error in weather applet (LP: #359668)
* debian/patches: Refresh.
* debian/*.install: 
 - Update to new location and new applets.
 - Disable dialect applet until python-xklavier is in the archive.
 - Disable MiMenu and Pandora applets, there are unmaintained and not stable.
* debian/awn-applets-c-core: Dropped, not needed.
* debian/control:
 - Update description with new applets.
 - Remove libawn-extras and python-awnlib, all merged in python-awn-extras.
 - Replace awn-manager by awn-settings.
 - Drop build-depends on libgnome-desktop-dev, python*-dev, python2.5,
   awn-manager, libglade2-dev and libgnomeui-dev.
 - Add build-depends on libdesktop-agnostic-bin and vala-awn.
 - Bump build-depends of libawn-dev (>= 0.3.9~bzr1890), valac (>= 0.7.7) and
   debhelper (>= 7.0.50~).
 - Bump Standards-Version to 3.8.3 (no change needed).
 - Demote gconf-editor to Suggest, it's only needed for very advanced
   settings.
 - Update Recommends for python applets with new applets.
 - Suggest python-gconf for notification-area and alacarte for YAMA.
 - Add a debug package for C applets.
* debian/libawn-extras*: Removed, libawn-extras was removed upstream.
* debian/python-awnlib*: Merged with python-awn-extras.
* debian/rules:
 - Rewrite to use overrides.
* debian/copyright:
 - Update copyright and licenses.
* debian/README.source: Added.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/python
2
 
# -*- coding: iso-8859-15 -*-
3
 
#
4
 
# Copyright (c) 2008:
5
 
#   Mike (mosburger) Desjardins <desjardinsmike@gmail.com>
6
 
#   Mike Rooney (launchpad.net/~michael) <mrooney@gmail.com>
7
 
#
8
 
# This is a weather applet for Avant Window Navigator.
9
 
#
10
 
# This library is free software; you can redistribute it and/or
11
 
# modify it under the terms of the GNU Lesser General Public
12
 
# License as published by the Free Software Foundation; either
13
 
# version 2 of the License, or (at your option) any later version.
14
 
#
15
 
# This library is distributed in the hope that it will be useful,
16
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
17
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18
 
# Lesser General Public License for more details.
19
 
#
20
 
# You should have received a copy of the GNU Lesser General Public
21
 
# License along with this library; if not, write to the
22
 
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
23
 
# Boston, MA 02111-1307, USA.
24
 
#
25
 
 
26
 
# mrooney: I am maintaining this file for now but it doesn't seem to be needed.
27
 
#   the XML feed gives us a description already so the mapping below isn't necessary,
28
 
#   and the gettext wrapping can be done in weather.py.
29
 
 
30
 
conditions = {
31
 
    "0": _("Tornado"),
32
 
    "1": _("Tropical Storm"),
33
 
    "2": _("Hurricane"),
34
 
    "3": _("Severe Thunderstorms"),
35
 
    "4": _("Thunderstorms"),
36
 
    "5": _("Mixed Rain and Snow"),
37
 
    "6": _("Mixed Rain and Sleet"),
38
 
    "7": _("Mixed Precipitation"),
39
 
    "8": _("Freezing Drizzle"),
40
 
    "9": _("Drizzle"),
41
 
    "10": _("Freezing Rain"),
42
 
    "11": _("Showers"),
43
 
    "12": _("Showers"),
44
 
    "13": _("Snow Flurries"),
45
 
    "14": _("Light Snow Showers"),
46
 
    "15": _("Blowing Snow"),
47
 
    "16": _("Snow"),
48
 
    "17": _("Hail"),
49
 
    "18": _("Sleet"),
50
 
    "19": _("Dust"),
51
 
    "20": _("Fog"),
52
 
    "21": _("Haze"),
53
 
    "22": _("Smoke"),
54
 
    "23": _("Blustery"), 
55
 
    "24": _("Windy"),
56
 
    "25": _("Cold"),
57
 
    "26": _("Cloudy"),
58
 
    "27": _("Mostly Cloudy"),
59
 
    "28": _("Mostly Cloudy"),
60
 
    "29": _("Partly Cloudy"),
61
 
    "30": _("Partly Cloudy"),
62
 
    "31": _("Clear"),
63
 
    "32": _("Clear"),
64
 
    "33": _("Fair"),
65
 
    "34": _("Fair"),
66
 
    "35": _("Mixed Rain and Hail"),
67
 
    "36": _("Hot"),
68
 
    "37": _("Isolated Thunderstorms"),
69
 
    "38": _("Scattered Thunderstorms"),
70
 
    "39": _("Scattered Thunderstorms"),
71
 
    "40": _("Scattered Showers"),
72
 
    "41": _("Heavy Snow"),
73
 
    "42": _("Scattered Snow Showers"),
74
 
    "43": _("Heavy Snow"),
75
 
    "44": _("Partly Cloudy"),
76
 
    "45": _("Thunder Showers"),
77
 
    "46": _("Snow Showers"),
78
 
    "47": _("Isolated Thunderstorms"),
79
 
    "na": _("N/A")
80
 
}
81
 
    
82
 
days = {
83
 
    "Monday": _("Monday"),
84
 
    "Tuesday": _("Tuesday"),
85
 
    "Wednesday": _("Wednesday"),
86
 
    "Thursday": _("Thursday"),
87
 
    "Friday": _("Friday"),
88
 
    "Saturday": _("Saturday"),
89
 
    "Sunday": _("Sunday")
90
 
}