diff options
author | Eike Rathke <erack@redhat.com> | 2013-10-24 01:47:25 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2013-10-24 01:54:59 +0200 |
commit | 6b678c135da07f34da1bf7b19562366361e95085 (patch) | |
tree | 70661894df40cf42f1f0278d4e2fb9d1bea29c8f /vcl/source/gdi/sallayout.cxx | |
parent | 315a0e277ab929ab77bb6ecd761abb24af0beb8b (diff) |
added/checked/aligned MS-LangIDs and mappings from new MS-LCID.pdf
... found at http://msdn.microsoft.com/library/cc233965.aspx (the 5th or
6th place I'm aware of where MS defines LCIDs, all different ...)
* a bunch of new definitions up to Windows 8.1
* lots of cross-checks done with SIL, Ethnologue, ...
Change-Id: Ifae8e676558c6712fe752856acca600d05d0a63f
Diffstat (limited to 'vcl/source/gdi/sallayout.cxx')
-rw-r--r-- | vcl/source/gdi/sallayout.cxx | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/vcl/source/gdi/sallayout.cxx b/vcl/source/gdi/sallayout.cxx index fe01037931b8..f395936b34d7 100644 --- a/vcl/source/gdi/sallayout.cxx +++ b/vcl/source/gdi/sallayout.cxx @@ -287,11 +287,18 @@ VCL_DLLPUBLIC sal_UCS4 GetLocalizedChar( sal_UCS4 nChar, LanguageType eLang ) case LANGUAGE_MALAYALAM & LANGUAGE_MASK_PRIMARY: nOffset = 0x0D66 - '0'; // malayalam break; - case LANGUAGE_MONGOLIAN & LANGUAGE_MASK_PRIMARY: - if (eLang == LANGUAGE_MONGOLIAN_MONGOLIAN) - nOffset = 0x1810 - '0'; // mongolian - else - nOffset = 0; // mongolian cyrillic + case LANGUAGE_MONGOLIAN_MONGOLIAN_LSO & LANGUAGE_MASK_PRIMARY: + switch (eLang) + { + case LANGUAGE_MONGOLIAN_MONGOLIAN_MONGOLIA: + case LANGUAGE_MONGOLIAN_MONGOLIAN_CHINA: + case LANGUAGE_MONGOLIAN_MONGOLIAN_LSO: + nOffset = 0x1810 - '0'; // mongolian + break; + default: + nOffset = 0; // mongolian cyrillic + break; + } break; case LANGUAGE_BURMESE & LANGUAGE_MASK_PRIMARY: nOffset = 0x1040 - '0'; // myanmar |