Commit graph

177 commits

Author SHA1 Message Date
Eike Rathke
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
Eike Rathke
57f3946884 don't sync vars twice
Change-Id: I2052aa0ac750f6e1c004f886bf29f9b96cf11bb6
2013-10-12 00:52:16 +02:00
Caolán McNamara
258d9fac75 CID#1103756 missing initialization
Change-Id: I0a0dcf7a6009940854b3a6f8e26127c5868b5a55
2013-10-11 09:00:29 +01:00
Eike Rathke
47e1f1eb50 added Karakalpak Latin [kaa-Latn-UZ] to language list, fdo#70217
Change-Id: I202b01e8ac705c11d816a607e3293d8ba56f4640
2013-10-07 23:20:58 +02:00
Eike Rathke
9ddfbe4bc5 added Nogai [nog-RU] to language list, fdo#69987
Change-Id: Ib59c75ee13b5e16ef014ab7245540ffdc62c2daa
2013-10-07 22:53:40 +02:00
Eike Rathke
d281caacbe added Kumyk [kum-RU] to language list, fdo#70089
Change-Id: Iebf76555903fec1b533141104d3752735a8be075
2013-10-04 17:02:05 +02:00
Eike Rathke
77caa26a3a added scp2/**/*.ulf to description of replacements
Change-Id: I841e3df0900735bc7b6de78bca3a5dbbb3902af5
2013-09-23 15:04:09 +02:00
Eike Rathke
6fa84d1968 in canonicalize() an unknown LangID is temporary
Change-Id: I4ae0f04f6ba5d6d0f9668595adf0b6865a34d6ef
2013-09-22 02:53:47 +02:00
Eike Rathke
c316097af8 don't copy twice
Change-Id: I664f4fed663ee41ae8f5b857401fbc4a24d02ba5
2013-09-22 00:09:15 +02:00
Eike Rathke
0b80ff0025 handle canonicalization better and share impl
Change-Id: I82c1b899f88e348cfa798558b63b2264d997c33b
2013-09-22 00:03:07 +02:00
Eike Rathke
3acc0cc1e5 moved LANGUAGE_DONTKNOW impl detection up
Change-Id: Iba2c7f03420a709c5ee6338c1504b1133a8cb643
2013-09-21 19:54:45 +02:00
Eike Rathke
f814795ac9 default ctor LangID acutally is initialized
So make registerImpl() use theDontKnow instead of creating temporary
instances.

Change-Id: Ibd10a80da5dd4355c33cf525b21158ec56a1360e
2013-09-21 17:25:52 +02:00
Eike Rathke
dafd278293 register separate theSystemLocale for faster access
Change-Id: I0fc5938bd2c0157471539217806ad7844d765e8d
2013-09-21 15:24:43 +02:00
Eike Rathke
931e40703d added registerImpl() debug counter
Change-Id: I84a79cbbbe06bdf1ae9e77d9cb5d429c6750fe21
2013-09-21 15:24:43 +02:00
Eike Rathke
cf417c2cd4 use bcp47 unresolved system for operator<()
We have several tags mapping to one LangID, so using LangID isn't a good
idea.

Change-Id: I561745b032af7eb0c54cf55dbcd26872103e2e07
2013-09-21 15:24:43 +02:00
Eike Rathke
5799417f70 added debug counter to getNextOnTheFlyLanguage()
Change-Id: If2c53309f50b67d9afeb097391f4d20637bee69c
2013-09-21 15:24:42 +02:00
Eike Rathke
d1b8398c2f added operator<() for sorted containers
Change-Id: Iffc3a41df21f2b95054f6f895c9848714ace1de0
2013-09-21 15:24:42 +02:00
Eike Rathke
42dc3847ed let reset() return a reference
Change-Id: I3700566e7ec2250909211a6d81c6f2a7854b463c
2013-09-21 15:24:42 +02:00
Eike Rathke
3e70b51d21 added default ctor for maps etc.
sigh.. I hate to do this..

Change-Id: Icf5940c0e60d39a2a1a33fbf78d2af6deb729524
2013-09-21 15:24:42 +02:00
Eike Rathke
df0f34cb9c trigger less conversions
Change-Id: Ie7ab85522b3ab0adb5bddd24b9db6affc10c4665
2013-09-20 21:46:43 +02:00
Eike Rathke
f77085ce58 theDontKnow Impl
Change-Id: I6d4738041e3f4eaffc3adbdb0b324eda24903b72
2013-09-20 18:31:07 +02:00
Eike Rathke
ababc9bba7 0x
Change-Id: Ie400046c513b278115ec6fc67b3c531a1153ef9e
2013-09-20 18:31:06 +02:00
Eike Rathke
79dbf61117 do not register LANGUAGE_DONTKNOW
Change-Id: Ibfe4407c1b2740e806c7d9cb75529a8babc3fd92
2013-09-20 18:31:06 +02:00
Eike Rathke
c640f19ca3 now with on-the-fly LangID assignment
Change-Id: I0766705191176381beaf331de3d10dfc0086a9b4
2013-09-20 18:31:06 +02:00
Eike Rathke
75cb1e8541 more preparation for on-the-fli IDs
Change-Id: Ic4d53d0e3e8e149d09017dd7a567b879601073fc
2013-09-20 18:31:05 +02:00
Eike Rathke
01bde208ac added isOnTheFlyID()
Change-Id: Ifddbec485814e3287e671e6bc4059689ca3f6c93
2013-09-20 18:31:05 +02:00
Eike Rathke
e81359a9a3 added registerImpl() re-entered warning
Change-Id: I064d7241343fadd0256bb0fa5ad32fabcd6738a4
2013-09-20 18:31:05 +02:00
Eike Rathke
5ec8a9b13a added registerOnTheFly()
Change-Id: I1e270686ad73bf32c580dddcab7f03c4a3d85054
2013-09-20 18:31:05 +02:00
Eike Rathke
e3a01c2b0c check for identity in operator=()
Change-Id: I687dc4bdd3093054a6e2c1fd383cfc2a8c948303
2013-09-20 18:31:04 +02:00
Eike Rathke
862766d569 prepare for on-the-fly assigned LangIDs
Change-Id: Id4ba99f0b1894457ca95c209b8394447c6fd7893
2013-09-20 18:31:04 +02:00
Eike Rathke
57567934d9 inline
Change-Id: I7b031d19160f7fe3d8dd0789ab68b03830135463
2013-09-20 01:11:31 +02:00
Eike Rathke
3f3e73bd38 second wave to register tags
Change-Id: If71d7bdbe590b66e3642e8815a536482c67dd7c0
2013-09-20 00:59:33 +02:00
Eike Rathke
2aefb9eaed unused LanguageTagImpl::resetVars()
Change-Id: Iaf806d78b6d49b9bc599ab61ebc8fa1ced84fcf9
2013-09-19 20:17:06 +02:00
Eike Rathke
1f6fceb89d does #include <map> satisfy Windows?
Change-Id: I42410c84291b7fdebe6507ec23837433970ea277
2013-09-19 19:59:06 +02:00
Eike Rathke
01f351830b better mutex guard this
Change-Id: Ic5cc38c76f6eae11460e0b6e3c55d0e2333a0b09
2013-09-19 19:38:02 +02:00
Eike Rathke
fec4c9b9e6 first wave to register tags
Change-Id: I11c6608b5c5074e9b7117449c3eb92e278713598
2013-09-19 18:19:38 +02:00
Tor Lillqvist
8d0249a128 WaE: equalsIgnoreAsciiCaseAscii -> equalsIgnoreAsciiCase [loplugin]
rewrite call of rtl::OUString::equalsIgnoreAsciiCaseAscii with string literal
argument as call of rtl::OUString::equalsIgnoreAsciiCase [loplugin]

Change-Id: Ia4dcbf6f5233a5aa91c609902da0a1037bcc3a48
2013-09-19 15:50:41 +03:00
Eike Rathke
f864044506 'de-1901' is a valid fallback, 'en-oed' is not
Change-Id: I73b821eaff82796080ce123e37466ec53c327141
2013-09-19 13:38:32 +02:00
Eike Rathke
99899543ee accept (DIGIT 3*ALNUM) variant in place of (4*ALPHA) script
Change-Id: If622619bd2e282ab8298ac8a29f8bb57a8fe968f
2013-09-19 13:08:29 +02:00
Eike Rathke
1eccc6dedf use equalsIgnoreAsciiCaseAscii() with ASCII string
... instead of equalsIgnoreAsciiCase() that converts to OUString first

Change-Id: I20e6ac93e1af40b01285e49670770d0e4c453dfa
2013-09-19 13:08:28 +02:00
Jan Holesovsky
9a5c9f403a Revert "Fix the Windows build."
This reverts commit ecd9e1a208.

Tor has fixed that in the meantime.
2013-09-19 10:41:45 +02:00
Jan Holesovsky
ecd9e1a208 Fix the Windows build.
Change-Id: I0505c77302a3bdd0802e862e730e2381aea5a4b0
2013-09-19 10:19:17 +02:00
Tor Lillqvist
19d7fd2c41 Sprinkle more boost_headers love
Fix compilation errors when not using system boost. Might be more.

It's sad that one has to micro-manage boost use like this.

Change-Id: I3541789530fbdb0fb03e2b355144e63f8b031097
2013-09-19 11:12:46 +03:00
Eike Rathke
90698b5f67 always sync after canonicalize
Change-Id: I96936330f787d9256383f73e17983e4950579160
2013-09-19 00:08:27 +02:00
Eike Rathke
9650bd9513 sync from possible intermediate steps
Change-Id: Ifeb670356184b1f613ad85705fded848072416b1
2013-09-18 23:38:03 +02:00
Eike Rathke
0194900585 impl getBcp47() always resolves system
Change-Id: Id052b5ed9ec47a2bf02b8707825fdcbbd64af186
2013-09-18 23:16:07 +02:00
Eike Rathke
5bb3c27140 LANGTAGCAST is unnecessary now, we have lt_tag_t* encapsulated
Change-Id: Ibe7b402dca2e71339ba77632ea1bc19b983a86f8
2013-09-18 22:47:03 +02:00
Eike Rathke
31db11d7ef changed to mpImpl
first step to register locales

Change-Id: I1a1f7b3f642cf892e91b17dd30c92a79129f184e
2013-09-18 22:40:58 +02:00
Eike Rathke
19863a06d7 added getNextOnTheFlyLanguage()
Change-Id: I58eeab0076b5b77b533bf855d3879228fe653658
2013-09-17 22:19:57 +02:00
Eike Rathke
86cbe18a61 mn-Cyrl and mn-Mong
Change-Id: I2a62bb4098e73058161f1808052556fdb86da81c
2013-09-17 17:46:27 +02:00