[nautilus] Fix ui files to work for translations



commit 2b4447dfaed223eceb3d1c613f5c76f76aa26114
Author: Maximiliano Sandoval R <msandova protonmail com>
Date:   Sat Jun 4 12:20:16 2022 +0200

    Fix ui files to work for translations
    
    See https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/4784 and
    https://gitlab.gnome.org/GNOME/gtk/-/issues/4596.

 src/gtk/nautilusgtkplacesview.ui    | 22 +++++++++++-----------
 src/gtk/nautilusgtkplacesviewrow.ui |  2 +-
 2 files changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/src/gtk/nautilusgtkplacesview.ui b/src/gtk/nautilusgtkplacesview.ui
index a7d5bdf21..abf6c45ed 100644
--- a/src/gtk/nautilusgtkplacesview.ui
+++ b/src/gtk/nautilusgtkplacesview.ui
@@ -25,7 +25,7 @@
         <child>
           <object class="GtkLabel">
             <property name="hexpand">1</property>
-            <property name="label" translatable="1">Server Addresses</property>
+            <property name="label" translatable="yes">Server Addresses</property>
             <attributes>
               <attribute name="weight" value="bold"></attribute>
             </attributes>
@@ -37,7 +37,7 @@
         <child>
           <object class="GtkLabel">
             <property name="hexpand">1</property>
-            <property name="label" translatable="1">Server addresses are made up of a protocol prefix and an 
address. Examples:</property>
+            <property name="label" translatable="yes">Server addresses are made up of a protocol prefix and 
an address. Examples:</property>
             <property name="wrap">1</property>
             <property name="width-chars">40</property>
             <property name="max-width-chars">40</property>
@@ -63,7 +63,7 @@
             <child>
               <object class="GtkLabel">
                 <property name="hexpand">1</property>
-                <property name="label" translatable="1">Available Protocols</property>
+                <property name="label" translatable="yes">Available Protocols</property>
                 <property name="xalign">0</property>
                 <attributes>
                   <attribute name="weight" value="bold"></attribute>
@@ -76,7 +76,7 @@
             </child>
             <child>
               <object class="GtkLabel">
-                <property name="label" translatable="1">Prefix</property>
+                <property name="label" translatable="yes">Prefix</property>
                 <property name="xalign">0</property>
                 <attributes>
                   <attribute name="weight" value="bold"></attribute>
@@ -115,7 +115,7 @@
                 </child>
                 <child>
                   <object class="GtkLabel">
-                    <property name="label" translatable="1" comments="Translators: Server as any 
successfully connected network address">No recent servers found</property>
+                    <property name="label" translatable="yes" comments="Translators: Server as any 
successfully connected network address">No recent servers found</property>
                     <style>
                       <class name="dim-label"/>
                     </style>
@@ -138,7 +138,7 @@
                 <property name="margin-bottom">12</property>
                 <child>
                   <object class="GtkLabel">
-                    <property name="label" translatable="1">Recent Servers</property>
+                    <property name="label" translatable="yes">Recent Servers</property>
                     <attributes>
                       <attribute name="weight" value="bold"></attribute>
                     </attributes>
@@ -218,7 +218,7 @@
                 </child>
                 <child>
                   <object class="GtkLabel">
-                    <property name="label" translatable="1">No results found</property>
+                    <property name="label" translatable="yes">No results found</property>
                     <attributes>
                       <attribute name="weight" value="bold"></attribute>
                       <attribute name="scale" value="1.44"></attribute>
@@ -227,7 +227,7 @@
                 </child>
                 <child>
                   <object class="GtkLabel">
-                    <property name="label" translatable="1">Try a different search</property>
+                    <property name="label" translatable="yes">Try a different search</property>
                     <style>
                       <class name="dim-label"/>
                     </style>
@@ -249,7 +249,7 @@
           <object class="GtkLabel">
             <property name="hexpand">1</property>
             <property name="xalign">0</property>
-            <property name="label" translatable="1">Connect to _Server</property>
+            <property name="label" translatable="yes">Connect to _Server</property>
             <property name="mnemonic-widget">address_entry</property>
             <property name="use-underline">1</property>
             <attributes>
@@ -259,7 +259,7 @@
         </child>
         <child type="end">
           <object class="GtkButton" id="connect_button">
-            <property name="label" translatable="1">Con_nect</property>
+            <property name="label" translatable="yes">Con_nect</property>
             <property name="use-underline">1</property>
             <property name="sensitive">0</property>
             <property name="receives-default">1</property>
@@ -274,7 +274,7 @@
               <object class="GtkEntry" id="address_entry">
                 <property name="hexpand">1</property>
                 <property name="width-chars">20</property>
-                <property name="placeholder-text" translatable="1">Enter server address…</property>
+                <property name="placeholder-text" translatable="yes">Enter server address…</property>
                 <property name="secondary-icon-name">dialog-question-symbolic</property>
                 <property name="completion">address_entry_completion</property>
                 <signal name="notify::text" handler="on_address_entry_text_changed" 
object="NautilusGtkPlacesView" swapped="yes"/>
diff --git a/src/gtk/nautilusgtkplacesviewrow.ui b/src/gtk/nautilusgtkplacesviewrow.ui
index 231d65975..06c804147 100644
--- a/src/gtk/nautilusgtkplacesviewrow.ui
+++ b/src/gtk/nautilusgtkplacesviewrow.ui
@@ -50,7 +50,7 @@
                     <property name="visible">0</property>
                     <property name="halign">3</property>
                     <property name="valign">3</property>
-                    <property name="tooltip-text" translatable="1">Unmount</property>
+                    <property name="tooltip-text" translatable="yes">Unmount</property>
                     <child>
                       <object class="GtkImage" id="eject_icon">
                         <property name="icon-name">media-eject-symbolic</property>


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