Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Moonwidgets.py
diff options
context:
space:
mode:
authorflavio <fdanesse@gmail.com>2012-02-25 18:43:20 (GMT)
committer flavio <fdanesse@gmail.com>2012-02-25 18:43:20 (GMT)
commit832940f07a4a86c3e553cb7f3525e2f0ce920142 (patch)
treea11932fe818208ee1150600084ef78b139353737 /Moonwidgets.py
parent489b6d6d9ea29f3d79643ce1e264662b29f3e8d9 (diff)
Correcciones en Traducción
Diffstat (limited to 'Moonwidgets.py')
-rw-r--r--Moonwidgets.py15
1 files changed, 7 insertions, 8 deletions
diff --git a/Moonwidgets.py b/Moonwidgets.py
index 181c405..e421bde 100644
--- a/Moonwidgets.py
+++ b/Moonwidgets.py
@@ -51,7 +51,7 @@ class CalendarButton(gtk.EventBox):
self.image = gtk.Image()
self.fixed = gtk.Fixed()
- self.hemisphere_view = 'Sur'
+ self.hemisphere_view = _('Sur')
self.show_grid = False
self.fixed.put(self.image, 0, 0)
@@ -112,10 +112,10 @@ class CalendarButton(gtk.EventBox):
self.show_grid = True
def toggle_hemisphere_clicked(self, widget= None):
- if self.hemisphere_view == 'Norte':
- self.hemisphere_view = 'Sur'
+ if self.hemisphere_view == _('Norte'):
+ self.hemisphere_view = _('Sur')
else:
- self.hemisphere_view = 'Norte'
+ self.hemisphere_view = _('Norte')
def repaint(self, tamanioboton):
if tamanioboton != self.imagen_size:
@@ -200,7 +200,7 @@ class CalendarButton(gtk.EventBox):
self.image_pixmap.draw_rectangle(rgc, True, 0, 0, self.imagen_size, self.imagen_size)
self.image_pixmap.draw_pixbuf(gc, dark_pixbuf, 0, 0, 0, 0)
- if self.hemisphere_view == 'Sur':
+ if self.hemisphere_view == _('Sur'):
#print "Rotate final image for a view from Norte or Sur hemisphere"
rot_pixbuf = gtk.gdk.Pixbuf(gtk.gdk.COLORSPACE_RGB, False, 8, self.imagen_size, self.imagen_size)
rot_pixbuf.get_from_drawable(self.image_pixmap, self.image_pixmap.get_colormap(), 0, 0, 0, 0, -1, -1)
@@ -388,7 +388,6 @@ class DataModel():
return _("New Moon")
class MoonCalendar(gtk.AspectFrame):
- __gsignals__ = {"recalculando":(gobject.SIGNAL_RUN_FIRST, gobject.TYPE_NONE, (gobject.TYPE_BOOLEAN, ))}
def __init__(self):
gtk.AspectFrame.__init__(self)
self.modify_bg(gtk.STATE_NORMAL, MG.BACKGROUND)
@@ -446,7 +445,7 @@ class MoonCalendar(gtk.AspectFrame):
caja_control.pack_end(view_tool_bar, False, False, 0)
caja_dias = gtk.HBox()
- for dia in ["Lun", "Mar", "Mie", "Jue", "Vie", "Sáb", "Dom"]:
+ for dia in [_("Lun"), _("Mar"), _("Mie"), _("Jue"), _("Vie"), _("Sáb"), _("Dom")]:
label = gtk.Label(dia)
label.modify_fg(gtk.STATE_NORMAL, MG.FOREGROUND)
caja_dias.pack_start(label, True, True, 0)
@@ -491,7 +490,7 @@ class MoonCalendar(gtk.AspectFrame):
t = time.strptime(self.hoy, MG.format)
mes= meses[t.tm_mon -1]
dia= dias[t.tm_wday]
- self.label_mes.set_text("%s %s" % (mes, self.matriz.anio))
+ self.label_mes.set_text("%s %s" % (_(mes), self.matriz.anio))
def toggle_grid_clicked(self, widget= None, actualizar= False):
for linea in self.matriz.calendarbuttons: