Commit Graph

36 Commits

Author SHA1 Message Date
a31f53d058 add unit test for LanguageTag::isValidBcp47() with bDisallowPrivate
Change-Id: I58089bc00c640bb1d8461d8f482ad623f9566e76
2014-06-03 14:48:46 +02:00
b8e8c9c471 add unit test for static isValidBcp47() method
Change-Id: Ib234fb1d14087236d337dfe351aea941945e718c
2014-05-21 14:15:24 +02:00
2803e5c1e7 document why the test fails and is disabled
Change-Id: I17bb169f14d225b970014ab26a7f1d9d0d1b0af8
2014-04-05 22:12:28 +02:00
73c70f28ba disable build breaker test
Change-Id: I78f3cf06bee431ccfc72a2ecea48383f023488ea
2014-04-05 20:48:07 +02:00
1d6fd96df7 framework: prefer passing OUString by reference
Change-Id: I23c2ac9ef6bfc3eedb8ad6cb199c12d42ed642c8
2014-03-17 13:30:53 +02:00
6a826ddc4e cleaned up ISO code usage for Kurdish, fdo#63460
* instead of the 'ku' macrolanguage code use proper ISO 639-3 codes and
  use 'Latn' script with 'kmr'
* use MS-LCID 0x0492 for Central Kurdish (Iraq) [ckb-IQ]
* added Southern Kurdish (Iraq) [sdh-IQ]

Change-Id: Iaee8be98d0659a0e7bbf041e60025dd1f771066f
2013-11-18 21:19:44 +01:00
5dc2e3a10a assume 'ha-*' was indeed used as 'ha-Latn-*'
Change-Id: I5675bf4ee3d255725c1fda2bdd223d7c9d821ab3
2013-10-29 02:13:25 +01:00
116a888b43 override 'yi-Hebr-*' with 'yi-*' as Hebr is suppress-script
Change-Id: Iaae25a7d517404fc9c8186fd1006f9a4af82f584
2013-10-25 20:27:03 +02:00
aaba61ba1f override 'sr-Cyrl*' with 'sr*'
which is what we so far always used, though Cyrl is not suppress-script
and would be correct, but it's primary usage.

Change-Id: If7ce7dfcc6b4cc07c503dd2ff2c2bbe2c55c9338
2013-10-25 20:13:26 +02:00
8697b72ef8 Sindhi 'sd-PK' => 'sd-Arab-PK'
Change-Id: I418a991f4555a411ea05237010f64b03552affe5
2013-10-25 19:39:11 +02:00
fed7a57fcd more flexible language tag override mechanism
* allow overriding higher level lll-Ssss-CC with lower level lll-CC for
  known MS-LangID mappings that use tags with suppress-script
* internal override "canonicalization", e.g. ca-XV => ca-ES-valencia

Change-Id: I067d7515fb9144a896697617ad1b079e294f1ced
2013-10-25 17:58:11 +02:00
6b678c135d 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
2013-10-24 01:54:59 +02:00
c450aafad0 solve the 'dz' vs 'bo' and 'nn', 'nb' and 'nn' share primary ID cases
Change-Id: I7ccead4493c9848b55f642c2636daa3c60aeb7a6
2013-10-17 18:36:05 +02:00
79fc6b82b7 for unmapped language-only register primary language ID if available
... instead of an on-the-fly ID

Change-Id: I5cb38e91b67d02f0ccda90feb2ad0c60cd3765c5
2013-10-12 15:08:59 +02:00
c640f19ca3 now with on-the-fly LangID assignment
Change-Id: I0766705191176381beaf331de3d10dfc0086a9b4
2013-09-20 18:31:06 +02:00
3f3e73bd38 second wave to register tags
Change-Id: If71d7bdbe590b66e3642e8815a536482c67dd7c0
2013-09-20 00:59:33 +02:00
f864044506 'de-1901' is a valid fallback, 'en-oed' is not
Change-Id: I73b821eaff82796080ce123e37466ec53c327141
2013-09-19 13:38:32 +02:00
99899543ee accept (DIGIT 3*ALNUM) variant in place of (4*ALPHA) script
Change-Id: If622619bd2e282ab8298ac8a29f8bb57a8fe968f
2013-09-19 13:08:29 +02:00
1ecd1985b1 added 'en-GB-oed' for "English, OED spelling (UK)"
Change-Id: Ia51a8503213997ea589f2df79552ef765ecfc748
2013-09-13 21:47:12 +02:00
bc3759f2db include legacy tags in fallback strings
Change-Id: Ice3f4f061b1ae84d2d486e908399550770d5170a
2013-09-12 15:35:09 +02:00
b6cd9d8d50 changed all 'sh' language to 'sr-Latn'
Change-Id: Iafadaea87501bc3675eaf2856b5050a7e3ecaa37
2013-09-10 23:22:25 +02:00
e4c204bdbf added ca-ES-valencia fallback to ca-XV fallback strings
Change-Id: Iedc5924cf5100a2e7d014be68dc4897d3c0e76a0
2013-09-10 23:04:37 +02:00
c9489f68e8 added overrides for fallbacks of legacy codes
Change-Id: I62be84904b3f0f4beeda35e78906604090eefa86
2013-09-10 23:04:36 +02:00
7dc7d77cd0 include language-only in ISO-only fallback strings
Change-Id: I6da1b2b46c724c72bff3b1ee9739f2625a0321c2
2013-09-10 19:25:27 +02:00
e13fd39593 getFallbackStrings() with bIncludeFullBcp47 parameter
so the various places that check the full tag first do not have to get
it just to delete it again.

Change-Id: Ib4e3cf1b16988464db875f1b6ac5cf4a0ab60fe5
2013-09-05 16:51:28 +02:00
8d4cd07515 renamed ca-XV to ca-valencia and activated ca-ES-valencia, fdo#59867 related
Build Catalan-Valencian as ca-valencia instead of ca-XV private-use.

Introduced LANGUAGE_CATALAN_VALENCIAN 0x0803 mapping to ca-ES-valencia,
preserving old ca-XV and qcv-ES mappings to now
LANGUAGE_CATALAN_VALENCIAN and LANGUAGE_OBSOLETE_USER_CATALAN_VALENCIAN
0x8003 to ca-ES-valencia.

Removed special !bUserInterfaceSelection treatment from
MsLangId::getReplacementForObsoleteLanguage() and added the usual
obsolete replacement instead.

Change-Id: I2fdd8b0bac55d4b4ae2cbf3c3645f09fefec9b6e
2013-09-04 12:27:10 +02:00
9b98e25ce1 handle variants in replacement code
Change-Id: I57da3bcd415c060b1e785e0d1cf3966de819c196
2013-08-29 17:32:41 +02:00
71902872bf implemented missing replacement bits for Android build
Change-Id: I7492cb80f37dc99b3b4a16d2d812c9e301a1a4a7
2013-08-29 14:07:30 +02:00
f17232c2c5 added makeFallback() checks to unit test
Change-Id: I1851e4eb821d1230df7268378c786d55a8652f9d
2013-08-28 19:21:58 +02:00
2c00c8fb5a again match some copy&paste names
Change-Id: Iddfe959568f73f71827d9c1c651087ec93cbc941
2013-08-28 19:21:58 +02:00
b5f91618d7 added unit test for ca-valencia
Change-Id: I2a36296e1210e349a7b53d999a2438aa45f3e2c2
2013-08-28 17:58:15 +02:00
4a6ac8965b added unit test for fallback strings
Change-Id: Ife3694e9432141e638d8f6050f4e5335c254cdbf
2013-08-28 17:58:14 +02:00
6ba5abe2fe match names with tag
Change-Id: I817b2cf9a015709d90b3f1c22290bce0cbc31eab
2013-08-28 17:58:13 +02:00
4bfc4a51fe added unit test for ca-ES-valencia
Change-Id: Ib4eb93f9ba8145f6404bed9393580646358bb805
2013-08-28 15:06:43 +02:00
087ee66013 encapsulate IsoLangEntry again
Change-Id: I66475eb3914b07b4c7a045e295ef77a5de9439d4
2013-08-23 23:09:09 +02:00
876c619b94 new module i18nlangtag
Moved portions from module i18npool, all of former i18nisolang1 library
that now is i18nlangtag. Included are languagetag, isolang and mslangid.

This i18nlangtag code is now even used by module comphelper, so
disentangling i18npool and making this an own module was needed to not
create circular module dependencies.

Change-Id: Ib887c3d6dde667403fd22d382310ba5f1a9b0015
2013-04-05 19:10:48 +02:00