summaryrefslogtreecommitdiffstats
path: root/i18nlangtag
Commit message (Collapse)AuthorAgeFilesLines
* i18nlangtag: Use appropriate OUString functions on string constantsStephan Bergmann2014-12-181-31/+31
| | | | Change-Id: I0c3a20e1d1273944f1f0f2f886d5d951e916336c
* Work around -Werror,-Wkeyword-macroStephan Bergmann2014-12-021-0/+1
| | | | | | | | ...where liblangtag/lt-macros.h does #undef inline because LT_HAVE_INLINE is not defined---liblangtag has a config.h (that would define it), but for whatever reason does not include it... Change-Id: I6a6f0a3522b7aef12573af7d7c4c00bb0f1368eb
* cppu: clean up public headers with include-what-you-useMichael Stahl2014-11-183-1/+4
| | | | | | | | Unfortunately iwyu gets quite confused by the weird cyclic dependencies between various foo.h/foo.hxx and cppumaker generated headers, so it's not obvious if any improvement here is realistic... Change-Id: I0bc66f98b146712e28cabc18d56c11c08418c721
* fdo#86023 - O[U]String needs a 'clear' methodBrij Mohan Lal Srivastava2014-11-143-17/+26
| | | | | | | Added clear() method to OString and OUString class, Updated appropriate call-sites. Change-Id: I0ba97fa6dc7af3e31b605953089a4e8e9c3e61ac Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
* Fix common typos. No automatic tools. Handmade…Andrea Gelmini2014-11-123-3/+3
| | | | | | | Change-Id: I1ab4e23b0539f8d39974787f226e57a21f96e959 Reviewed-on: https://gerrit.libreoffice.org/12164 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* for unknown locales check is needed even for ll[l][-CC] tag, fdo#86011 relatedEike Rathke2014-11-111-16/+11
| | | | | | | | | | Found when investigating fdo#86011 where 'du-nl' was accepted and assigned an on-the-fly-ID even if the 'du' language code is not defined in ISO 639. If a tag is not internally known we need to check it using liblangtag and take no short cut assuming it would be alright even not for the simplest case. Change-Id: Ib8c1eb77b6b4a59019c4c8248b596bf53c0f4986
* Revert "use the new OUString::fromUtf8 method"Stephan Bergmann2014-11-061-1/+1
| | | | | | | | This reverts commit 05050cdb23de586870bf479a9df5ced06828d498, not all places that use e.g. OStringToOUString to convert potential UTF-8 are guaranteed to fulfil the prerequisites necessary to use fromUtf8 (and some places like e.g. in codemaker are happy with the best-effort effect of OStringToOUString's OSTRING_TO_OUSTRING_CVTFLAGS).
* use the new OUString::fromUtf8 methodNoel Grandin2014-11-061-1/+1
| | | | Change-Id: I771004b7ccab3344a67e827e45bc34c22ffa5f77
* add Kven Finnish [fkv-NO] to language list, fdo#83332Eike Rathke2014-09-171-0/+1
| | | | Change-Id: I3faa39ebc32e909bd2e7eeee6ae67c6f3148fb7c
* fdo#81357 no fallback for special codes without countryEike Rathke2014-09-161-0/+4
| | | | | | Thanks to Justin Luth for the hint. Change-Id: I97bde18814368e589e2a1c275457489a0d7392d4
* map Apple LanguageId to LanguageTagCaolán McNamara2014-09-121-0/+367
| | | | Change-Id: Ib203264ae89aef66f0e9b011ef9a34a8670500de
* suppress legacy locales, fdo#44112 relatedEike Rathke2014-08-041-0/+16
| | | | | | | | | | | | | | | | | 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
* New loplugin:stringconcatStephan Bergmann2014-07-011-6/+3
| | | | Change-Id: Id7c517fb37bc28797c45fc0dde83e866f2aa4aac
* disallow 'qlt' privateuse codeEike Rathke2014-06-121-0/+14
| | | | | | ... to prevent confusion with our internal usage. Change-Id: I273b80882cbe5029d04ad754c8b0636f5c59a4f6
* loplugin: inlinesimplememberfunctionsNoel Grandin2014-06-091-4/+0
| | | | Change-Id: I42119f656ca528286fb25d2d36c0af54b7d04a6b
* and some replacement code for lt_tag_get_privateuse(), sigh..Eike Rathke2014-06-031-0/+24
| | | | Change-Id: Ida5064f32a16269b16ec16c0ce9f42ea895641f9
* add unit test for LanguageTag::isValidBcp47() with bDisallowPrivateEike Rathke2014-06-031-0/+4
| | | | Change-Id: I58089bc00c640bb1d8461d8f482ad623f9566e76
* add bDisallowPrivate parameter to LanguageTag::isValidBcp47()Eike Rathke2014-06-031-3/+12
| | | | Change-Id: I0924b0fa268c38c238226d082cf26595bba72f0c
* add LANGUAGE_USER_FRENCH_TOGO 0x8C0C [fr-TG] French (Togo), fdo#79353Eike Rathke2014-06-021-0/+1
| | | | Change-Id: Id1e127a3652d4bef280327c2a62d95c17c012656
* add LANGUAGE_USER_FRENCH_NIGER 0x880C [fr-NE] French (Niger), fdo#79352Eike Rathke2014-06-021-0/+1
| | | | Change-Id: I6d793317bc1caef4a95275bad263a5b2feac12e4
* add LANGUAGE_USER_FRENCH_BENIN 0x840C fr-BJ French (Benin), fdo#79351Eike Rathke2014-06-021-0/+1
| | | | Change-Id: Idc54b0fae9283d795b79231214cf14aae43adca2
* Fix refcountingStephan Bergmann2014-05-261-1/+5
| | | | Change-Id: I2225b2a2dc0648ec3b9e2af251cd1a3502199383
* add unit test for static isValidBcp47() methodEike Rathke2014-05-211-0/+16
| | | | Change-Id: Ib234fb1d14087236d337dfe351aea941945e718c
* add static LanguageTag::isValidBcp47()Eike Rathke2014-05-211-0/+40
| | | | Change-Id: I2c646b3e2f13a6fccc845ce8eb82fccee154f3c6
* Correct common misspellings, and remove some ASCII art along the way.Chris Laplante2014-05-171-1/+1
| | | | | | | Change-Id: I42787db31769e8bde984c5f4f0aa90335e889b1c Reviewed-on: https://gerrit.libreoffice.org/9356 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
* CID#1202769 comfort coverityEike Rathke2014-04-161-2/+8
| | | | Change-Id: I84214dde71883065f1ca3737180f0d739b49d8ee
* document why the test fails and is disabledEike Rathke2014-04-051-2/+8
| | | | Change-Id: I17bb169f14d225b970014ab26a7f1d9d0d1b0af8
* disable build breaker testEike Rathke2014-04-051-0/+3
| | | | Change-Id: I78f3cf06bee431ccfc72a2ecea48383f023488ea
* framework: prefer passing OUString by referenceNoel Grandin2014-03-171-1/+1
| | | | Change-Id: I23c2ac9ef6bfc3eedb8ad6cb199c12d42ed642c8
* remove unused code from i18nlangtag/LanguageTagNoel Grandin2014-02-281-28/+0
| | | | | | | | | Specifically: LanguageTag::LanguageTag() LanguageTag::getRegion() const LanguageTag::reset(_rtl_Locale const&) Change-Id: I8822db6e1df7cd912e9ae82cb9d9f51370d4c583
* added Lengo [lgr-SB], fdo#72512Eike Rathke2014-02-261-0/+1
| | | | Change-Id: I8614619224d65118d6057eab6c3f6f7ee8efc617
* Remove visual noise from i18nlangtagAlexander Wilms2014-02-263-5/+5
| | | | | | | Change-Id: I82680dea7e6d182d4c8047fce60d2cae09d29891 Reviewed-on: https://gerrit.libreoffice.org/8268 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
* added Cree, Plains, Latin [crk-Latn-CN] and Syllabics [crk-Cans-CN], fdo#73973Eike Rathke2014-02-261-0/+2
| | | | Change-Id: I66b2923a59e06c5798d8debb14eb2282c9a4fb1d
* added Avar [av-RU], fdo#75161Eike Rathke2014-02-251-0/+1
| | | | Change-Id: Id8e32dab357d0eda90d36ab4e53f3eb2da769029
* added Maninkakan, Eastern, Latin [emk-Latn-GN], fdo#74672Eike Rathke2014-02-251-0/+1
| | | | Change-Id: Ib75136c6f0604cb6e3125e39a1514bbcc9ade079
* remove unused code LanguageTag::convertLocaleToBcp47()Noel Grandin2014-02-251-7/+0
| | | | Change-Id: I4c655c16850ccfec44010ce8b100eeff0c8c3826
* remove unused code LanguageTag::convertLangToBcp47()Noel Grandin2014-02-251-7/+0
| | | | Change-Id: Iebbef192b7a8692003dc3f31d5b905efeae2cf25
* Remove unneccessary commentsAlexander Wilms2014-02-233-16/+16
| | | | | | | Change-Id: I939160ae72fecbe3d4a60ce755730bd4c38497fb Reviewed-on: https://gerrit.libreoffice.org/8182 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* normalize values of SYSTEM_RHINO, SYSTEM_LIBLANGTAGMichael Stahl2014-02-121-1/+1
| | | | Change-Id: I656e90024d35ef8189727e6a39815ef4e4fb330b
* Resolves: rhbz#975421 wrong chart direction in FarsiCaolán McNamara2014-02-061-0/+9
| | | | | | | Where Farsi (and apparenly Moroccon) are RTL but have LTR math and charts should reportedly follow the math direction Change-Id: Ib60eaaaa90fe46ef240030a91169fdff3f736329
* IsoLanguageCountryEntry.mnOverride is LanguageType, not boolStephan Bergmann2014-01-101-1/+1
| | | | Change-Id: I7575952918fd28c60bb48bfb6b97df210dca8de2
* support ca_ES@valencia glibc locale modifier, fdo#68714Eike Rathke2013-12-191-0/+1
| | | | Change-Id: I2723ee4664844923d7c441cfd33c7bd767f1e7d3
* the MS Serbian Latin Neutral messEike Rathke2013-12-181-1/+1
| | | | | | | | | | There are two LangID values mapping to Serbian Latin (without country) which lead to the UI language selector displaying "sr-Latn" instead of "Serbian Latin" because conversion picked the other one. Consistently use LANGUAGE_SERBIAN_LATIN_LSO and don't trap into LANGUAGE_SERBIAN_LATIN_NEUTRAL (whatever that might be). Change-Id: I6ae6c2027048c99096b4d9d703a0dc73784b52f1
* resolved fdo#72778 keep setting system locale and LanguageTag in syncEike Rathke2013-12-182-2/+19
| | | | Change-Id: I3547786bf77b8f611bc08d0e52c66ac00e199f13
* gbuild: Fix and check package dependencies.Matúš Kukan2013-12-171-1/+1
| | | | | | | Change-Id: Ia54def7a404e07974eb1e8a556f4659cd974e7f8 Reviewed-on: https://gerrit.libreoffice.org/7081 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Matúš Kukan <matus.kukan@collabora.com>
* Related: rhbz#1040291 Change language name from 'Oriya' to 'Odia'Caolán McNamara2013-12-112-2/+2
| | | | | | | Except for our external api where the Oriya is stuck (and similar for the vba implementation) Change-Id: I8288c930567385eea49a4c303727b13ef8b8a89f
* added Kurdish, Southern (Iran) [sdh-IR] to language list, fdo#63460Eike Rathke2013-12-022-0/+3
| | | | Change-Id: I575c8a51cff1cf451c776818711d2e0fd458a322
* removed declared but undefined LanguageTagImpl::convertFromRtlLocale()Eike Rathke2013-11-211-2/+0
| | | | Change-Id: I928fb77181991948216bb18cdfcea0816218a2b9
* handleVendorVariant() strip in case some was injectedEike Rathke2013-11-211-0/+13
| | | | Change-Id: I73c42a99671524e9fb186257a9bc943d514958c2
* Windows: Require at least Windows XP SP2Thomas Arnhold2013-11-201-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Windows XP SP2 is 0x0502, see http://msdn.microsoft.com/en-us/library/aa383745.aspx * If a module changes the Windows SDK version setting, this is done module wide now. So the overall behavior is as before. This seems to be the best compromise for now. * We need at least SP2 because of the bluetooth stuff used in sd/source/ui/remotecontrol. * Now, we require at least Internet Explorer 7.0. IE6 has been outdated for a long time. * Leave StdAfx.h file definitions, as those are Microsoft project specific precompiled header files. * All local definitions of WINVER are removed, because the global WINVER setting makes them obsolete now. To the relation of the three macros: Setting _WIN32_WINNT sets WINVER and NTDDI_VERSION automatically to the same value as _WIN32_WINNT. WINVER and NTDDI_VERSION can be set idenpendently each for itself. Change-Id: Ibcc12493aae4fcaf7bcfda88be99c1b61bc326cb Reviewed-on: https://gerrit.libreoffice.org/6496 Reviewed-by: Thorsten Behrens <thb@documentfoundation.org> Tested-by: Thorsten Behrens <thb@documentfoundation.org>