summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorMuhammet Kara <muhammet.kara@pardus.org.tr>2018-11-09 13:20:05 +0300
committerMuhammet Kara <muhammet.kara@pardus.org.tr>2018-11-09 12:35:33 +0100
commit69103eaab126ca785d248b611ad4f8ed7b6b1403 (patch)
tree8bf6f4a4799aa2ce87a74891934a50be83e6f448 /cui
parentd5acb9a30fcb3b9c799bb68d9ca400c89a655724 (diff)
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.kara@pardus.org.tr>
Diffstat (limited to 'cui')
-rw-r--r--cui/source/dialogs/cuigaldlg.cxx4
-rw-r--r--cui/uiconfig/ui/gallerythemedialog.ui55
2 files changed, 55 insertions, 4 deletions
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>