diff options
Diffstat (limited to 'lingucomponent')
-rw-r--r-- | lingucomponent/source/numbertext/numbertext.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lingucomponent/source/numbertext/numbertext.cxx b/lingucomponent/source/numbertext/numbertext.cxx index 006e99d30aed..bc13530d5250 100644 --- a/lingucomponent/source/numbertext/numbertext.cxx +++ b/lingucomponent/source/numbertext/numbertext.cxx @@ -138,6 +138,9 @@ OUString SAL_CALL NumberText_Impl::getNumberText(const OUString& rText, const Lo LanguageTag aLanguageTag(rLocale); OUString aCode(aLanguageTag.getLanguage()); OUString aCountry(aLanguageTag.getCountry()); + OUString aScript(aLanguageTag.getScript()); + if (!aScript.isEmpty()) + aCode += "-" + aScript; if (!aCountry.isEmpty()) aCode += "-" + aCountry; OString aLangCode(OUStringToOString(aCode, RTL_TEXTENCODING_ASCII_US)); |