From dacb1a74a1d767370c0fc25a7001a8d25b4c9981 Mon Sep 17 00:00:00 2001 From: Ignacio Rodríguez Date: Sat, 18 May 2013 17:04:06 +0000 Subject: Internalización. --- 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%H:%M:%S\n"), _("\nInicio de actividad.\n"), color]) + modelo.insert(0, [time.strftime("\n%H:%M:%S\n"), _("\nStart of activity.\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%H:%M:%S\n"), _("\nSe ha detenido inhesperadamente el servidor.\n"), color]) + self.messages.get_model().insert(self.last_message, [time.strftime("\n%H:%M:%S\n"), _("\nIt has stopped unexpectedly the server..\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%H:%M:%S\n"), _("\nSe inició el servidor VNC\n"), color]) + self.messages.get_model().insert(self.last_message, [time.strftime("\n%H:%M:%S\n"), _("\nVNC server is started\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%H:%M:%S\n"), _("\nEl servidor VNC está ahora detenido.\n"), color]) + self.messages.get_model().insert(self.last_message, [time.strftime("\n%H:%M:%S\n"), _("\nThe VNC server is now stopped.\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 -- cgit v0.9.1