summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2013-07-11 18:50:13 +0200
committerEike Rathke <erack@redhat.com>2013-07-11 19:15:52 +0200
commit759d56352faf463bba11369f1a7be8bed3814f90 (patch)
tree16161aa41c599745a12518c867d0bf8a5638aa62 /svl
parent96a5c866a94590c993629013c41f00b7d496f70e (diff)
use LanguageTag to convert
Change-Id: I721f1018e6380a3102b6dd20052001b1e950421b
Diffstat (limited to 'svl')
-rw-r--r--svl/source/config/asiancfg.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/svl/source/config/asiancfg.cxx b/svl/source/config/asiancfg.cxx
index 99e36eb439eb..695f7623eb9e 100644
--- a/svl/source/config/asiancfg.cxx
+++ b/svl/source/config/asiancfg.cxx
@@ -105,10 +105,7 @@ css::uno::Sequence< css::lang::Locale > SvxAsianConfig::GetStartEndCharLocales()
getElementNames());
css::uno::Sequence< css::lang::Locale > ls(ns.getLength());
for (sal_Int32 i = 0; i < ns.getLength(); ++i) {
- sal_Int32 n = 0;
- ls[i].Language = ns[i].getToken(0, '-', n);
- ls[i].Country = ns[i].getToken(0, '-', n);
- ls[i].Variant = ns[i].getToken(0, '-', n);
+ ls[i] = LanguageTag( ns[i]).getLocale( false);
}
return ls;
}