diff options
author | Arul <arul71.m@gmail.com> | 2016-01-05 15:41:26 +0530 |
---|---|---|
committer | Ashod Nakashian <ashnakash@gmail.com> | 2016-01-05 13:44:53 +0000 |
commit | 804e2403cd077a069372ead548fa6a5c593db1f6 (patch) | |
tree | 82fc21d50e26e373f526b385f9f407287fc863ce /sfx2/source | |
parent | fbec6ac08999a36664571dc0b1eba3ba251a5984 (diff) |
tdf#91065 Support localization of Properties dialog title
Having a place holder for substituting the file name instead of concatenating it in
Properties dialogue title.
Change-Id: I8b3bafbc95c857fa5957bfdafbded5dde94e0e64
Reviewed-on: https://gerrit.libreoffice.org/21107
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
Diffstat (limited to 'sfx2/source')
-rw-r--r-- | sfx2/source/dialog/dinfdlg.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sfx2/source/dialog/dinfdlg.cxx b/sfx2/source/dialog/dinfdlg.cxx index 0cb152f50b3a..75e03a572fb0 100644 --- a/sfx2/source/dialog/dinfdlg.cxx +++ b/sfx2/source/dialog/dinfdlg.cxx @@ -1208,18 +1208,18 @@ SfxDocumentInfoDialog::SfxDocumentInfoDialog( vcl::Window* pParent, { OUString aLastName( aURL.GetLastName() ); if ( !aLastName.isEmpty() ) - aTitle += aLastName; + aTitle = aTitle.replaceFirst("%1", aLastName); else - aTitle += aFile; + aTitle = aTitle.replaceFirst("%1", aFile); } else - aTitle += SfxResId( STR_NONAME ).toString(); + aTitle = aTitle.replaceFirst("%1", SfxResId( STR_NONAME ).toString()); } else { DBG_ASSERT( dynamic_cast<const SfxStringItem *>(pItem) != nullptr, "SfxDocumentInfoDialog:<SfxStringItem> expected" ); - aTitle += static_cast<const SfxStringItem*>(pItem)->GetValue(); + aTitle = aTitle.replaceFirst("%1", static_cast<const SfxStringItem*>(pItem)->GetValue()); } SetText( aTitle ); |