summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-03-18 16:34:22 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-03-18 16:39:15 +0000
commit35d99caff4c624285a246e7c76a2660205a1d715 (patch)
treecc2f34b862c33fba7df0b23cf72e2c77d296a068 /sw
parent28e68298a40c02b47ccaa602a464ddf12ddbe3cd (diff)
Related: #i56998# use locale rules to format percentage
Change-Id: I9d27359fe2c343593455eebf69bca6efdb7c5079
Diffstat (limited to 'sw')
-rw-r--r--sw/Library_swui.mk1
-rw-r--r--sw/source/ui/dbui/mmlayoutpage.cxx9
2 files changed, 7 insertions, 3 deletions
diff --git a/sw/Library_swui.mk b/sw/Library_swui.mk
index 6c7f3559126c..af18cfe8f1f7 100644
--- a/sw/Library_swui.mk
+++ b/sw/Library_swui.mk
@@ -48,6 +48,7 @@ $(eval $(call gb_Library_use_libraries,swui,\
cppuhelper \
editeng \
i18nlangtag \
+ i18nutil \
msfilter \
sal \
sfx \
diff --git a/sw/source/ui/dbui/mmlayoutpage.cxx b/sw/source/ui/dbui/mmlayoutpage.cxx
index 186326392739..813766220782 100644
--- a/sw/source/ui/dbui/mmlayoutpage.cxx
+++ b/sw/source/ui/dbui/mmlayoutpage.cxx
@@ -24,6 +24,7 @@
#include <mailmergehelper.hxx>
#include <unotools.hxx>
#include <comphelper/string.hxx>
+#include <i18nutil/unicode.hxx>
#include <unotools/tempfile.hxx>
#include <uitool.hxx>
#include <svx/dlgutil.hxx>
@@ -51,6 +52,7 @@
#include <svl/urihelper.hxx>
#include <shellio.hxx>
#include <osl/file.hxx>
+#include <vcl/settings.hxx>
#include <unoprnms.hxx>
#include <mmlayoutpage.hrc>
@@ -126,9 +128,10 @@ SwMailMergeLayoutPage::SwMailMergeLayoutPage( SwMailMergeWizard* _pParent) :
m_pLeftMF->SetValue(m_pLeftMF->Normalize(DEFAULT_LEFT_DISTANCE), FUNIT_TWIP);
m_pTopMF->SetValue(m_pTopMF->Normalize(DEFAULT_TOP_DISTANCE), FUNIT_TWIP);
- m_pZoomLB->InsertEntry(OUString("50 %"), 1);
- m_pZoomLB->InsertEntry(OUString("75 %"), 2);
- m_pZoomLB->InsertEntry(OUString("100 %"), 3);
+ const LanguageTag& rLang = Application::GetSettings().GetUILanguageTag();
+ m_pZoomLB->InsertEntry(unicode::formatPercent(50, rLang), 1);
+ m_pZoomLB->InsertEntry(unicode::formatPercent(75, rLang), 2);
+ m_pZoomLB->InsertEntry(unicode::formatPercent(100, rLang), 3);
m_pZoomLB->SelectEntryPos(0); //page size
m_pZoomLB->SetSelectHdl(LINK(this, SwMailMergeLayoutPage, ZoomHdl_Impl));