sw/Library_swui.mk | 1 + sw/source/ui/dbui/mmlayoutpage.cxx | 9 ++++++--- 2 files changed, 7 insertions(+), 3 deletions(-)
New commits: commit 35d99caff4c624285a246e7c76a2660205a1d715 Author: Caolán McNamara <caol...@redhat.com> Date: Tue Mar 18 16:34:22 2014 +0000 Related: #i56998# use locale rules to format percentage Change-Id: I9d27359fe2c343593455eebf69bca6efdb7c5079 diff --git a/sw/Library_swui.mk b/sw/Library_swui.mk index 6c7f355..af18cfe 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 1863263..8137662 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));
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits