[gnome-music] player: Mark "Unknown Artist" as translatable
- From: Vadim Rutkovsky <vrutkovsky src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music] player: Mark "Unknown Artist" as translatable
- Date: Sat, 3 Aug 2013 12:36:27 +0000 (UTC)
commit 96010768aba1322c4848a58de517e7c477aa5ffc
Author: Arnel A. Borja <arnelborja src gnome org>
Date: Sat Aug 3 15:31:20 2013 +0800
player: Mark "Unknown Artist" as translatable
Also, changed it from "Unknown artist" to "Unknown Artist" to match other
instances of this in other source files.
gnomemusic/player.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gnomemusic/player.py b/gnomemusic/player.py
index dfff17b..d45de3e 100644
--- a/gnomemusic/player.py
+++ b/gnomemusic/player.py
@@ -2,6 +2,7 @@ from gi.repository import GIRepository
GIRepository.Repository.prepend_search_path('libgd')
from gi.repository import Gtk, Gdk, GLib, Gio, GObject, Gst, GstAudio, GstPbutils
+from gettext import gettext as _
from random import randint
from gnomemusic.albumArtCache import AlbumArtCache
@@ -232,7 +233,7 @@ class Player(GObject.GObject):
if media.get_artist() is not None:
self.artistLabel.set_label(media.get_artist())
else:
- self.artistLabel.set_label("Unknown artist")
+ self.artistLabel.set_label(_("Unknown Artist"))
url = media.get_url()
if url != self.player.get_value("current-uri", 0):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]