summaryrefslogtreecommitdiff
path: root/i18nlangtag
AgeCommit message (Collapse)AuthorFilesLines
2014-11-18cppu: clean up public headers with include-what-you-useMichael Stahl3-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
2014-11-14fdo#86023 - O[U]String needs a 'clear' methodBrij Mohan Lal Srivastava3-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>
2014-11-12Fix common typos. No automatic tools. Handmade…Andrea Gelmini3-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>
2014-11-11for unknown locales check is needed even for ll[l][-CC] tag, fdo#86011 relatedEike Rathke1-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
2014-11-06Revert "use the new OUString::fromUtf8 method"Stephan Bergmann1-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).
2014-11-06use the new OUString::fromUtf8 methodNoel Grandin1-1/+1
Change-Id: I771004b7ccab3344a67e827e45bc34c22ffa5f77
2014-09-17add Kven Finnish [fkv-NO] to language list, fdo#83332Eike Rathke1-0/+1
Change-Id: I3faa39ebc32e909bd2e7eeee6ae67c6f3148fb7c
2014-09-16fdo#81357 no fallback for special codes without countryEike Rathke1-0/+4
Thanks to Justin Luth for the hint. Change-Id: I97bde18814368e589e2a1c275457489a0d7392d4
2014-09-12map Apple LanguageId to LanguageTagCaolán McNamara1-0/+367
Change-Id: Ib203264ae89aef66f0e9b011ef9a34a8670500de
2014-08-04suppress legacy locales, fdo#44112 relatedEike Rathke1-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
2014-07-01New loplugin:stringconcatStephan Bergmann1-6/+3
Change-Id: Id7c517fb37bc28797c45fc0dde83e866f2aa4aac
2014-06-12disallow 'qlt' privateuse codeEike Rathke1-0/+14
... to prevent confusion with our internal usage. Change-Id: I273b80882cbe5029d04ad754c8b0636f5c59a4f6
2014-06-09loplugin: inlinesimplememberfunctionsNoel Grandin1-4/+0
Change-Id: I42119f656ca528286fb25d2d36c0af54b7d04a6b
2014-06-03and some replacement code for lt_tag_get_privateuse(), sigh..Eike Rathke1-0/+24
Change-Id: Ida5064f32a16269b16ec16c0ce9f42ea895641f9
2014-06-03add unit test for LanguageTag::isValidBcp47() with bDisallowPrivateEike Rathke1-0/+4
Change-Id: I58089bc00c640bb1d8461d8f482ad623f9566e76
2014-06-03add bDisallowPrivate parameter to LanguageTag::isValidBcp47()Eike Rathke1-3/+12
Change-Id: I0924b0fa268c38c238226d082cf26595bba72f0c
2014-06-02add LANGUAGE_USER_FRENCH_TOGO 0x8C0C [fr-TG] French (Togo), fdo#79353Eike Rathke1-0/+1
Change-Id: Id1e127a3652d4bef280327c2a62d95c17c012656
2014-06-02add LANGUAGE_USER_FRENCH_NIGER 0x880C [fr-NE] French (Niger), fdo#79352Eike Rathke1-0/+1
Change-Id: I6d793317bc1caef4a95275bad263a5b2feac12e4
2014-06-02add LANGUAGE_USER_FRENCH_BENIN 0x840C fr-BJ French (Benin), fdo#79351Eike Rathke1-0/+1
Change-Id: Idc54b0fae9283d795b79231214cf14aae43adca2
2014-05-26Fix refcountingStephan Bergmann1-1/+5
Change-Id: I2225b2a2dc0648ec3b9e2af251cd1a3502199383
2014-05-21add unit test for static isValidBcp47() methodEike Rathke1-0/+16
Change-Id: Ib234fb1d14087236d337dfe351aea941945e718c
2014-05-21add static LanguageTag::isValidBcp47()Eike Rathke1-0/+40
Change-Id: I2c646b3e2f13a6fccc845ce8eb82fccee154f3c6
2014-05-17Correct common misspellings, and remove some ASCII art along the way.Chris Laplante1-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>
2014-04-16CID#1202769 comfort coverityEike Rathke1-2/+8
Change-Id: I84214dde71883065f1ca3737180f0d739b49d8ee
2014-04-05document why the test fails and is disabledEike Rathke1-2/+8
Change-Id: I17bb169f14d225b970014ab26a7f1d9d0d1b0af8
2014-04-05disable build breaker testEike Rathke1-0/+3
Change-Id: I78f3cf06bee431ccfc72a2ecea48383f023488ea
2014-03-17framework: prefer passing OUString by referenceNoel Grandin1-1/+1
Change-Id: I23c2ac9ef6bfc3eedb8ad6cb199c12d42ed642c8
2014-02-28remove unused code from i18nlangtag/LanguageTagNoel Grandin1-28/+0
Specifically: LanguageTag::LanguageTag() LanguageTag::getRegion() const LanguageTag::reset(_rtl_Locale const&) Change-Id: I8822db6e1df7cd912e9ae82cb9d9f51370d4c583
2014-02-26added Lengo [lgr-SB], fdo#72512Eike Rathke1-0/+1
Change-Id: I8614619224d65118d6057eab6c3f6f7ee8efc617
2014-02-26Remove visual noise from i18nlangtagAlexander Wilms3-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>
2014-02-26added Cree, Plains, Latin [crk-Latn-CN] and Syllabics [crk-Cans-CN], fdo#73973Eike Rathke1-0/+2
Change-Id: I66b2923a59e06c5798d8debb14eb2282c9a4fb1d
2014-02-25added Avar [av-RU], fdo#75161Eike Rathke1-0/+1
Change-Id: Id8e32dab357d0eda90d36ab4e53f3eb2da769029
2014-02-25added Maninkakan, Eastern, Latin [emk-Latn-GN], fdo#74672Eike Rathke1-0/+1
Change-Id: Ib75136c6f0604cb6e3125e39a1514bbcc9ade079
2014-02-25remove unused code LanguageTag::convertLocaleToBcp47()Noel Grandin1-7/+0
Change-Id: I4c655c16850ccfec44010ce8b100eeff0c8c3826
2014-02-25remove unused code LanguageTag::convertLangToBcp47()Noel Grandin1-7/+0
Change-Id: Iebbef192b7a8692003dc3f31d5b905efeae2cf25
2014-02-23Remove unneccessary commentsAlexander Wilms3-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>
2014-02-12normalize values of SYSTEM_RHINO, SYSTEM_LIBLANGTAGMichael Stahl1-1/+1
Change-Id: I656e90024d35ef8189727e6a39815ef4e4fb330b
2014-02-06Resolves: rhbz#975421 wrong chart direction in FarsiCaolán McNamara1-0/+9
Where Farsi (and apparenly Moroccon) are RTL but have LTR math and charts should reportedly follow the math direction Change-Id: Ib60eaaaa90fe46ef240030a91169fdff3f736329
2014-01-10IsoLanguageCountryEntry.mnOverride is LanguageType, not boolStephan Bergmann1-1/+1
Change-Id: I7575952918fd28c60bb48bfb6b97df210dca8de2
2013-12-19support ca_ES@valencia glibc locale modifier, fdo#68714Eike Rathke1-0/+1
Change-Id: I2723ee4664844923d7c441cfd33c7bd767f1e7d3
2013-12-18the MS Serbian Latin Neutral messEike Rathke1-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
2013-12-18resolved fdo#72778 keep setting system locale and LanguageTag in syncEike Rathke2-2/+19
Change-Id: I3547786bf77b8f611bc08d0e52c66ac00e199f13
2013-12-17gbuild: Fix and check package dependencies.Matúš Kukan1-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>
2013-12-11Related: rhbz#1040291 Change language name from 'Oriya' to 'Odia'Caolán McNamara2-2/+2
Except for our external api where the Oriya is stuck (and similar for the vba implementation) Change-Id: I8288c930567385eea49a4c303727b13ef8b8a89f
2013-12-02added Kurdish, Southern (Iran) [sdh-IR] to language list, fdo#63460Eike Rathke2-0/+3
Change-Id: I575c8a51cff1cf451c776818711d2e0fd458a322
2013-11-21removed declared but undefined LanguageTagImpl::convertFromRtlLocale()Eike Rathke1-2/+0
Change-Id: I928fb77181991948216bb18cdfcea0816218a2b9
2013-11-21handleVendorVariant() strip in case some was injectedEike Rathke1-0/+13
Change-Id: I73c42a99671524e9fb186257a9bc943d514958c2
2013-11-20Windows: Require at least Windows XP SP2Thomas Arnhold1-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>
2013-11-19scp2 and setup_native details for dictionary name changesEike Rathke1-1/+44
Change-Id: I635533033f9a063ac1e6c5c18bf93803144a12c8
2013-11-19mention dictionaries/Module_dictionaries.mkEike Rathke1-0/+2
Change-Id: If21faf03d12aa6963fe0252475e1585e71aa349a