summaryrefslogtreecommitdiff
path: root/i18nlangtag/source/languagetag/languagetag.cxx
AgeCommit message (Collapse)Author
2015-08-22disentangle the Dzongkha mess a littleEike Rathke
As per [MS-LCID] rev. 7.0 2015-06-30 Change-Id: If4980d2b1149d93b39e5b57f5741bbdfb5680516
2015-08-11loplugin: defaultparamsNoel Grandin
Change-Id: I5afe7f9f5caa1f5e55c6218bdb3771571ff0dafa
2015-08-03re-added accidentally removed LT_HAVE_INLINE defineNoel Grandin
in my commit 0ea54aed15ee17a02c9dff861c16d06505f35741 "remove some unused defines" Change-Id: I2d8d9242eda9f39e1f932b2d9849fefb57b196eb Reviewed-on: https://gerrit.libreoffice.org/17496 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-08-03remove some unused definesNoel Grandin
Change-Id: I85a9a2bc12681e13fc482374165ff9bd6858dc93
2015-07-10support en-GB-oxendict additionally to now deprecated en-GB-oedEike Rathke
Have them separated so when saving loaded documents the same tag is used to keep the generator happy. When to switch in UI language listbox? Or should we have both entries? Change-Id: If78600229c4b24f6ee598c25d5a8974fef410bb5
2015-07-03Fix typosAndrea Gelmini
Change-Id: Ie2bbe020fc6e3a4a4f913208c245f395849bb9ee Reviewed-on: https://gerrit.libreoffice.org/16708 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2015-05-20teardown is only called from ~LiblangtagDataRef, anywayStephan Bergmann
...so don't obscure that sad reality Change-Id: I0ddd572e55d66f6c23c776ca62885b6ba482bf5e
2015-05-20typoStephan Bergmann
Change-Id: Ic6869491940482e866ec8e803ded89752746ab73
2015-04-20convert AppleLanguageId to scoped enumNoel Grandin
Change-Id: I6646872f76bb9365a8c2ef809bc942f28b690a32 Reviewed-on: https://gerrit.libreoffice.org/15378 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-03-29loplugin:checkconfigmacrosStephan Bergmann
Change-Id: I2948340c8c0be50543a898f07b125e7eaccc8909
2015-03-29WaE: macro "LT_HAVE_INLINE" is not usedDavid Tardon
Change-Id: I375449ac3068927f525881b0022721130c9c63d6
2015-03-27loplugin:staticfunctionNoel Grandin
Change-Id: Id796b799f8e2fcc3eae98d43800c5e31fec27fef
2015-01-05Add TODO comment for when liblangtag gets updatedStephan Bergmann
Change-Id: Ic90a9e76c5b1ecbe58ff663ec8970841b7e33d2d
2015-01-04boost::unordered_map->std::unordered_mapCaolán McNamara
Change-Id: I82f668ef72e916d2ff11df5cda2a02653999f66f
2014-12-02Work around -Werror,-Wkeyword-macroStephan Bergmann
...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
2014-11-18cppu: clean up public headers with include-what-you-useMichael Stahl
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 Srivastava
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 Gelmini
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 Rathke
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 Bergmann
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 Grandin
Change-Id: I771004b7ccab3344a67e827e45bc34c22ffa5f77
2014-09-12map Apple LanguageId to LanguageTagCaolán McNamara
Change-Id: Ib203264ae89aef66f0e9b011ef9a34a8670500de
2014-07-01New loplugin:stringconcatStephan Bergmann
Change-Id: Id7c517fb37bc28797c45fc0dde83e866f2aa4aac
2014-06-12disallow 'qlt' privateuse codeEike Rathke
... to prevent confusion with our internal usage. Change-Id: I273b80882cbe5029d04ad754c8b0636f5c59a4f6
2014-06-09loplugin: inlinesimplememberfunctionsNoel Grandin
Change-Id: I42119f656ca528286fb25d2d36c0af54b7d04a6b
2014-06-03add bDisallowPrivate parameter to LanguageTag::isValidBcp47()Eike Rathke
Change-Id: I0924b0fa268c38c238226d082cf26595bba72f0c
2014-05-26Fix refcountingStephan Bergmann
Change-Id: I2225b2a2dc0648ec3b9e2af251cd1a3502199383
2014-05-21add static LanguageTag::isValidBcp47()Eike Rathke
Change-Id: I2c646b3e2f13a6fccc845ce8eb82fccee154f3c6
2014-05-17Correct common misspellings, and remove some ASCII art along the way.Chris Laplante
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 Rathke
Change-Id: I84214dde71883065f1ca3737180f0d739b49d8ee
2014-02-28remove unused code from i18nlangtag/LanguageTagNoel Grandin
Specifically: LanguageTag::LanguageTag() LanguageTag::getRegion() const LanguageTag::reset(_rtl_Locale const&) Change-Id: I8822db6e1df7cd912e9ae82cb9d9f51370d4c583
2014-02-25remove unused code LanguageTag::convertLocaleToBcp47()Noel Grandin
Change-Id: I4c655c16850ccfec44010ce8b100eeff0c8c3826
2014-02-25remove unused code LanguageTag::convertLangToBcp47()Noel Grandin
Change-Id: Iebbef192b7a8692003dc3f31d5b905efeae2cf25
2013-12-18resolved fdo#72778 keep setting system locale and LanguageTag in syncEike Rathke
Change-Id: I3547786bf77b8f611bc08d0e52c66ac00e199f13
2013-11-21removed declared but undefined LanguageTagImpl::convertFromRtlLocale()Eike Rathke
Change-Id: I928fb77181991948216bb18cdfcea0816218a2b9
2013-11-21handleVendorVariant() strip in case some was injectedEike Rathke
Change-Id: I73c42a99671524e9fb186257a9bc943d514958c2
2013-11-18cleaned up ISO code usage for Kurdish, fdo#63460Eike Rathke
* 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-10-25more flexible language tag override mechanismEike Rathke
* 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-24added/checked/aligned MS-LangIDs and mappings from new MS-LCID.pdfEike Rathke
... 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-17solve the 'dz' vs 'bo' and 'nn', 'nb' and 'nn' share primary ID casesEike Rathke
Change-Id: I7ccead4493c9848b55f642c2636daa3c60aeb7a6
2013-10-12for unmapped language-only register primary language ID if availableEike Rathke
... instead of an on-the-fly ID Change-Id: I5cb38e91b67d02f0ccda90feb2ad0c60cd3765c5
2013-10-12don't sync vars twiceEike Rathke
Change-Id: I2052aa0ac750f6e1c004f886bf29f9b96cf11bb6
2013-10-11CID#1103756 missing initializationCaolán McNamara
Change-Id: I0a0dcf7a6009940854b3a6f8e26127c5868b5a55
2013-09-22in canonicalize() an unknown LangID is temporaryEike Rathke
Change-Id: I4ae0f04f6ba5d6d0f9668595adf0b6865a34d6ef
2013-09-22don't copy twiceEike Rathke
Change-Id: I664f4fed663ee41ae8f5b857401fbc4a24d02ba5
2013-09-22handle canonicalization better and share implEike Rathke
Change-Id: I82c1b899f88e348cfa798558b63b2264d997c33b
2013-09-21moved LANGUAGE_DONTKNOW impl detection upEike Rathke
Change-Id: Iba2c7f03420a709c5ee6338c1504b1133a8cb643
2013-09-21default ctor LangID acutally is initializedEike Rathke
So make registerImpl() use theDontKnow instead of creating temporary instances. Change-Id: Ibd10a80da5dd4355c33cf525b21158ec56a1360e
2013-09-21register separate theSystemLocale for faster accessEike Rathke
Change-Id: I0fc5938bd2c0157471539217806ad7844d765e8d
2013-09-21added registerImpl() debug counterEike Rathke
Change-Id: I84a79cbbbe06bdf1ae9e77d9cb5d429c6750fe21