diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-06-19 13:48:45 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-06-19 14:11:50 +0100 |
commit | d9e4c74811855de15f1bf2045c2c9b061a2d4dc6 (patch) | |
tree | 895cbcd595094e9fd2621a943fc83bb004b429c9 /editeng | |
parent | 2a598619d7fbc992f1903a745fd536ddf5e45c81 (diff) |
merge together hand-crafted traditional/simplified chinese tests
merge together a gadzillion hand-crafted
isSimpleChinese/isTraditionalChinese/isKoreanVariants/isCJK
implementations which should fix a goodly amount of them
add a MsLangId::isFamilyNameFirst for locales where
family name appears first while I'm at it.
Change-Id: I65377793be037d16fe7250cd7450b28aec689e83
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/inc/editeng/hangulhanja.hxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/editeng/inc/editeng/hangulhanja.hxx b/editeng/inc/editeng/hangulhanja.hxx index b952530158c7..0b10bd52ae16 100644 --- a/editeng/inc/editeng/hangulhanja.hxx +++ b/editeng/inc/editeng/hangulhanja.hxx @@ -34,6 +34,7 @@ #include <com/sun/star/lang/Locale.hpp> #include <com/sun/star/uno/Sequence.hxx> #include "editeng/editengdllapi.h" +#include <i18npool/mslangid.hxx> //............................................................................. namespace editeng @@ -275,20 +276,17 @@ namespace editeng sal_Bool HangulHanjaConversion::IsSimplified( LanguageType nLang ) { - return nLang == LANGUAGE_CHINESE_SIMPLIFIED || - nLang == LANGUAGE_CHINESE_SINGAPORE; + return MsLangId::isSimplifiedChinese(nLang); } sal_Bool HangulHanjaConversion::IsTraditional( LanguageType nLang ) { - return nLang == LANGUAGE_CHINESE_TRADITIONAL || - nLang == LANGUAGE_CHINESE_HONGKONG || - nLang == LANGUAGE_CHINESE_MACAU; + return MsLangId::isTraditionalChinese(nLang); } sal_Bool HangulHanjaConversion::IsChinese( LanguageType nLang ) { - return IsTraditional( nLang ) || IsSimplified( nLang ); + return MsLangId::isChinese(nLang); } //............................................................................. } // namespace svx |