cui/source/dialogs/cuigaldlg.cxx      |    4 +-
 cui/uiconfig/ui/gallerythemedialog.ui |   55 ++++++++++++++++++++++++++++++++--
 2 files changed, 55 insertions(+), 4 deletions(-)

New commits:
commit 69103eaab126ca785d248b611ad4f8ed7b6b1403
Author:     Muhammet Kara <muhammet.k...@pardus.org.tr>
AuthorDate: Fri Nov 9 13:20:05 2018 +0300
Commit:     Muhammet Kara <muhammet.k...@pardus.org.tr>
CommitDate: Fri Nov 9 12:35:33 2018 +0100

    tdf#121294: Allow better localization of gallery properties dialog title
    
    Change-Id: I0ebd1c19a4dfd566f027eb937a2793068a45f913
    Reviewed-on: https://gerrit.libreoffice.org/63165
    Tested-by: Jenkins
    Reviewed-by: Muhammet Kara <muhammet.k...@pardus.org.tr>

diff --git a/cui/source/dialogs/cuigaldlg.cxx b/cui/source/dialogs/cuigaldlg.cxx
index c6cdada72e37..79ef64c25f75 100644
--- a/cui/source/dialogs/cuigaldlg.cxx
+++ b/cui/source/dialogs/cuigaldlg.cxx
@@ -562,10 +562,10 @@ 
GalleryThemeProperties::GalleryThemeProperties(vcl::Window* pParent,
     if( pData->pTheme->IsReadOnly() )
         RemoveTabPage(nFilesPageId);
 
-    OUString aText = GetText() + pData->pTheme->GetName();
+    OUString aText = GetText().replaceFirst( "%1",  pData->pTheme->GetName() );
 
     if( pData->pTheme->IsReadOnly() )
-        aText +=  CuiResId( RID_SVXSTR_GALLERY_READONLY );
+        aText +=  " " + CuiResId( RID_SVXSTR_GALLERY_READONLY );
 
     SetText( aText );
 }
diff --git a/cui/uiconfig/ui/gallerythemedialog.ui 
b/cui/uiconfig/ui/gallerythemedialog.ui
index 83110dab3a4c..35e86c9a6ee5 100644
--- a/cui/uiconfig/ui/gallerythemedialog.ui
+++ b/cui/uiconfig/ui/gallerythemedialog.ui
@@ -1,13 +1,16 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!-- Generated with glade 3.20.0 -->
+<!-- Generated with glade 3.22.1 -->
 <interface domain="cui">
   <requires lib="gtk+" version="3.18"/>
   <object class="GtkDialog" id="GalleryThemeDialog">
     <property name="can_focus">False</property>
     <property name="border_width">6</property>
-    <property name="title" translatable="yes" 
context="gallerythemedialog|GalleryThemeDialog">Properties of </property>
+    <property name="title" translatable="yes" 
context="gallerythemedialog|GalleryThemeDialog" comments="%1 will be replaced 
by a gallery theme name">Properties of %1</property>
     <property name="resizable">False</property>
     <property name="type_hint">dialog</property>
+    <child>
+      <placeholder/>
+    </child>
     <child internal-child="vbox">
       <object class="GtkBox" id="dialog-vbox1">
         <property name="can_focus">False</property>
@@ -99,6 +102,30 @@
                 <child>
                   <placeholder/>
                 </child>
+                <child>
+                  <placeholder/>
+                </child>
+                <child>
+                  <placeholder/>
+                </child>
+                <child>
+                  <placeholder/>
+                </child>
+                <child>
+                  <placeholder/>
+                </child>
+                <child>
+                  <placeholder/>
+                </child>
+                <child>
+                  <placeholder/>
+                </child>
+                <child>
+                  <placeholder/>
+                </child>
+                <child>
+                  <placeholder/>
+                </child>
               </object>
             </child>
             <child type="tab">
@@ -118,6 +145,30 @@
                 <child>
                   <placeholder/>
                 </child>
+                <child>
+                  <placeholder/>
+                </child>
+                <child>
+                  <placeholder/>
+                </child>
+                <child>
+                  <placeholder/>
+                </child>
+                <child>
+                  <placeholder/>
+                </child>
+                <child>
+                  <placeholder/>
+                </child>
+                <child>
+                  <placeholder/>
+                </child>
+                <child>
+                  <placeholder/>
+                </child>
+                <child>
+                  <placeholder/>
+                </child>
               </object>
               <packing>
                 <property name="position">1</property>
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to