diff options
author | Andras Timar <atimar@suse.com> | 2013-01-15 10:35:20 +0100 |
---|---|---|
committer | Andras Timar <atimar@suse.com> | 2013-01-15 10:36:48 +0100 |
commit | 1e1b1687c8518f6d1c7ee77b18d464ac1c00852b (patch) | |
tree | 840d79cfea24fc874c941b922b8c0a44f8c0ce47 /svtools/source/misc | |
parent | fdo#46808, fixes for windows build (diff) | |
download | core-1e1b1687c8518f6d1c7ee77b18d464ac1c00852b.tar.gz core-1e1b1687c8518f6d1c7ee77b18d464ac1c00852b.zip |
fdo#59158 About dialog Website button link fix for zh-CN and zh-TW
Change-Id: I85007bf689bb6c7119a4971f0bd925beccb8bd30
Diffstat (limited to 'svtools/source/misc')
-rw-r--r-- | svtools/source/misc/langhelp.cxx | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/svtools/source/misc/langhelp.cxx b/svtools/source/misc/langhelp.cxx index e4168a8907b2..e8827cdaffa7 100644 --- a/svtools/source/misc/langhelp.cxx +++ b/svtools/source/misc/langhelp.cxx @@ -30,13 +30,20 @@ #include <vcl/svapp.hxx> #include <rtl/ustring.hxx> -void localizeWebserviceURI( ::rtl::OUString& rURI ) +void localizeWebserviceURI( OUString& rURI ) { - ::rtl::OUString aLang = Application::GetSettings().GetUILanguageTag().getLanguage(); - if ( aLang.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("pt")) - && Application::GetSettings().GetUILanguageTag().getCountry().equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("br")) ) + OUString aLang = Application::GetSettings().GetUILanguageTag().getLanguage(); + if ( aLang.equalsIgnoreAsciiCase("pt") + && Application::GetSettings().GetUILanguageTag().getCountry().equalsIgnoreAsciiCase("br") ) { - aLang = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "pt-br" )); + aLang = OUString("pt-br"); + } + if ( aLang.equalsIgnoreAsciiCase("zh") ) + { + if ( Application::GetSettings().GetUILanguageTag().getCountry().equalsIgnoreAsciiCase("cn") ) + aLang = OUString("zh-cn"); + if ( Application::GetSettings().GetUILanguageTag().getCountry().equalsIgnoreAsciiCase("tw") ) + aLang = OUString("zh-tw"); } rURI += aLang; |