summaryrefslogtreecommitdiff
path: root/i18nlangtag
AgeCommit message (Collapse)AuthorFilesLines
2019-12-19sal_Char->char in formula..i18npoolNoel Grandin2-27/+27
Change-Id: I765979f41842befcf25909944100d1caa97f81a8 Reviewed-on: https://gerrit.libreoffice.org/85476 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2019-11-28Resolves: tdf#129045 add Guadeloupean Creole French [gcf-GP] to language listEike Rathke1-0/+1
Change-Id: I8c595cb81ab2017d6c1ec95501f06dade081093a Reviewed-on: https://gerrit.libreoffice.org/83958 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins
2019-11-22Extend loplugin:external to warn about classesStephan Bergmann2-2/+8
...following up on 314f15bff08b76bf96acf99141776ef64d2f1355 "Extend loplugin:external to warn about enums". Cases where free functions were moved into an unnamed namespace along with a class, to not break ADL, are in: filter/source/svg/svgexport.cxx sc/source/filter/excel/xelink.cxx sc/source/filter/excel/xilink.cxx svx/source/sdr/contact/viewobjectcontactofunocontrol.cxx All other free functions mentioning moved classes appear to be harmless and not give rise to (silent, even) ADL breakage. (One remaining TODO in compilerplugins/clang/external.cxx is that derived classes are not covered by computeAffectedTypes, even though they could also be affected by ADL-breakage--- but don't seem to be in any acutal case across the code base.) For friend declarations using elaborate type specifiers, like class C1 {}; class C2 { friend class C1; }; * If C2 (but not C1) is moved into an unnamed namespace, the friend declaration must be changed to not use an elaborate type specifier (i.e., "friend C1;"; see C++17 [namespace.memdef]/3: "If the name in a friend declaration is neither qualified nor a template-id and the declaration is a function or an elaborated-type-specifier, the lookup to determine whether the entity has been previously declared shall not consider any scopes outside the innermost enclosing namespace.") * If C1 (but not C2) is moved into an unnamed namespace, the friend declaration must be changed too, see <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71882> "elaborated-type-specifier friend not looked up in unnamed namespace". Apart from that, to keep changes simple and mostly mechanical (which should help avoid regressions), out-of-line definitions of class members have been left in the enclosing (named) namespace. But explicit specializations of class templates had to be moved into the unnamed namespace to appease <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92598> "explicit specialization of template from unnamed namespace using unqualified-id in enclosing namespace". Also, accompanying declarations (of e.g. typedefs or static variables) that could arguably be moved into the unnamed namespace too have been left alone. And in some cases, mention of affected types in blacklists in other loplugins needed to be adapted. And sc/qa/unit/mark_test.cxx uses a hack of including other .cxx, one of which is sc/source/core/data/segmenttree.cxx where e.g. ScFlatUInt16SegmentsImpl is not moved into an unnamed namespace (because it is declared in sc/inc/segmenttree.hxx), but its base ScFlatSegmentsImpl is. GCC warns about such combinations with enabled-by-default -Wsubobject-linkage, but "The compiler doesn’t give this warning for types defined in the main .C file, as those are unlikely to have multiple definitions." (<https://gcc.gnu.org/onlinedocs/gcc-9.2.0/gcc/Warning-Options.html>) The warned-about classes also don't have multiple definitions in the given test, so disable the warning when including the .cxx. Change-Id: Ib694094c0d8168be68f8fe90dfd0acbb66a3f1e4 Reviewed-on: https://gerrit.libreoffice.org/83239 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2019-11-19Resolves: tdf#128855 Add Kabardian [kbd-RU] to language listEike Rathke1-0/+1
Change-Id: I84cfc3aa3f018de1d6950617fe2a06402ce2ac2b Reviewed-on: https://gerrit.libreoffice.org/83103 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins
2019-10-27Add bin/lo-xlate-langEike Rathke1-0/+5
Change-Id: Idd280f3cf9cc0e1b63a6afea3b3dcbe3ed34ac14
2019-10-01loplugin:stringadd in helpcompiler..ooxNoel Grandin1-2/+1
Change-Id: I858870d883de10a673d7ce2798bda8c8f511cee5 Reviewed-on: https://gerrit.libreoffice.org/79889 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2019-09-28Resolves: tdf#127786 cache Glibc locale string in LanguageTagImplEike Rathke1-10/+20
... for non-simple @modifier strings that are constructed using liblangtag, as loading resource strings needs it over and over and over again. Change-Id: Ib6a74e5ddb44508aa41f101c200a508bfa4a13bd Reviewed-on: https://gerrit.libreoffice.org/79770 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins
2019-09-01Fix '..'Andrea Gelmini1-3/+3
To complete this: https://gerrit.libreoffice.org/#/c/78312/ This is a massive replace for ".." instead of "..." between words. It passed "make check" on Linux. Change-Id: I144d8061fca9f545c762941551e59dffdd3650e8 Reviewed-on: https://gerrit.libreoffice.org/78357 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Jenkins
2019-09-01Fix '..'Andrea Gelmini2-2/+2
To complete this: https://gerrit.libreoffice.org/#/c/78312/ This is a massive replace for lines ending with ".." instead of "..." It passed "make check" on Linux. Change-Id: I07fa7b2e30ba9ea17a1f9a5e21c57216ba958efe Reviewed-on: https://gerrit.libreoffice.org/78356 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Jenkins
2019-08-20Related: tdf#127011 add English (Nigeria) [en-NG] 0xA809 to language listEike Rathke1-0/+1
Change-Id: I017d68a7c86bf28e60f68d48208ecb13ddf9ac13 Reviewed-on: https://gerrit.libreoffice.org/77855 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins
2019-08-01tdf#126282 add English (Sri Lanka) [en-LK] 0xA409 to language listEike Rathke1-0/+1
Change-Id: I2b02498684c952f9a6bf8f6bc17a3355c3607aac Reviewed-on: https://gerrit.libreoffice.org/76807 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins
2019-07-31Improved loplugin:stringconstant (now that GCC 7 supports it): i18nlangtagStephan Bergmann1-1/+1
Change-Id: I04e013d61cc6b85fe6234f7d2934f22cc6c266e9 Reviewed-on: https://gerrit.libreoffice.org/76671 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2019-07-18It's Classical Armenian, not Classic [xcl-AM]Eike Rathke1-1/+1
Change-Id: I1c714c8a9ecfd3cf73e645e1693101e7fce433e4 Reviewed-on: https://gerrit.libreoffice.org/75856 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins
2019-06-05Related: tdf#125404 alias cmn-CN to zh-CN, cmn-TW to zh-TWEike Rathke2-0/+4
Map 'cmn' Mandarin Chinese with associated country for Simplified and Traditional to the technically used 'zh' macrolanguage code. Change-Id: Ifb8a31e728bbf828f13145513bc56a51684ea134 Reviewed-on: https://gerrit.libreoffice.org/73563 Tested-by: Jenkins Reviewed-by: Eike Rathke <erack@redhat.com>
2019-05-21tdf#42949 Fix IWYU warnings in i18nlangtag/Gabor Kelemen6-10/+5
Found with bin/find-unneeded-includes Only removal proposals are dealt with here. Change-Id: I8a40dc89e121bd121c1f90f5636eee65636cad17 Reviewed-on: https://gerrit.libreoffice.org/72014 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2019-05-04Resolves: tdf#123948 add English (Zambia) [en-ZM] to language listEike Rathke1-0/+1
Change-Id: I6632cacb7e713d4c7aaaedd50267b9e6029b0389 Reviewed-on: https://gerrit.libreoffice.org/71768 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins
2019-05-02Comment stuff and @addregexEike Rathke1-1/+5
Change-Id: Ia998176e193a98739b445f245f7cf8e8252f50eb
2019-05-02Adapt to realityEike Rathke1-2/+3
Did not find anything in i18nlangtag/source/isolang/mslangid.cxx since conversion to typed int. List all occurrences now. Change-Id: Ibaf81599cc16ee06d38eb3a1593fa838a8e36355
2019-04-25Re-generate from 3/13/2019 13.0 revisionEike Rathke1-2/+4
Only clarifications on 0x001A and 0x002E, plus two new reserved 0xEEEE and 0xF2EE. Note that the whole bunch of 0x1000 "assignments" is not handled and not listed here. Change-Id: I3d3e86052c8d36a2ac49db9caa167957b5468ec3
2019-04-25Generate .lst.h output with LanguageType(0x....)Eike Rathke1-1/+1
Change-Id: If9dd9437ebdc83e9093d4ea00f31d2e2da95b7d2
2019-03-18Index is not needed for single getToken callMatteo Casalin1-2/+1
Change-Id: Ia0cc331998d735002dda5eedff8dad3bfbd53979 Reviewed-on: https://gerrit.libreoffice.org/69235 Tested-by: Jenkins Reviewed-by: Eike Rathke <erack@redhat.com>
2019-03-09out of line some heavily repeated functionsNoel Grandin1-0/+2
Change-Id: Icd9f7ebab89d6c2b166b6f42fd7682e89127fd51 Reviewed-on: https://gerrit.libreoffice.org/68903 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2019-03-08new loplugin constvarsNoel Grandin1-1/+1
detect static variables that can be made const. Thanks to mike kaganski for suggesting this. Here I introduce a new plugin feature - using markers in nearby comments to disable the plugin for specific vars. Some of this stuff was old debugging code. I removed the stuff that was older than 5 years. Change-Id: I6ec7742a7fdadf28fd128b592fcdf6da8257585c Reviewed-on: https://gerrit.libreoffice.org/68807 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2019-02-18Simplify containers iterations in [f-l]*Arkadiy Illarionov1-22/+15
Use range-based loop or replace with STL functions Change-Id: Ib3fab47318d1bfbb4df8f886a8cd9596525a420f Reviewed-on: https://gerrit.libreoffice.org/67914 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-10-20Turn LanguageTag::ScriptType into scoped enumStephan Bergmann1-1/+1
...to avoid -Werror,-Wshadow from Clang trunk with <https://reviews.llvm.org/D52400> "Improve -Wshadow warnings with enumerators", warning about shadowing of UNKNOWN in e.g. enum ESCHER_BlibType in include/filter/msfilter/escherex.hxx Change-Id: Id6608474e76730be4c439f480c31f661b8b5748e Reviewed-on: https://gerrit.libreoffice.org/62013 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2018-10-18clang-tidy readability-simplify-boolean-exprNoel Grandin1-4/+2
Change-Id: I78fa01a6c803dec782488490b730af3a11814d64 Reviewed-on: https://gerrit.libreoffice.org/61902 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-10-09Extend loplugin:redundantinline to catch inline functions w/o external linkageStephan Bergmann2-3/+3
...where "inline" (in its meaning of "this function can be defined in multiple translation units") thus doesn't make much sense. (As discussed in compilerplugins/clang/redundantinline.cxx, exempt such "static inline" functions in include files for now.) All the rewriting has been done automatically by the plugin, except for one instance in sw/source/ui/frmdlg/column.cxx that used to involve an #if), plus some subsequent solenv/clang-format/reformat-formatted-files. Change-Id: Ib8b996b651aeafc03bbdc8890faa05ed50517224 Reviewed-on: https://gerrit.libreoffice.org/61573 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2018-08-29new loplugin:oustringbufferNoel Grandin1-3/+3
look for places where we are appending the temporary result of adding strings together, to an OUStringBuffer, where we could rather call append repeatedly and avoid the temporary creation Change-Id: I481435124291ac7fb54b91a78344a9fe5b379a82 Reviewed-on: https://gerrit.libreoffice.org/59708 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-08-17tdf#119117: get phonebook sort work by tweaking ICU call mechanismJulien Nabet1-2/+4
Using "phonebook" as variant does't work with de_DE since it gives de_DE_PHONEBOOK whereas icu expects de__PHONEBOOK See http://userguide.icu-project.org/locale#TOC-Variant-code, Level 2 canonicalization, 8. So let variant empty and use the fourth arg of icuLocale "keywords" See constructors in http://icu-project.org/apiref/icu4c/classicu_1_1Locale.html Change-Id: I6c216c86cdd32abfa477c14a80d1b8794b536900 Reviewed-on: https://gerrit.libreoffice.org/58870 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2018-08-17Override [sd-IN] with [sd-Deva-IN]Eike Rathke2-2/+3
Deva is not listed as Suppress-Script for sd in https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry Also, this seems to be what MS expects, see https://msdn.microsoft.com/en-us/library/cc233965 Change-Id: I974b0032c1c0485135690e68ed0a71c43f2adf6e Reviewed-on: https://gerrit.libreoffice.org/59217 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins
2018-07-30Add missing sal/log.hxx headersGabor Kelemen2-0/+2
rtl/string.hxx and rtl/ustring.hxx both unnecessarily #include <sal/log.hxx> (and don't make use of it themselves), but many other files happen to depend on it. This is a continuation of commit 6ff2d84ade299cb3d14d4110e4cf1a4b8070c030 to be able to remove those unneeded includes. This commit adds missing headers to every file found by: grep -FwL sal/log.hxx $(git grep -Elw 'SAL_INFO|SAL_INFO_IF|SAL_WARN|SAL_WARN_IF|SAL_DETAIL_LOG_STREAM|SAL_WHERE|SAL_STREAM|SAL_DEBUG') to directories from filter to jvmfwk Change-Id: I2a73d63f2aaef5f26d7d08957daaa8a30b412ac5 Reviewed-on: https://gerrit.libreoffice.org/58204 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-07-27new loplugin:stringloop, and applied in variousNoel Grandin1-7/+6
look for OUString being appended to in a loop, better to use OUStringBuffer to accumulate the results. Change-Id: Ia36e06e2781a7c546ce9cbad62727aa4c5f10c4b Reviewed-on: https://gerrit.libreoffice.org/58092 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-07-26i18nlangtag: avoid -Werror=deprecated-copy (GCC trunk towards GCC 9)Stephan Bergmann1-6/+0
...by removing explicitly user-provided functions that do the same as their implicitly-defined counterparts, but may prevent implicitly declared copy functions from being defined as non-deleted in the future. (Even if a dtor was declared non-inline in an include file, the apparently-used implicitly-defined copy functions are already inline, so why bother with a non-inline dtor.) Change-Id: I6de6b84ebd177f494864d7de91e538fa5a64985c Reviewed-on: https://gerrit.libreoffice.org/58058 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2018-06-01loplugin: look for CPPUNIT_ASSERT_EQUALS with params swappedNoel Grandin1-1/+1
idea originally from either tml or moggi, can't remember which Change-Id: Id78d75035036d3aa1666e33469c6eeb38f9e624d Reviewed-on: https://gerrit.libreoffice.org/55126 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-05-24Remove presumably unused instsetoo_native/util/pack.lstStephan Bergmann1-3/+0
Its use has been removed with e161e35f55d0ff73d735fa4dbd578c072c1c3d38 "installer: Remove packager.pl" (and changes to the file itself also stopped in 2013). Change-Id: I3bf18849a80abd5b774f1a6030c514e5891e0350 Reviewed-on: https://gerrit.libreoffice.org/54769 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2018-05-15Resolves: tdf#117617 Add Iloko [ilo-PH] to language listEike Rathke1-0/+1
Change-Id: If8444a847fa652de8b7b834e08c3e5116721c987
2018-05-08Add Ju|’hoansi [ktz-NA] and Naro [nhr-BW] to language listEike Rathke1-0/+2
Change-Id: I65c048a7d52432a7d268b9a0f58aba7efc12a16e
2018-05-04Add Malay Arabic [ms-Arab-MY] and [ms-Arab-BN] to language list, both CTLEike Rathke3-3/+9
Change-Id: Iac7dddf8b29048c504b9ec695ecd08e5bf12a768 Reviewed-on: https://gerrit.libreoffice.org/53828 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com>
2018-03-18Use for-range loops in hwpfilter, i18n*, idl* and ioJulien Nabet2-27/+27
Change-Id: I980464162b73ed9ee0a09acbca1b9050af8d1027 Reviewed-on: https://gerrit.libreoffice.org/51492 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2018-03-01Visually align the table againEike Rathke1-524/+524
Change-Id: I1e68f06cd33608919ac9122521954f330b8cfe93
2018-03-01Generate entries with k0Eike Rathke1-4/+4
Change-Id: I2e1612610989723fa42263e6998c4750fb51c515
2018-03-01Resolves: tdf#116058 add Armenian [hy-IR] [hy-RU] [hyw-AM] [xcl-AM]Eike Rathke1-0/+4
Change-Id: I00890f8a7787c7cb9f6016c4283d38b25523a0c9
2018-03-01Re-generate from 12/1/2017 11.0 revision, no additions/deletionsEike Rathke1-462/+462
Unified layout with uppercase hex digits and single spaces, so the next comparison should be easier. Change-Id: I144a319e5f1e4275aef8ce0a66c82f97ab8070bc
2018-03-01Generate MS-LCID.lst with uppercase hex and unified spacesEike Rathke1-4/+9
As content and layout in the original PDF changes back and forth. Change-Id: I4666343f9c9d1bd779c80b9031f5b85de4363a58
2018-02-01i18nlangtag: MSVC: pragma warning: make more specific, remove obsoleteMike Kaganski1-6/+0
Change-Id: I88e2b2e68fbbc86639db986e8f430a90bd4b94f0 Reviewed-on: https://gerrit.libreoffice.org/48982 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2018-01-24Remove old comment left overEike Rathke1-1/+0
Change-Id: I5f6d47afc2f27b1033201b3fa280359a215f38b5
2018-01-23Adapt to svtools/inc/langtab.hrcEike Rathke1-5/+6
svtools/source/misc/langtab.src is dead since a while. Change-Id: I373f715d337a47f6ea1e935a7a50565f0e6b3ba2
2018-01-12More loplugin:cstylecast: i18nlangtagStephan Bergmann1-2/+2
auto-rewrite with <https://gerrit.libreoffice.org/#/c/47798/> "Enable loplugin:cstylecast for some more cases" plus solenv/clang-format/reformat-formatted-files Change-Id: I4ffae11ad940c0b4248bc6fb8baa86f17b52c203
2018-01-05ofz#4952 avoid liblangtag config when fuzzing enabledCaolán McNamara1-2/+10
Change-Id: I9f2b0cbb5108f57ec2f80ebe24f748c33ea9cf59 Reviewed-on: https://gerrit.libreoffice.org/47477 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-12-04Add Plautdietsch [pdt-CA] to language listboxEike Rathke1-0/+1
Change-Id: Icf2307649858721a7cde38e8fa892fc3cb1ff08c