[nautilus: 1/2] general: Provide translator context for "Sort"



commit 382d8e19b05a5d982faea15d9eec1ac281922c9a
Author: Rahul Verma <rv404674 gmail com>
Date:   Thu Jan 18 22:10:50 2018 +0530

    general: Provide translator context for "Sort"
    
    We are having an issue where "sort" was used in more than one context, so we require different 
translations.
    
    The solution is to split the strings and provide context to the translators
    
    Closes #151

 src/resources/ui/nautilus-preferences-window.ui | 2 +-
 src/resources/ui/nautilus-toolbar-view-menu.ui  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/resources/ui/nautilus-preferences-window.ui b/src/resources/ui/nautilus-preferences-window.ui
index 0000cc489..fc7c97758 100644
--- a/src/resources/ui/nautilus-preferences-window.ui
+++ b/src/resources/ui/nautilus-preferences-window.ui
@@ -41,7 +41,7 @@
                       <object class="GtkLabel" id="label6">
                         <property name="visible">True</property>
                         <property name="can_focus">False</property>
-                        <property name="label" translatable="yes">Sort</property>
+                        <property name="label" context="preferences" comments="Translators: a title in the 
preferences dialog with an option to sort folder before files &quot;Sort folders before files&quot;." 
translatable="yes">Sort</property>
                         <property name="xalign">0</property>
                         <attributes>
                           <attribute name="weight" value="PANGO_WEIGHT_BOLD"/>
diff --git a/src/resources/ui/nautilus-toolbar-view-menu.ui b/src/resources/ui/nautilus-toolbar-view-menu.ui
index 180ce595b..2aefd3bcd 100644
--- a/src/resources/ui/nautilus-toolbar-view-menu.ui
+++ b/src/resources/ui/nautilus-toolbar-view-menu.ui
@@ -95,7 +95,7 @@
           <object class="GtkLabel">
             <property name="visible">True</property>
             <property name="sensitive">False</property>
-            <property name="label" translatable="yes">Sort</property>
+            <property name="label" context="menu item" comments="Translators: a menu item in a group of 
sorting options in a toolbar menu, with criterions such as &quot;A-Z&quot; or &quot;Last Modified&quot;." 
translatable="yes">Sort</property>
             <property name="xalign">0</property>
             <style>
               <class name="nautilus-menu-sort-heading" />


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