summaryrefslogtreecommitdiff
path: root/i18npool
AgeCommit message (Collapse)Author
2019-02-09loplugin:indentation in helpcompiler..ioNoel Grandin
Change-Id: Ia3f05662cc9542feeac3096d29e9dec6d1858620 Reviewed-on: https://gerrit.libreoffice.org/67558 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2019-01-22Use std::string instead of fixed-size array to hold stringStephan Bergmann
Change-Id: I8477271f4de4d24cf1019c381ab3b56db2016be9 Reviewed-on: https://gerrit.libreoffice.org/66749 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2019-01-22o3tl::make_unique -> std::make_unique in i18npool...reportdesignGabor Kelemen
Since it is now possible to use C++14, it's time to replace the temporary solution with the standard one Change-Id: I8bee1344f7df82536f31bc5e4ec4fd379cac1d04 Reviewed-on: https://gerrit.libreoffice.org/66704 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2019-01-11Replace OUStringBuffer::appendCopy with append(std::u16string_view)Stephan Bergmann
...which is more general Change-Id: I94f28f8eda887120cf5f143b4549e0339b60e6a7 Reviewed-on: https://gerrit.libreoffice.org/66155 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2018-12-24tdf#120703 PVS: V560 A part of conditional expression is always true/falseMike Kaganski
Change-Id: I5ca32214bab4b26208aecaa98eecc2a6297d9093 Reviewed-on: https://gerrit.libreoffice.org/65592 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2018-12-20Fix typo in codeAndrea Gelmini
It passed "make check" on Linux Change-Id: I577f6ff01e8216ed85556ce4b3365fd924f75608 Reviewed-on: https://gerrit.libreoffice.org/65468 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2018-12-13loplugin:useuniqueptr in i18npoolNoel Grandin
Change-Id: I57c6ce2a8c48bc87404e596b8843efd67ea0872d Reviewed-on: https://gerrit.libreoffice.org/65033 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-12-08Remove obsolete SAL_FALLTHROUGH completelyStephan Bergmann
...after 7ffdd830d5fb52f2ca25aa80277d22ea6d89970b "HAVE_CPP_ATTRIBUTE_FALLTHROUGH is always true now" Change-Id: I54e5ff4e036a6bb3e5774d1c0524158aae18e937 Reviewed-on: https://gerrit.libreoffice.org/64800 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2018-12-07loplugin:singlevalfields extend to all static varsNoel Grandin
Change-Id: Ic238bb5291539fd1b7e98cb4afc9b25f37e7d528 Reviewed-on: https://gerrit.libreoffice.org/64710 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-12-04NNNN already includes LongDateDayOfWeekSeparator, do not duplicateEike Rathke
Seems these were always wrong in some locales. Change-Id: I5dfc89a607d57c19034d6fac07a07bf3c5395ed8 Reviewed-on: https://gerrit.libreoffice.org/64541 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins
2018-12-04Fix af_NA wrong separator inheritance, use en_NA instead of af_ZA (en_ZA)Eike Rathke
It didn't matter originally, but en_ZA separators changed with commit 5c10c448b299faf43d9df28bdb9dc4fbb00540aa CommitDate: Mon Sep 3 13:38:13 2018 +0200 tdf#119613 [*-ZA] decimal separator is comma, group separator is space and commit 464154aa26ae77883dd59fcbaab9e084aa035c9d CommitDate: Mon Sep 3 13:38:23 2018 +0200 Related: tdf#119613 inherit af_ZA separators from identical en_ZA so the separators didn't match the formats inherited from en_NA anymore. Change-Id: Iccf951b27b5575706e0f6bae12b5df4b53e335ac
2018-12-04Some date format corrections, tdf#116868 follow-upEike Rathke
Order is 'D, MMM YYYY' instead of 'MMM, D YYYY' 'NNNN, ' displays separator twice. Change-Id: Id84af3e1bb94dad0e8405c680e63f48f38415fba
2018-12-03Resolves: tdf#116868 add Hausa (Nigeria) [ha-Latn-NG] locale dataEike Rathke
Derived from ha_Latn_GH.xml with changes according to CLDR and https://ssl.icu-project.org/icu-bin/locexp?d_=en&_=ha_NG Change-Id: Id7325ab9a2e17d0d5fdad45ce675987695a90ef0 Reviewed-on: https://gerrit.libreoffice.org/64454 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2018-12-01A leading or trailing group separator character is not a group separatorEike Rathke
Also a group separator character followed by a non-digit is not. Change-Id: Id57e43fe7692706c5532fb05ad394224265c2750 Reviewed-on: https://gerrit.libreoffice.org/64358 Tested-by: Jenkins Reviewed-by: Eike Rathke <erack@redhat.com>
2018-11-30[API CHANGE] Resolves: tdf#42518 new KParseTokens::GROUP_SEPARATOR_IN_NUMBEREike Rathke
Default unset bit now does not accept/skip group separators in numbers. See .idl description comment for why this is incompatible and how. This actually uncovered a "bug" (or at least unexpected) in the Math parser that parsed "0," as one entity instead of "0" followed by ",". As obtaining the text form appends a blank after each entity the sw/qa/extras/rtfexport/rtfexport.cxx testMathEqarray() testcase had to be adapted. Change-Id: I2b605742ab3d8a9bb81ad6880faf050535dc80fa Reviewed-on: https://gerrit.libreoffice.org/64270 Tested-by: Jenkins Reviewed-by: Eike Rathke <erack@redhat.com>
2018-11-25tdf#120703 PVS: V560 A part of conditional expression is always true/falseMike Kaganski
Change-Id: I2ae298f49ceba8059cd7236431db9a4d9a46b125 Reviewed-on: https://gerrit.libreoffice.org/63992 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2018-11-19loplugin:singlevalfieldsNoel Grandin
Change-Id: If21bdaa8431a4d40bbf70a6e9a119d77a3596012 Reviewed-on: https://gerrit.libreoffice.org/63487 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-11-16loplugin:buriedassign in dbaccess..ooxNoel Grandin
Change-Id: Ic0ca695a1d9d05418213475a68e233953136cc8e Reviewed-on: https://gerrit.libreoffice.org/63468 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-11-12tdf#120703 PVS: V560 Properly compare current to cDecimalSepAltMike Kaganski
V560 A part of conditional expression is always false: current == cDecimalSep. Assuming a copypaste error in commit 21052ba2edeef9e16bf90fea62f007b1131c73c0. Compare to a similar case below (line 817). Change-Id: Iebd84aa8df3e37b9a5e4fdc7ce7a25a0704a260f Reviewed-on: https://gerrit.libreoffice.org/63269 Tested-by: Jenkins Reviewed-by: Eike Rathke <erack@redhat.com>
2018-11-12fix missing "else" in transliterateBulletNoel Grandin
ever since commit f1830339193643466c1dd76dc37594c21ab3ac4f Date: Tue Apr 8 15:07:08 2003 +0000 INTEGRATION: CWS calc06 (1.2.44); FILE MERGED not it will make much difference to the logic found by experimental loplugin:indentation Change-Id: I2d724ababa1664a87f2822ed8b59f3e3cd50e5e4 Reviewed-on: https://gerrit.libreoffice.org/63287 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-11-10clang-tidy: (WIP) bugprone-too-small-loop-variable findings 2Tamás Zolnai
Change-Id: I1ddf3fe0e5fad265ae14712a23469b684253079d Reviewed-on: https://gerrit.libreoffice.org/63241 Tested-by: Jenkins Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2018-11-10tdf#120703 PVS: V547 Expression is always true/falseMike Kaganski
Change-Id: I0b3c407331bfa1fa0c5003250d327d4f26de3643 Reviewed-on: https://gerrit.libreoffice.org/63235 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2018-11-07loplugin:collapseif in sdext..svxNoel Grandin
Change-Id: I188d9e9b53e00acfbae3c7acd54de28f084c4b3f Reviewed-on: https://gerrit.libreoffice.org/62985 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-11-06convert some macros to local functionsNoel Grandin
Change-Id: If2c89f0f53615f6200b6cd1fb6267cc9b47df927 Reviewed-on: https://gerrit.libreoffice.org/62884 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-11-01gbuild: rename value OS=IOS to OS=iOSMichael Stahl
This gets rid of the horrible hack in gbuild.mk to accomodate the case-incorrect iOS platform makefiles that cannot be renamed without upsetting git on file systems that sadly lack the case sensitivity feature. Keep the macro defined to IOS though. Change-Id: I1022bfef4900da00e75fc1ccce786b20f8673234 Reviewed-on: https://gerrit.libreoffice.org/62705 Tested-by: Jenkins Reviewed-by: Michael Stahl <Michael.Stahl@cib.de> Reviewed-by: Tor Lillqvist <tml@collabora.com> Tested-by: Tor Lillqvist <tml@collabora.com>
2018-10-23clang-tidy performance-unnecessary-copy-init in editeng..i18npoolNoel Grandin
Change-Id: I2ee2c8d15d8700cfaa1697363da4557c741a5f36 Reviewed-on: https://gerrit.libreoffice.org/62216 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-10-22loplugin:staticvar in variousNoel Grandin
looks for variables that can be declared const and static i.e. they can be stored in the read-only linker segment and shared between different processes Change-Id: I8ddc6e5fa0f6b10d80c75d5952df8ddd311cf892 Reviewed-on: https://gerrit.libreoffice.org/61591 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-10-19clarify Calendar_jewish::getDisplayString a littleCaolán McNamara
Change-Id: I7abecaebd296d404e6a095b2befe5da07d346e75 Reviewed-on: https://gerrit.libreoffice.org/62017 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2018-10-17clang-tidy readability-redundant-smartptr-getNoel Grandin
redundant get() call on smart pointer Change-Id: Icb5a03bbc15e79a30d3d135a507d22914d15c2bd Reviewed-on: https://gerrit.libreoffice.org/61837 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-10-15clang-tidy misc-redundant-expressionNoel Grandin
Change-Id: I708b0b486a233071f95592ccdb97f27fc35a23c4 Reviewed-on: https://gerrit.libreoffice.org/61783 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 Bergmann
...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-10-01Resolves: tdf#119613 [*-ZA] default to ISO 8601 date formatEike Rathke
This also made it necessary to adapt the unit tests that checked for the old default format in output. Change-Id: Ie7bc78d1e5a17e5cb6f52d5ed1ab42db80f07d2e Reviewed-on: https://gerrit.libreoffice.org/61200 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins
2018-09-30Deleted whitespace, use correct branding, fixed typosMatthias Seidel
(cherry picked from commit 6cf656f2bbeb39e5a46984c58b32098ed6185699) Change-Id: I88724806f5b8eb809661d4e754726a6246d47e8a Reviewed-on: https://gerrit.libreoffice.org/61157 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2018-09-26loplugin:useuniqueptr in lcl_LookupTableHelperNoel Grandin
Change-Id: I8ee34ced61a23d7ade71b25f547c607cd4fe37bb Reviewed-on: https://gerrit.libreoffice.org/60968 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-09-20Avoid U+21D2 Rightwards Double Arrow characterEike Rathke
Change-Id: I181e5ad44027e261b3b8ad45c3d3d8cfcd23f987
2018-09-20Document rules for use of nominative / genitive / partitive case month namesEike Rathke
Change-Id: Ie322be2c85e1b652273565eb61a8b62f116b9f9e
2018-09-18loplugin:unusedmethodsNoel Grandin
Change-Id: I5f63ac44654ed3fc658e72e0d1148a5a22decc47 Reviewed-on: https://gerrit.libreoffice.org/60662 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-09-18loplugin:useuniqueptr in TestTextSearchNoel Grandin
Change-Id: Ifce0dc836ea8500105ebcf3302f37ad6968929ec Reviewed-on: https://gerrit.libreoffice.org/60607 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-09-17loplugin:external in i18npoolStephan Bergmann
...showing that print_node etc. are actually unused Change-Id: Ife7faf53dc2487a7ee0cfbe131a761ea18104945 Reviewed-on: https://gerrit.libreoffice.org/60538 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2018-09-10tdf#42949 Fix IWYU warnings in include/cppuhelper/*Gabor Kelemen
Found with bin/find-unneeded-includes Only removal proposals are dealt with here. Change-Id: Ib420e9216b8313f5ed7634ec375e39ceb741fd45 Reviewed-on: https://gerrit.libreoffice.org/59297 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-09-09loplugin:simplifyconstruct in helpcompiler..ioNoel Grandin
Change-Id: Ibdc1933b5d8d6be1fe42a7df93bd7e1c903bb39b Reviewed-on: https://gerrit.libreoffice.org/60202 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-09-03Related: tdf#119613 inherit af_ZA separators from identical en_ZAEike Rathke
Also LC_FORMAT is already inherited. Change-Id: I166ac1b50329430139d3f243454d7fdd2069e4ad Reviewed-on: https://gerrit.libreoffice.org/59920 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins
2018-09-03tdf#119613 [*-ZA] decimal separator is comma, group separator is spaceEike Rathke
Change-Id: I9152a419385cc894f973a7333ae03b75b7f79008 Reviewed-on: https://gerrit.libreoffice.org/59919 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2018-08-22Resolves: tdf#119399 add es-VE currency Bolivar Soberano VES Bs.S.Eike Rathke
Introduced on 2018-08-20 Change-Id: I1b10a0f3b2ff8037310e7cba9caceaacb0858463 Reviewed-on: https://gerrit.libreoffice.org/59462 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins
2018-08-22Fixed LongDateYearSeparatorMatthias Seidel
(cherry picked from commit ba13ae2c5b626b6e5ccd27c9f88e8e4dcc79729c) Change-Id: I408e1294a3c25d8b8fc036f40f754c20cfbe1653 Reviewed-on: https://gerrit.libreoffice.org/59426 Tested-by: Jenkins Reviewed-by: Eike Rathke <erack@redhat.com>
2018-08-21LongDateDaySeparator with blankEike Rathke
So LocaleDataWrapper::getLongDate() forms the correct long date string. Change-Id: I794a64c79706fe97922b12d319bb242a7994e579 Reviewed-on: https://gerrit.libreoffice.org/59392 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins
2018-08-21Fixed LongDateDaySeparatorMatthias Seidel
(cherry picked from commit 870f47795d6675d28ea2277e2e7cba64ebcee32b) Change-Id: Iaec68d103d3e7f27a0f118ca13e57ed0ce55832c Reviewed-on: https://gerrit.libreoffice.org/59382 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins
2018-08-21loplugin:useuniqueptr in OutlineNumberingNoel Grandin
Change-Id: I7413ac32e976ffa965de92f9339f838dec5d543a Reviewed-on: https://gerrit.libreoffice.org/59359 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 Nabet
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-16tdf#118127 fix date format duplications in Hungarian localeLászló Németh
– by adding and using narrow month names "jan."–"dec." (abbreviated month names are still Roman numbers for back-compatibility); – by adding ortographically incorrect, but "interoperable/back-compatible" typewriter & Excel format "YYYY.M.D."; – by replacing one of the "YYYY. MMM. D." by "YYYY. MM. DD.". Other changes: – replacing incorrect "YYYY. M. D." format with the ortographically correct "YYYY. MM. DD." format. We keep its long YYYY format for back-compatibility. (This system format is visible only on the extra page of the Date formatting list, so it's not an annoying duplication.) – abbreviated eras use non-breaking narrow spaces. Note: there is also a not so annoying duplication, the "YYYY-MM-DD HH:MM:SS", not on the first page of the date list in the dialog window and not in the XML file, but only on the second page of the date list. For back-compatibility, we keep this format in the XML file. Change-Id: I4c49d637710295395b75034aa50015a5f3719d89 Reviewed-on: https://gerrit.libreoffice.org/59171 Tested-by: Jenkins Reviewed-by: László Németh <nemeth@numbertext.org>