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): |
566 | 566 | self.info_grabar.grabando(direccion) |
567 | 567 | |
568 | 568 | 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 |
570 | 570 | estado = str(self.mplayer_server.get_estado()) |
571 | 571 | self.activar(None, "stop") |
572 | 572 | try: |
diff --git a/JAMediaWidgets.py b/JAMediaWidgets.py
index 0c1b130..7b3a643 100644
a
|
b
|
class Barra_de_Opciones_uno(gtk.HBox): |
209 | 209 | class Selector_de_Archivos (gtk.FileChooserDialog): |
210 | 210 | def __init__(self, jamedia): |
211 | 211 | 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"), |
213 | 213 | parent = self.jamedia, action = gtk.FILE_CHOOSER_ACTION_OPEN) |
214 | 214 | self.set_default_size( 640, 480 ) |
215 | 215 | self.resize( 640, 480 ) |
… |
… |
class ControlGrabar(gtk.Toolbar): |
546 | 546 | self.timer = gobject.timeout_add(500, self.update) |
547 | 547 | |
548 | 548 | def detenido(self, widget= None, event= None): |
549 | | self.label.set_text(_("Recorder stopped.")) |
| 549 | self.label.set_text(_("Recording stopped")) |
550 | 550 | gobject.source_remove(self.timer) |
551 | 551 | self.timer = False |
552 | 552 | self.color = self.colors[0] |
diff --git a/Mplayer_Reproductor.py b/Mplayer_Reproductor.py
index 6bb4147..1bb3fdf 100644
a
|
b
|
class Mplayer_Reproductor(gobject.GObject): |
267 | 267 | gobject.source_remove(self.Actualizador) |
268 | 268 | self.Actualizador = False |
269 | 269 | self.set_estado("paused Audio_Video") |
270 | | self.emit("mplayer_info", _("Reproducción Pausada")) |
| 270 | self.emit("mplayer_info", _("Playback Paused")) |
271 | 271 | elif self.get_estado() == "paused Audio_Video": |
272 | 272 | self.entrada.write('pause 0\n') # hace unpause |
273 | 273 | self.entrada.flush() |
… |
… |
class Mplayer_Reproductor(gobject.GObject): |
276 | 276 | self.Actualizador = False |
277 | 277 | self.Actualizador = gobject.timeout_add(UPDATE_TIME, self.update_progress) |
278 | 278 | 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)) |
280 | 280 | except Exception, e: |
281 | 281 | print "HA OCURRIDO UN ERROR EN PAUSE_PLAY DEL REPRODUCTOR", e |
282 | 282 | |
… |
… |
class Mplayer_Reproductor(gobject.GObject): |
294 | 294 | if os.path.exists(STDOUT): os.unlink(STDOUT) |
295 | 295 | self.pista_actual = None |
296 | 296 | self.set_estado(None) |
297 | | self.emit("mplayer_info", _("Reproducción Detenida")) |
| 297 | self.emit("mplayer_info", _("Playback Stopped")) |
298 | 298 | # ------------------------ REPRODUCCION ------------------------------------------- |
299 | | |
300 | | No newline at end of file |
| 299 | |
diff --git a/Sugar.py b/Sugar.py
index a19eca5..03b4a48 100644
a
|
b
|
class JAMedia(activity.Activity): |
347 | 347 | elemento = [None, texto, url, tipo] |
348 | 348 | lista.append(elemento) |
349 | 349 | 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")) |
351 | 351 | |
352 | 352 | #----------------- Operaciones para la lista -------------------- # |
353 | 353 | |
… |
… |
class JAMedia(activity.Activity): |
373 | 373 | menu.append(borrar) |
374 | 374 | borrar.connect_object("activate", self.set_accion_archivos, item, "Borrar") |
375 | 375 | else: |
376 | | quitar = gtk.MenuItem(_("Remove from the de la List")) |
| 376 | quitar = gtk.MenuItem(_("Remove from the List")) |
377 | 377 | menu.append(quitar) |
378 | 378 | quitar.connect_object("activate", self.set_accion_stream, item, "Quitar") |
379 | 379 | if self.toolbar_list.label.get_text() == _("JAMedia Radio")\ |
… |
… |
class JAMedia(activity.Activity): |
404 | 404 | elif accion == "Grabar": |
405 | 405 | self.grabar_streaming(item) |
406 | 406 | 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?")) |
408 | 408 | response = dialog.run() |
409 | 409 | dialog.destroy() |
410 | 410 | if response == gtk.RESPONSE_YES: |
… |
… |
class JAMedia(activity.Activity): |
497 | 497 | dialog.destroy() |
498 | 498 | return |
499 | 499 | 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?")) |
501 | 501 | response = dialog.run() |
502 | 502 | dialog.destroy() |
503 | 503 | if response == gtk.RESPONSE_YES: |