[gnome-documents] view: Don't split string when it is misleading



commit 4414c065908ff3b59aa764ea05c42cdca90ff5be
Author: Alessandro Bono <abono gnome org>
Date:   Mon Feb 29 23:35:38 2016 +0100

    view: Don't split string when it is misleading

 src/view.js |   18 +++---------------
 1 files changed, 3 insertions(+), 15 deletions(-)
---
diff --git a/src/view.js b/src/view.js
index 84c41c5..f9d9b1d 100644
--- a/src/view.js
+++ b/src/view.js
@@ -297,21 +297,9 @@ const EmptyResultsBox = new Lang.Class({
         if (Application.application.isBooks)
             return;
 
-        let detailsStr =
-            // Translators: the %s's here are "Online Accounts" and "Documents folder", which are
-            // in a separate string due to markup, and should be translated only in the context of
-            // this sentence
-            _("Documents from your %s and %s will appear here.").format(
-            "<a href=\"system-settings\">" +
-            // Translators: this should be translated in the context of the
-            // "Documents from your Online Accounts and Documents folder will appear here." sentence above
-            _("Online Accounts") +
-            "</a>",
-            "<a href=\"file://"+ GLib.get_user_special_dir(GLib.UserDirectory.DIRECTORY_DOCUMENTS) + "\">" +
-            // Translators: this should be translated in the context of the
-            // "Documents from your Online Accounts and Documents folder will appear here." sentence above
-            _("Documents folder") +
-            "</a>");
+        let documentsPath = GLib.get_user_special_dir(GLib.UserDirectory.DIRECTORY_DOCUMENTS);
+        let detailsStr = _("Documents from your <a href=\"system-settings\">Online Accounts</a> and " +
+                           "<a href=\"file://%s\">Documents folder</a> will appear 
here.").format(documentsPath);
         let details = new Gtk.Label({ label: detailsStr,
                                       use_markup: true });
         this.add(details);


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