Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgnacio Rodríguez <ignaciorodriguez@sugarlabs.org>2013-05-18 17:04:06 (GMT)
committer Ignacio Rodríguez <ignaciorodriguez@sugarlabs.org>2013-05-18 17:04:06 (GMT)
commitdacb1a74a1d767370c0fc25a7001a8d25b4c9981 (patch)
treecde3ad18026666c796a524cf883bdb8bc8300eb2
parent231dc66be873ee31dd3830980ccde52c7612a3f5 (diff)
Internalización.
-rwxr-xr-xvnclauncher.py26
1 files changed, 13 insertions, 13 deletions
diff --git a/vnclauncher.py b/vnclauncher.py
index c580cc4..8c8b8eb 100755
--- a/vnclauncher.py
+++ b/vnclauncher.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
-# Copyright (C) 2013, SomosAzucar
+# Copyright (C) 2013, Ignacio Rodríguez
# Version especial de VncLauncher con nuevos cambios.
#
# This program is free software; you can redistribute it and/or modify
@@ -46,16 +46,16 @@ class VncLauncherActivity(activity.Activity):
self.toolbar = self.toolbarbox.toolbar
self.start_vnc = RadioToolButton(icon_name="start_vnc",
- tooltip=_("Iniciar servidor VNC"))
+ tooltip=_("Start VNC Server"))
self.stop_vnc = RadioToolButton(icon_name="stop_vnc",
- tooltip=_("Detener servidor VNC"),
+ tooltip=_("Stop VNC Server"),
group=self.start_vnc)
self.stop_vnc.set_active(True)
self.get_ipbutton = ToolButton(icon_name="get_ip",
- tooltip=_("Obtener la IP actual"))
+ tooltip=_("Get the current IP"))
##
@@ -66,8 +66,8 @@ class VncLauncherActivity(activity.Activity):
render = gtk.CellRendererText()
render1 = gtk.CellRendererText()
- column1 = gtk.TreeViewColumn(_("Hora"), render, markup=0)
- column2 = gtk.TreeViewColumn(_("Mensaje"), render1, markup=1)
+ column1 = gtk.TreeViewColumn(_("Hour"), render, markup=0)
+ column2 = gtk.TreeViewColumn(_("Message"), render1, markup=1)
column1.add_attribute(render, 'foreground-gdk', 2)
column2.add_attribute(render1, 'foreground-gdk', 2)
@@ -75,7 +75,7 @@ class VncLauncherActivity(activity.Activity):
self.messages.append_column(column1)
self.messages.append_column(column2)
color = gtk.gdk.color_parse("dark blue")
- modelo.insert(0, [time.strftime("\n<b>%H:%M:%S</b>\n"), _("\n<b>Inicio de actividad.</b>\n"), color])
+ modelo.insert(0, [time.strftime("\n<b>%H:%M:%S</b>\n"), _("\n<b>Start of activity.</b>\n"), color])
self.showed_message_stop = True
self.showed_message_start = False
@@ -83,7 +83,7 @@ class VncLauncherActivity(activity.Activity):
self.stop_vnc.connect("clicked", self.__stop_vnc)
self.start_vnc.connect("clicked", self.__start_vnc)
self.clear_model = ToolButton(icon_name="clear_console",
- tooltip=_("Eliminar mensajes"))
+ tooltip=_("Delete messages"))
self.clear_model.connect("clicked", lambda x: modelo.clear())
self.get_ipbutton.connect("clicked", self.__get_ip)
self.last_message = 1
@@ -125,7 +125,7 @@ class VncLauncherActivity(activity.Activity):
self.showed_message_start = False
color = gtk.gdk.color_parse("dark red")
- self.messages.get_model().insert(self.last_message, [time.strftime("\n<b>%H:%M:%S</b>\n"), _("\n<b>Se ha detenido inhesperadamente el servidor.</b>\n"), color])
+ self.messages.get_model().insert(self.last_message, [time.strftime("\n<b>%H:%M:%S</b>\n"), _("\n<b>It has stopped unexpectedly the server..</b>\n"), color])
self.last_message += 1
return True
@@ -166,7 +166,7 @@ class VncLauncherActivity(activity.Activity):
self.showed_message_stop = False
self.isrunning = True
color = gtk.gdk.color_parse("green")
- self.messages.get_model().insert(self.last_message, [time.strftime("\n<b>%H:%M:%S</b>\n"), _("\n<b>Se inició el servidor VNC</b>\n"), color])
+ self.messages.get_model().insert(self.last_message, [time.strftime("\n<b>%H:%M:%S</b>\n"), _("\n<b>VNC server is started</b>\n"), color])
self.last_message += 1
def __stop_vnc(self, widget):
@@ -183,7 +183,7 @@ class VncLauncherActivity(activity.Activity):
os.system("kill " + self.pid_nuevo)
- self.messages.get_model().insert(self.last_message, [time.strftime("\n<b>%H:%M:%S</b>\n"), _("\n<b>El servidor VNC está ahora detenido.</b>\n"), color])
+ self.messages.get_model().insert(self.last_message, [time.strftime("\n<b>%H:%M:%S</b>\n"), _("\n<b>The VNC server is now stopped.</b>\n"), color])
self.last_message += 1
@@ -202,7 +202,7 @@ class VncLauncherActivity(activity.Activity):
ifconfig = "/sbin/ifconfig"
cmd = "%s %s" % (ifconfig, target)
output = commands.getoutput(cmd)
- error = _("Sin conexión inalámbrica.")
+ error = _("No wireless connection.")
ip = error
inet = output.find('inet')
if inet >= 0:
@@ -213,7 +213,7 @@ class VncLauncherActivity(activity.Activity):
ip = error
ip = ip.replace(":", "")
- if error == "Sin conexión inalámbrica.":
+ if error == _("No wireless connection."):
mensaje = error
else:
mensaje = "IP: " + ip