summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-01-20 13:55:03 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-01-20 14:46:21 +0000
commitd33b4c311e3b9c0b8f50080cb38a31c19f587a16 (patch)
treebbb66c18dfe5dcdffbfa7d358d6a111bf8e5f518 /sd
parentc6c70c93461d5da4464ef38c8420b53ee609a4d1 (diff)
Related: #i56998# use locale rules to format percentage
Change-Id: I4b744cf10165383153d2a71c05df0c0ed327c641
Diffstat (limited to 'sd')
-rw-r--r--sd/CppunitTest_sd_uimpress.mk1
-rw-r--r--sd/Library_sd.mk1
-rw-r--r--sd/source/ui/animations/CustomAnimationDialog.cxx4
3 files changed, 5 insertions, 1 deletions
diff --git a/sd/CppunitTest_sd_uimpress.mk b/sd/CppunitTest_sd_uimpress.mk
index f232a917ce62..ad43f7ee0a4b 100644
--- a/sd/CppunitTest_sd_uimpress.mk
+++ b/sd/CppunitTest_sd_uimpress.mk
@@ -32,6 +32,7 @@ $(eval $(call gb_CppunitTest_use_libraries,sd_uimpress,\
drawinglayer \
editeng \
i18nlangtag \
+ i18nutil \
msfilter \
sal \
sax \
diff --git a/sd/Library_sd.mk b/sd/Library_sd.mk
index f9b69c9a2370..cb5ff9aa3f16 100644
--- a/sd/Library_sd.mk
+++ b/sd/Library_sd.mk
@@ -72,6 +72,7 @@ $(eval $(call gb_Library_use_libraries,sd,\
drawinglayer \
editeng \
i18nlangtag \
+ i18nutil \
msfilter \
oox \
sal \
diff --git a/sd/source/ui/animations/CustomAnimationDialog.cxx b/sd/source/ui/animations/CustomAnimationDialog.cxx
index 7c3677d9438b..86a7304ae568 100644
--- a/sd/source/ui/animations/CustomAnimationDialog.cxx
+++ b/sd/source/ui/animations/CustomAnimationDialog.cxx
@@ -35,6 +35,7 @@
#include <boost/shared_ptr.hpp>
#include <comphelper/processfactory.hxx>
+#include <i18nutil/unicode.hxx>
#include <unotools/pathoptions.hxx>
#include <vcl/tabctrl.hxx>
#include <vcl/tabpage.hxx>
@@ -566,7 +567,8 @@ TransparencyPropertyBox::TransparencyPropertyBox( sal_Int32 nControlType, Window
mpMenu = new PopupMenu();
for( sal_Int32 i = 25; i < 101; i += 25 )
{
- OUString aStr(OUString::number(i) + "%");
+ OUString aStr(unicode::formatPercent(i,
+ Application::GetSettings().GetUILanguageTag()));
mpMenu->InsertItem( i, aStr );
}