[gnome-documents] embed: don't split a translatable string



commit 4cda0b3bfbec2484f26ecaae9e095ba2450dc180
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Thu Sep 13 14:22:05 2012 -0400

    embed: don't split a translatable string
    
    https://bugzilla.gnome.org/show_bug.cgi?id=683973

 src/embed.js |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/src/embed.js b/src/embed.js
index be12127..e348b2e 100644
--- a/src/embed.js
+++ b/src/embed.js
@@ -237,8 +237,16 @@ const EmptyResultsBox = new Lang.Class({
     },
 
     _addSystemSettingsLabel: function() {
-        let details = new Gtk.Label({ label: _("You can add your online accounts in") +
-                                      " <a href=\"system-settings\">" + _("System Settings") + "</a>",
+        let detailsStr =
+            // Translators: %s here is "System Settings", which is in a separate string
+            // due to markup, and should be translated only in the context of this sentence
+            _("You can add your online accounts in %s").format(
+            " <a href=\"system-settings\">" +
+            // Translators: this should be translated in the context of the
+            // "You can add your online accounts in System Settings" sentence above
+            _("System Settings") +
+            "</a>");
+        let details = new Gtk.Label({ label: detailsStr,
                                       use_markup: true,
                                       halign: Gtk.Align.START,
                                       xalign: 0,



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