Ticket #4266: tweak-UI-strings-for-i18n.patch

File tweak-UI-strings-for-i18n.patch, 5.6 KB (added by cjl, 11 years ago)

patch

  • JAMedia.py

    From 0107bc1fed01c7e11d43d38342a8d8cefa0843ad Mon Sep 17 00:00:00 2001
    From: cjl <cjlhomeaddress@gmail.com>
    Date: Fri, 30 Nov 2012 19:25:58 -0500
    Subject: [PATCH] tweak UI strings for i18n
    
    ---
     JAMedia.py             | 2 +-
     JAMediaWidgets.py      | 4 ++--
     Mplayer_Reproductor.py | 8 ++++----
     Sugar.py               | 8 ++++----
     4 files changed, 11 insertions(+), 11 deletions(-)
    
    diff --git a/JAMedia.py b/JAMedia.py
    index 01a3a83..f2f0315 100644
    a b class JAMedia(gtk.Window): 
    566566        self.info_grabar.grabando(direccion)
    567567
    568568    def detener_grabacion(self, widget= None):
    569         if self.info_grabar.label.get_text() == _("Grabador Detenido."): return
     569        if self.info_grabar.label.get_text() == _("Stopped recording"): return
    570570        estado = str(self.mplayer_server.get_estado())
    571571        self.activar(None, "stop")
    572572        try:
  • JAMediaWidgets.py

    diff --git a/JAMediaWidgets.py b/JAMediaWidgets.py
    index 0c1b130..7b3a643 100644
    a b class Barra_de_Opciones_uno(gtk.HBox): 
    209209class Selector_de_Archivos (gtk.FileChooserDialog):
    210210    def __init__(self, jamedia):
    211211        self.jamedia = jamedia
    212         gtk.FileChooserDialog.__init__(self, title = _("Abrir Archivos de Audio o Video"),
     212        gtk.FileChooserDialog.__init__(self, title = _("Open Audio or Video Files"),
    213213        parent = self.jamedia, action = gtk.FILE_CHOOSER_ACTION_OPEN)
    214214        self.set_default_size( 640, 480 )
    215215        self.resize( 640, 480 )
    class ControlGrabar(gtk.Toolbar): 
    546546        self.timer = gobject.timeout_add(500, self.update)
    547547       
    548548    def detenido(self, widget= None, event= None):
    549         self.label.set_text(_("Recorder stopped."))
     549        self.label.set_text(_("Recording stopped"))
    550550        gobject.source_remove(self.timer)
    551551        self.timer = False
    552552        self.color = self.colors[0]
  • Mplayer_Reproductor.py

    diff --git a/Mplayer_Reproductor.py b/Mplayer_Reproductor.py
    index 6bb4147..1bb3fdf 100644
    a b class Mplayer_Reproductor(gobject.GObject): 
    267267                        gobject.source_remove(self.Actualizador)
    268268                        self.Actualizador = False
    269269                    self.set_estado("paused Audio_Video")
    270                     self.emit("mplayer_info", _("Reproducción Pausada"))
     270                    self.emit("mplayer_info", _("Playback Paused"))
    271271                elif self.get_estado() == "paused Audio_Video":
    272272                    self.entrada.write('pause 0\n') # hace unpause
    273273                    self.entrada.flush()
    class Mplayer_Reproductor(gobject.GObject): 
    276276                        self.Actualizador = False
    277277                    self.Actualizador = gobject.timeout_add(UPDATE_TIME, self.update_progress)
    278278                    self.set_estado("playing Audio_Video")
    279                     self.emit("mplayer_info", "%s: %s" % (_("Reproduciendo"), self.pista_actual))
     279                    self.emit("mplayer_info", "%s: %s" % (_("Playing"), self.pista_actual))
    280280        except Exception, e:
    281281            print "HA OCURRIDO UN ERROR EN PAUSE_PLAY DEL REPRODUCTOR", e
    282282           
    class Mplayer_Reproductor(gobject.GObject): 
    294294        if os.path.exists(STDOUT): os.unlink(STDOUT)
    295295        self.pista_actual = None
    296296        self.set_estado(None)
    297         self.emit("mplayer_info", _("Reproducción Detenida"))
     297        self.emit("mplayer_info", _("Playback Stopped"))
    298298    # ------------------------ REPRODUCCION -------------------------------------------
    299    
    300  No newline at end of file
     299   
  • Sugar.py

    diff --git a/Sugar.py b/Sugar.py
    index a19eca5..03b4a48 100644
    a b class JAMedia(activity.Activity): 
    347347                elemento = [None, texto, url, tipo]
    348348                lista.append(elemento)
    349349            self.lista_de_reproduccion.set_lista(lista)
    350             self.toolbar_list.label.set_text(_("Archivos Externos"))
     350            self.toolbar_list.label.set_text(_("External Files"))
    351351           
    352352    #----------------- Operaciones para la lista -------------------- #
    353353   
    class JAMedia(activity.Activity): 
    373373                menu.append(borrar)
    374374                borrar.connect_object("activate", self.set_accion_archivos, item, "Borrar")
    375375        else:
    376             quitar = gtk.MenuItem(_("Remove from the de la List"))
     376            quitar = gtk.MenuItem(_("Remove from the List"))
    377377            menu.append(quitar)
    378378            quitar.connect_object("activate", self.set_accion_stream, item, "Quitar")
    379379            if self.toolbar_list.label.get_text() == _("JAMedia Radio")\
    class JAMedia(activity.Activity): 
    404404        elif accion == "Grabar":
    405405            self.grabar_streaming(item)
    406406        elif accion == "Borrar":
    407             dialog = StandarDialog(self, _("JAMedia Message"), _("Are you sure you want to remove the Streaming?"))
     407            dialog = StandarDialog(self, _("JAMedia Message"), _("Are you sure you want to remove the stream?"))
    408408            response = dialog.run()
    409409            dialog.destroy()
    410410            if response == gtk.RESPONSE_YES:
    class JAMedia(activity.Activity): 
    497497            dialog.destroy()
    498498            return
    499499        stream = "%s,%s" % (nombre, direccion)
    500         dialog = StandarDialog(self, _("JAMedia Message"), _("Are you sure you want to add this streaming to your list?"))
     500        dialog = StandarDialog(self, _("JAMedia Message"), _("Are you sure you want to add this stream to your list?"))
    501501        response = dialog.run()
    502502        dialog.destroy()
    503503        if response == gtk.RESPONSE_YES: