[rhythmbox] Fix translator comments



commit 72c10b76cd22624fc0c252a187b196c16ee20ff4
Author: Piotr Drąg <piotrdrag gmail com>
Date:   Sat Jan 28 01:47:40 2017 +0100

    Fix translator comments
    
    They need to be exactly one line above a string to show up in .po files.

 backends/gstreamer/rb-player-gst-xfade.c           |    2 +-
 backends/gstreamer/rb-player-gst.c                 |    2 +-
 .../rb-audioscrobbler-radio-source.c               |    6 +++---
 sources/rb-play-queue-source.c                     |    2 +-
 4 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/backends/gstreamer/rb-player-gst-xfade.c b/backends/gstreamer/rb-player-gst-xfade.c
index 20e69a7..2960e20 100644
--- a/backends/gstreamer/rb-player-gst-xfade.c
+++ b/backends/gstreamer/rb-player-gst-xfade.c
@@ -2985,10 +2985,10 @@ start_sink_locked (RBPlayerGstXFade *player, GList **messages, GError **error)
                                        g_free (debug);
 
                                        if (error != NULL && *error == NULL) {
-                                               /* Translators: the parameter here is an error message */
                                                g_set_error (error,
                                                             RB_PLAYER_ERROR,
                                                             RB_PLAYER_ERROR_INTERNAL,          /* ? */
+                                                            /* Translators: the parameter here is an error 
message */
                                                             _("Failed to open output device: %s"),
                                                             gst_error->message);
                                        }
diff --git a/backends/gstreamer/rb-player-gst.c b/backends/gstreamer/rb-player-gst.c
index 1590b70..01d915e 100644
--- a/backends/gstreamer/rb-player-gst.c
+++ b/backends/gstreamer/rb-player-gst.c
@@ -513,10 +513,10 @@ bus_cb (GstBus *bus, GstMessage *message, RBPlayerGst *mp)
                if (emit) {
                        if (message_from_sink (mp->priv->audio_sink, message)) {
                                rb_debug ("got error from sink: %s (%s)", error->message, debug);
-                               /* Translators: the parameter here is an error message */
                                g_set_error (&sig_error,
                                             RB_PLAYER_ERROR,
                                             code,
+                                            /* Translators: the parameter here is an error message */
                                             _("Failed to open output device: %s"),
                                             error->message);
                        } else {
diff --git a/plugins/audioscrobbler/rb-audioscrobbler-radio-source.c 
b/plugins/audioscrobbler/rb-audioscrobbler-radio-source.c
index 87f9a70..42eacc0 100644
--- a/plugins/audioscrobbler/rb-audioscrobbler-radio-source.c
+++ b/plugins/audioscrobbler/rb-audioscrobbler-radio-source.c
@@ -114,11 +114,11 @@ rb_audioscrobbler_radio_type_get_url (RBAudioscrobblerRadioType type)
        return radio_urls[type];
 }
 
-/* Translators: I have chosen these names for the radio stations based upon
- * what last.fm's website uses or what I thought to be sensible.
- */
 static const char* radio_names[] = {
 
+       /* Translators: I have chosen these names for the radio stations based upon
+        * what last.fm's website uses or what I thought to be sensible.
+        */
        /* Translators: station is built from artists similar to the artist %s */
        N_("%s Radio"),
        /* Translators: station is built from the artist %s's top fans */
diff --git a/sources/rb-play-queue-source.c b/sources/rb-play-queue-source.c
index b8abb00..677e40a 100644
--- a/sources/rb-play-queue-source.c
+++ b/sources/rb-play-queue-source.c
@@ -477,8 +477,8 @@ rb_play_queue_source_track_info_cell_data_func (GtkTreeViewColumn *column,
        artist = rhythmdb_entry_get_string (entry, RHYTHMDB_PROP_ARTIST);
        album = rhythmdb_entry_get_string (entry, RHYTHMDB_PROP_ALBUM);
 
-       /* Translators: format is "<title> by <artist> from <album>" */
        markup = g_markup_printf_escaped ("%s\n<span size=\"smaller\">%s <i>%s</i>\n%s <i>%s</i></span>",
+                                         /* Translators: format is "<title> by <artist> from <album>" */
                                          title, _("by"), artist, _("from"), album);
 
        g_object_set (G_OBJECT (renderer), "markup", markup, NULL);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]