Skip to content

Commit

Permalink
Fix: time_receive bug
Browse files Browse the repository at this point in the history
  • Loading branch information
RingOV committed Mar 27, 2015
1 parent 1a61834 commit fc90f4e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
3 changes: 2 additions & 1 deletion gis-weather.py
Expand Up @@ -703,6 +703,7 @@ def expose_indicator(self):
if get_weather_bool:
weather1 = get_weather()
if weather1:
time_receive = time.strftime('%H:%M', time.localtime())
err_connect = False
splash = False
weather = weather1
Expand Down Expand Up @@ -838,7 +839,7 @@ def draw_weather_icon_now(self, cr, x, y):

if show_time_receive_local:
if time_update: self.draw_text(cr, _('Updated on server')+' '+time_update[0], x-margin, x+20+margin, font+' Normal', 8, width-10,Pango.Alignment.RIGHT)
self.draw_text(cr, _('Weather received')+' '+time_receive, x-margin, x+10+margin, font+' Normal', 8, width-10,Pango.Alignment.RIGHT)
if time_receive: self.draw_text(cr, _('Weather received')+' '+time_receive, x-margin, x+10+margin, font+' Normal', 8, width-10,Pango.Alignment.RIGHT)
if city_name: self.draw_text(cr, city_name[0], city_name_left+x+block_now_left, city_name_top+y, font+' Bold', 14, width - city_name_left, Pango.Alignment.CENTER)
self.draw_scaled_icon(cr, icon_now_left2+center-40+block_now_left, icon_now_top+y+30, icon_now[0],80+icon_now_size,80+icon_now_size)
t_index = t_scale*2
Expand Down
Binary file modified i18n/sv/LC_MESSAGES/gis-weather.mo
Binary file not shown.
14 changes: 7 additions & 7 deletions po/sv.po
@@ -1,12 +1,12 @@
#
# Translators:
# Kristian <kristianm24@gmail.com>, 2014
# Kristian <kristianm24@gmail.com>, 2014-2015
msgid ""
msgstr ""
"Project-Id-Version: Gis Weather\n"
"POT-Creation-Date: 2015-02-23 13:47+0300\n"
"PO-Revision-Date: 2015-02-24 10:39+0000\n"
"Last-Translator: Alexander Koltsov <ringov@mail.ru>\n"
"PO-Revision-Date: 2015-03-20 15:55+0000\n"
"Last-Translator: Kristian <kristianm24@gmail.com>\n"
"Language-Team: Swedish (http://www.transifex.com/projects/p/gis-weather/language/sv/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand Down Expand Up @@ -188,7 +188,7 @@ msgstr "höjd"

#: gis-weather.py:1268
msgid "including indent"
msgstr ""
msgstr "Inkluderar indrag"

#: gis-weather.py:1444
msgid "Removed"
Expand Down Expand Up @@ -363,7 +363,7 @@ msgstr "Nuvarande version"

#: dialogs/update_dialog.py:89
msgid "Available new version"
msgstr "Tillgänglig ny version"
msgstr "Ny version tillgänglig"

#: dialogs/update_dialog.py:112
msgid "Error downloading updates"
Expand Down Expand Up @@ -561,11 +561,11 @@ msgstr "Känns som"

#: dialogs/settings_dialog.ui:1492
msgid "Date separator format"
msgstr ""
msgstr "Format på Datumavgränsare"

#: dialogs/settings_dialog.ui:1507
msgid "Swap the day and month"
msgstr ""
msgstr "Växla om dag och månad"

#: dialogs/settings_dialog.ui:1565
msgid "Units"
Expand Down

0 comments on commit fc90f4e

Please sign in to comment.