summaryrefslogtreecommitdiff
path: root/i18nlangtag/source/languagetag
AgeCommit message (Collapse)Author
2016-04-21handle 'C' locale in simpleExtract()Eike Rathke
... so liblangtag isn't called and we explicitly have it known from there on as well. Also, don't set mbInitializedLocale=true in the LanguageTag ctor with Locale anymore as we don't know there if a semantically correct Locale was passed (which technically the 'C' locale is not). Instead, set it centrally in LanguageTag::registerImpl() where conversion to maBcp47 string takes place. Change-Id: I71551bd4b59d896c0674286edee816e05081ecd4
2016-04-20explicitly map 'C' locale and other known definitions to LanguageTagEike Rathke
Starting up a dbgutil build with LC_ALL=C gave i18nlangtag/source/languagetag/languagetag.cxx:1362: LanguageTagImpl::convertLocaleToLang: with bAllowOnTheFlyID invalid 'C' i18nlangtag/source/languagetag/languagetag.cxx:1533: LanguageTag::getLanguageFromLangtag: pLangT==NULL for 'C' i18nlangtag/source/languagetag/languagetag.cxx:1593: LanguageTag::getRegionFromLangtag: pRegionT==NULL for 'C' Nothing harmful in this case as the default fallback is 'en-US', but it also indicated that other known non-standard "locales" such as "sr-latin" or "german" were not resolved to the defined values. Likely such weird values are not in use anymore, but.. Change-Id: Ib3469354ceb236552540da5fd11d8f9e9c5ab1fd
2016-04-04loplugin:constantparam in i18nlangtagNoel Grandin
Change-Id: I3d7cbac7ca58f3de9771a1221196f851255f3fb9 Reviewed-on: https://gerrit.libreoffice.org/23802 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-03-03loplugin:unuseddefaultparams variousNoel Grandin
Change-Id: Ibf8489c957b307156689de4c7cb8440ddd4e4546 Reviewed-on: https://gerrit.libreoffice.org/22852 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-02-09Remove excess newlinesChris Sherlock
A ridiculously fast way of doing this is: for i in $(pcregrep -l -M -r --include='.*[hc]xx$' \ --exclude-dir=workdir --exclude-dir=instdir '^ {3,}' .) do perl -0777 -i -pe 's/^ {3,}/ /gm' $i done Change-Id: Iebb93eccbee9e4fc5c4380474ba595858a27ac2c Reviewed-on: https://gerrit.libreoffice.org/22224 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2015-11-24cppcheck: noExplicitConstructorCaolán McNamara
Change-Id: I1934441858baeeb41a46f694dbcef2d846b308b7
2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann
Change-Id: Idb2987dc7641c5b07d8bb99546cf5e5402032476
2015-10-19com::sun::star->css in i18nlangtagNoel Grandin
Change-Id: I8a153a4b3a1bdb8a298c3c76a6b51693c42a0688 Reviewed-on: https://gerrit.libreoffice.org/19444 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2015-10-14Pass ENABLE_LIBLANGTAG into code via config_liblangtag.hStephan Bergmann
...so changes to ENABLE_LIBLANGTAG during configure cause proper recompilation of source code Change-Id: I282623c885b83e3bf7d94f6f364c5031c012f058
2015-10-14Fix various warnings in --disable-liblangtag codeStephan Bergmann
Change-Id: I4dbc7ead359fc4cae0ac9d5eb98523590dd8954e
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-04idl,framework,forms: inline some use-once typedefsNoel Grandin
Change-Id: Icb4908c274ec0778af7ed9fe2d935bf6723fedfb
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-04-15remove unnecessary use of void in function declarationsNoel Grandin
ie. void f(void); becomes void f(); I used the following command to make the changes: git grep -lP '\(\s*void\s*\)' -- *.cxx \ | xargs perl -pi -w -e 's/(\w+)\s*\(\s*void\s*\)/$1\(\)/g;' and ran it for both .cxx and .hxx files. Change-Id: I314a1b56e9c14d10726e32841736b0ad5eef8ddd
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-03and some replacement code for lt_tag_get_privateuse(), sigh..Eike Rathke
Change-Id: Ida5064f32a16269b16ec16c0ce9f42ea895641f9
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