[dconf-editor] Some more translators comments.



commit ddd6d1695d7823c5a7703d2fe0bfd03efce9e705
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Tue Jan 8 10:43:04 2019 +0100

    Some more translators comments.
    
    Includes a hack, as most translations ignore the comment.

 editor/ca.desrt.dconf-editor.desktop.in |  4 +++-
 editor/registry-list.vala               |  1 +
 editor/setting-object.vala              | 10 ++++++++--
 3 files changed, 12 insertions(+), 3 deletions(-)
---
diff --git a/editor/ca.desrt.dconf-editor.desktop.in b/editor/ca.desrt.dconf-editor.desktop.in
index 4cea770..8b36812 100644
--- a/editor/ca.desrt.dconf-editor.desktop.in
+++ b/editor/ca.desrt.dconf-editor.desktop.in
@@ -1,8 +1,10 @@
 [Desktop Entry]
 Name=dconf Editor
+# Translators: a GenericName that gives the application goal, as defined in the desktop file spec
 GenericName=Configuration editor for dconf
+# Translators: a Comment that gives the application function, as defined in the desktop file spec
 Comment=Directly edit your entire configuration database
-# Translators: Search terms to find this application. Do NOT translate or localize the semicolons! The list 
MUST also end with a semicolon!
+# Translators: some search Keywords to find this application, as defined in the desktop file spec. Do NOT 
translate or localize the semicolons! The list MUST also end with a semicolon!
 Keywords=settings;configuration;
 Exec=dconf-editor
 Terminal=false
diff --git a/editor/registry-list.vala b/editor/registry-list.vala
index c6d4b8d..01473db 100644
--- a/editor/registry-list.vala
+++ b/editor/registry-list.vala
@@ -1197,6 +1197,7 @@ private abstract class RegistryList : Grid, BrowsableView, AdaptativeWidget
         }
         else if ((!) row_content is FilterListBoxRow)
         {
+            /* Translators: last header displayed in the keys list during a local search */
             label_text = _("Other actions");
         }
         else if (!((!) row_content is SearchListBoxRow))
diff --git a/editor/setting-object.vala b/editor/setting-object.vala
index c35366d..041ee1b 100644
--- a/editor/setting-object.vala
+++ b/editor/setting-object.vala
@@ -189,8 +189,14 @@ private abstract class Key : SettingObject
                 /* Translators: the boolean "false" value; non capitalized (if that makes sense) */
                 return _("false");
 
-            /* Translators: "nothing" value of a nullable key; non capitalized (if that makes sense); 
"nothing" here is a keyword that should appear for consistence, so please translate as "yourtranslation 
(nothing)" */
-            return _("nothing");
+
+            /* Translators: "nothing" value of a nullable key; non capitalized (if that makes sense); the %s 
is replaced by the text "nothing" (as a technical keyword); it isn't introduced with quotation marks around 
it, but you might want to add some, depending of your language typographic rules */
+            string nothing = _("nothing (%s)").printf ("nothing");
+            if (nothing != "nothing (nothing)")
+                return nothing;
+
+            /* Translators: "nothing" value of a nullable key; non capitalized (if that makes sense) */
+            return _("nothing");    // it has been asked to translate that as "atranslation (nothing)"
         }
     }
 


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