Commit Graph

81 Commits

Author SHA1 Message Date
4189b71599 suppress legacy locales, fdo#44112 related
With MsLangId::isLegacy() locales can be suppressed in language lists
and are not offered unless actually used at the current position of the
document. Language attribution now handles adding a language/locale to
the list on the fly.

For example, Serbian (Latin or Cyrillic) for "Serbia and Montenegro" are
legacy locales, the confederation doesn't exist anymore. A further
candidate would be pap-AN as the Netherlands Antilles ceased to exist,
see fdo#44112.

Suppressing "Serbian Cyrillic (Serbia and Montenegro)" also has the nice
benefit of narrowing the language list box width a little ...

Change-Id: Id05cce328622465016901524b759369c18bc4dbd
2014-08-04 14:24:17 +02:00
184a00b962 loplugin: inlinesimplememberfunctions
Change-Id: I42119f656ca528286fb25d2d36c0af54b7d04a6b
2014-06-09 10:10:13 +02:00
fecde4c709 add bDisallowPrivate parameter to LanguageTag::isValidBcp47()
Change-Id: I0924b0fa268c38c238226d082cf26595bba72f0c
2014-06-03 14:48:45 +02:00
b247e5f77d add LANGUAGE_USER_FRENCH_TOGO 0x8C0C [fr-TG] French (Togo), fdo#79353
Change-Id: Id1e127a3652d4bef280327c2a62d95c17c012656
2014-06-02 20:34:03 +02:00
4ffdd43ae4 add LANGUAGE_USER_FRENCH_NIGER 0x880C [fr-NE] French (Niger), fdo#79352
Change-Id: I6d793317bc1caef4a95275bad263a5b2feac12e4
2014-06-02 20:33:57 +02:00
3a14b9357f add LANGUAGE_USER_FRENCH_BENIN 0x840C fr-BJ French (Benin), fdo#79351
Change-Id: Idc54b0fae9283d795b79231214cf14aae43adca2
2014-06-02 20:33:50 +02:00
a6e6cc49bf add static LanguageTag::isValidBcp47()
Change-Id: I2c646b3e2f13a6fccc845ce8eb82fccee154f3c6
2014-05-21 14:15:24 +02:00
8792ec7b21 Remove visual noise from include
Conflicts:
	include/framework/preventduplicateinteraction.hxx
	include/sfx2/sfxbasecontroller.hxx
	include/sfx2/sfxbasemodel.hxx
	include/toolkit/awt/vclxtabpagemodel.hxx
	include/vcl/field.hxx
	include/vcl/settings.hxx

Change-Id: Ibccf9f88c68267a3d7e656012b51eaf644c418c2
Reviewed-on: https://gerrit.libreoffice.org/8272
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-03-01 09:51:32 -06:00
a4dd8a2106 remove unused code from i18nlangtag/LanguageTag
Specifically:
  LanguageTag::LanguageTag()
  LanguageTag::getRegion() const
  LanguageTag::reset(_rtl_Locale const&)

Change-Id: I8822db6e1df7cd912e9ae82cb9d9f51370d4c583
2014-02-28 08:32:02 +02:00
b8d8d1bd05 added Lengo [lgr-SB], fdo#72512
Change-Id: I8614619224d65118d6057eab6c3f6f7ee8efc617
2014-02-26 20:26:26 +01:00
75a22a9fb8 added Cree, Plains, Latin [crk-Latn-CN] and Syllabics [crk-Cans-CN], fdo#73973
Change-Id: I66b2923a59e06c5798d8debb14eb2282c9a4fb1d
2014-02-26 00:14:34 +01:00
9c2515f8e0 added Avar [av-RU], fdo#75161
Change-Id: Id8e32dab357d0eda90d36ab4e53f3eb2da769029
2014-02-25 23:52:07 +01:00
da4a8dbb10 added Maninkakan, Eastern, Latin [emk-Latn-GN], fdo#74672
Change-Id: Ib75136c6f0604cb6e3125e39a1514bbcc9ade079
2014-02-25 22:42:37 +01:00
c875ded2e9 remove unused code LanguageTag::convertLocaleToBcp47()
Change-Id: I4c655c16850ccfec44010ce8b100eeff0c8c3826
2014-02-25 15:17:01 +02:00
a4d6cb008e remove unused code LanguageTag::convertLangToBcp47()
Change-Id: Iebbef192b7a8692003dc3f31d5b905efeae2cf25
2014-02-25 15:17:01 +02:00
b37bce11cf Resolves: rhbz#975421 wrong chart direction in Farsi
Where Farsi (and apparenly Moroccon) are RTL but have LTR
math and charts should reportedly follow the math direction

Change-Id: Ib60eaaaa90fe46ef240030a91169fdff3f736329
2014-02-06 15:11:59 +00:00
cc54c08a66 resolved fdo#72778 keep setting system locale and LanguageTag in sync
Change-Id: I3547786bf77b8f611bc08d0e52c66ac00e199f13
2013-12-18 18:10:08 +01:00
108eee306e Related: rhbz#1040291 Change language name from 'Oriya' to 'Odia'
Except for our external api where the Oriya is stuck (and similar for
the vba implementation)

Change-Id: I8288c930567385eea49a4c303727b13ef8b8a89f
2013-12-11 15:11:18 +00:00
fefacbd92f added Kurdish, Southern (Iran) [sdh-IR] to language list, fdo#63460
Change-Id: I575c8a51cff1cf451c776818711d2e0fd458a322
2013-12-02 13:00:52 +01: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
f72c2a727c added Puinave [pui-CO] to language list, fdo#71454
Change-Id: Ib188b2a8dbfbc91f2e89952d6df2c0c357091a78
2013-11-11 13:04:34 +01:00
923b12bc58 fdo#65108 inter-module includes <> include/i18nlangtag
Change-Id: Ic610850ba2d59fb841caf6c60662e54005ed5452
2013-11-09 18:48:53 -06:00
63360cbe1c added French (Burkina Faso) [fr-BF] locale data, fdo#71243
Change-Id: I788d1d1c54cc0a30cbbdc07066bf133c2814304a
2013-11-05 21:20:05 +01: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
b796a2030b added isNonLatinWestern()
Change-Id: Ie2aadab8302f365379a569989bd9640db55b9716
2013-10-24 12:26:21 +02:00
ae80e00b70 added list of "Neither defined nor reserved" for reference
Change-Id: I79402ca5c0804912198b9d78471b1608b2170e04
2013-10-24 02:33:31 +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
9bffd1170c LANGUAGE_USER_YIDDISH_US ought to be 0x803D instead of 0x083D
Change-Id: Idbb6837802ee6f12e95914283a5eb5d61982f4f8
2013-10-24 01:54:58 +02:00
21ebbbcb9a added Ladin [lld-IT] to language list, fdo#70530
Change-Id: I9bd65a7f66710d94a2c4dbe6d1b28f8ddef8d9a3
2013-10-18 13:05:50 +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
8ddab349fe limit LANGUAGE_ON_THE_FLY_END to 0x03FE
instead of 0x03FF so to prevent confusion with 0x03FF values
LANGUAGE_MASK_PRIMARY and LANGUAGE_DONTKNOW, specifically if someone
asked for ((nLang & LANGUAGE_MASK_PRIMARY) == LANGUAGE_DONTKNOW) ...

Change-Id: I6e516c805e0f12182aeb0ea75546b3254f256e8b
2013-10-07 23:38:33 +02:00
47e1f1eb50 added Karakalpak Latin [kaa-Latn-UZ] to language list, fdo#70217
Change-Id: I202b01e8ac705c11d816a607e3293d8ba56f4640
2013-10-07 23:20:58 +02:00
9ddfbe4bc5 added Nogai [nog-RU] to language list, fdo#69987
Change-Id: Ib59c75ee13b5e16ef014ab7245540ffdc62c2daa
2013-10-07 22:53:40 +02:00
d281caacbe added Kumyk [kum-RU] to language list, fdo#70089
Change-Id: Iebf76555903fec1b533141104d3752735a8be075
2013-10-04 17:02:05 +02:00
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
d1b8398c2f added operator<() for sorted containers
Change-Id: Iffc3a41df21f2b95054f6f895c9848714ace1de0
2013-09-21 15:24:42 +02:00
42dc3847ed let reset() return a reference
Change-Id: I3700566e7ec2250909211a6d81c6f2a7854b463c
2013-09-21 15:24:42 +02:00
3e70b51d21 added default ctor for maps etc.
sigh.. I hate to do this..

Change-Id: Icf5940c0e60d39a2a1a33fbf78d2af6deb729524
2013-09-21 15:24:42 +02:00
df0f34cb9c trigger less conversions
Change-Id: Ie7ab85522b3ab0adb5bddd24b9db6affc10c4665
2013-09-20 21:46:43 +02:00
01bde208ac added isOnTheFlyID()
Change-Id: Ifddbec485814e3287e671e6bc4059689ca3f6c93
2013-09-20 18:31:05 +02:00
862766d569 prepare for on-the-fly assigned LangIDs
Change-Id: Id4ba99f0b1894457ca95c209b8394447c6fd7893
2013-09-20 18:31:04 +02:00
fec4c9b9e6 first wave to register tags
Change-Id: I11c6608b5c5074e9b7117449c3eb92e278713598
2013-09-19 18:19:38 +02:00
31db11d7ef changed to mpImpl
first step to register locales

Change-Id: I1a1f7b3f642cf892e91b17dd30c92a79129f184e
2013-09-18 22:40:58 +02:00
af2abfe354 documentation and define on-the-fly ID ranges
Change-Id: I7d42480b0e0d57634647a002c55bd0c3c968bb28
2013-09-17 21:45:16 +02:00
1ecd1985b1 added 'en-GB-oed' for "English, OED spelling (UK)"
Change-Id: Ia51a8503213997ea589f2df79552ef765ecfc748
2013-09-13 21:47:12 +02:00
c9489f68e8 added overrides for fallbacks of legacy codes
Change-Id: I62be84904b3f0f4beeda35e78906604090eefa86
2013-09-10 23:04:36 +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
6cd33c4adf ditched LANGUAGE_SERBIAN 'sr' primary-only
Change-Id: Iac72f57815068767e25c3f7bb95ee402745ba579
2013-09-04 19:54:23 +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
9000ee0e9e added convertToLocaleWithFallback()
Change-Id: I9eb1418721026a0d869b97aa577bc3196f960488
2013-09-03 20:35:41 +02:00