summaryrefslogtreecommitdiff
path: root/i18npool
AgeCommit message (Collapse)AuthorFilesLines
2016-10-06coverity#1373441 Side effect in assertionCaolán McNamara1-10/+20
Change-Id: I10a8298e5379fa93a5d3616202a7802c0eda1cbb
2016-10-01silence coverity#1373441 Side effect in assertionCaolán McNamara1-2/+4
Change-Id: I1cf7b7d20a0b567c7363c5a9abc5bf1195b57262
2016-09-30i18npool: fix loplugin:cppunitassertequals warningsMiklos Vajna3-83/+83
Change-Id: I2ebe54af7b769189e248b1a3af55ee1b6a66174a Reviewed-on: https://gerrit.libreoffice.org/29399 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
2016-09-26Paraguayan locales [es-PY][gug-PY] use ₲, Gs and G currency symbolsEike Rathke2-4/+32
Gs respectively G were used as default so far, make them use the "real" currency symbol ₲ instead, but support and offer also both others for both locales. As discussed on the l10n list, https://listarchives.libreoffice.org/global/l10n/msg10167.html and thread. Change-Id: I5c60baa81f5a08029f524c9890bb6238d510f7f2
2016-09-23Updating cu collation data for Unicode 9.0 and CLDR 30Aleksandr Andreev1-18/+10
See http://unicode.org/cldr/trac/changeset/12851 Change-Id: Idce0985c3015a0bfc24cb44a5abdf0eb86e5d183 Reviewed-on: https://gerrit.libreoffice.org/28969 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2016-09-23tdf#100726 Improve readability of OUString concatinationAsela Dasanayaka1-7/+1
concat string in module i18npool to improve readability Change-Id: I7f447d64703cf5eb07742329ff2656f67214898b Reviewed-on: https://gerrit.libreoffice.org/29206 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: jan iversen <jani@documentfoundation.org>
2016-09-22tdf#53698: Cache more than 1 item in NumberFormatCodeMapperMaarten Bosmans2-55/+37
In zforlist.cxx the function SvNumberFormatter::GetPreviewStringGuess switches between the system locale and en_US in order to guess the formatting of a number. This results in poor performance, because in the created SvNumberFormat only the last used locale is cached. Caching more than 1 entries improves the load time for the document attached to tdf#53698 from 90s to 60s in case of non en_US locales. Change-Id: Id0eb4447dea6213015e2d958d8303a1e7892487a Reviewed-on: https://gerrit.libreoffice.org/29136 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-09-13Resolves: tdf#101924 fatal exception on Sounds like Japanese optionsCaolán McNamara1-2/+2
suspected regression from commit 1a967fead616b201535449fa812775c88d5b2e3b Author: Eike Rathke <erack@redhat.com> Date: Tue Mar 24 15:53:23 2015 +0000 do not include non-mask bits in masks Change-Id: Ic35a4aecc4834fc255eae81d3d83cc4e74618604 Reviewed-on: https://gerrit.libreoffice.org/28764 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr>
2016-09-13loplugin:override: No more need for the "MSVC dtor override" workaroundStephan Bergmann28-28/+28
The issue of 362d4f0cd4e50111edfae9d30c90602c37ed65a2 "Explicitly mark overriding destructors as 'virtual'" appears to no longer be a problem with MSVC 2013. (The little change in the rewriting code of compilerplugins/clang/override.cxx was necessary to prevent an endless loop when adding "override" to OOO_DLLPUBLIC_CHARTTOOLS virtual ~CloseableLifeTimeManager(); in chart2/source/inc/LifeTime.hxx, getting stuck in the leading OOO_DLLPUBLIC_CHARTTOOLS macro. Can't remember what that isAtEndOfImmediateMacroExpansion thing was originally necessary for, anyway.) Change-Id: I534c634504d7216b9bb632c2775c04eaf27e927e
2016-09-03coverity#1372445 Uncaught exceptionCaolán McNamara2-2/+2
Change-Id: If28494c8727504c6f995576b59e6c79995e405a0
2016-09-01coverity#1372397 Uncaught exceptionCaolán McNamara2-2/+2
Change-Id: I5baed239582f91a30c451eb26c46ea9bf33c92a4
2016-08-30loplugin:stringconstant: adapt to improved OUStringLiteral1 (i18npool)Stephan Bergmann3-12/+12
Change-Id: If4bc7dd5af49cca85f474e817cc3cc358c2b48c2
2016-08-26loplugin:refcounting: also cover temporaries being directly stack managedStephan Bergmann12-30/+34
Change-Id: Ib0f7c60df1d2fba0d4d9d3fa6faf3bb97867ebc0
2016-08-18Resolves: tdf#101572 New Belarusian Ruble BYN/Br for [be-BY]Eike Rathke1-1/+8
Change-Id: I742ca7ae410f49cfa84e595433b241c4a7ca9ecb
2016-08-16Native Numbers: update list of supported languagesLaurent Balland-Poirier1-8/+8
Change-Id: I3a6ef21e1d46aeecb5bfd84e43dd2563b201de0a Reviewed-on: https://gerrit.libreoffice.org/28170 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2016-08-11DKK currency symbol is 'kr.' not 'kr' also for [fo-FO] and [kl-GL]Eike Rathke2-6/+20
Change-Id: I33d5c499da40c91875918f215c0470748ec1ff93
2016-08-10DKK currency symbol is 'kr.' not 'kr'Eike Rathke1-6/+13
Change-Id: I35078b36c803e73538a23bbc9cdc5ddd13a3835c
2016-08-05loplugin:countusersofdefaultparams in framework..lotuswordproNoel Grandin2-2/+2
Change-Id: I9833d85eb6543e996b0f357657c53b1c076ecde4 Reviewed-on: https://gerrit.libreoffice.org/27898 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-07-27improve passstuffbyref return analysisNoel Grandin6-6/+6
Change-Id: I4258bcc97273d8bb7a8c4879fac02a427f76e18c Reviewed-on: https://gerrit.libreoffice.org/27317 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-07-26Resolves: tdf#100046 the dreaded 1945-04-02 Double DST, also tdf#79663Eike Rathke2-246/+4
A coward not having changed this earlier, partially taken from a patch that was submitted for tdf#79663 but broke API, thanks to Isamu Mogi again. This removes all the clutter around timezone and DST correction that was necessary for early ICU versions, which apparently gets things right now and the clutter can still be confused by corner cases. Change-Id: I9a90f933e8db8c6e0db145520ebf71cc27621abc
2016-07-22crashtesting: fix tdf92993-1.docx failureCaolán McNamara2-1/+17
Change-Id: I76f09a09fd6c3b114ba74737d4a1ba5dad0fd28f
2016-07-15new loplugin unnecessary overrideNoel Grandin2-25/+25
Change-Id: I88d3e33823d68745b98625050a8a274f9ef04bcb Reviewed-on: https://gerrit.libreoffice.org/27135 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
2016-07-08Resolves: tdf#100452 class Date full (BCE,CE) proleptic Gregorian calendarEike Rathke2-8/+16
... implementing signed years with year 0 gap. Date(31,12,-1) last day BCE Date(1,1,1) first day CE New class Date member functions: * AddYears(sal_Int16) to be used instead of aDate.SetYear(aDate.GetYear()+sal_Int16) to handle year 0 gap. * convenience GetNextYear() to be used insted of GetYear()+1 * convenience GetPrevYear() to be used insted of GetYear()-1 * AddMonths(sal_Int32) * operator=(const css::util::Date&) New class DateTime member functions: * operator=(const css::util::DateTime&) Made some conversion ctors explicit, specifically Date(sal_Int32) Adapted hopefully all places that used a sal_uInt16 year to use sal_Int16 where appropriate. Eliminated some quirks in date handling found on the fly. Added era handling to i18npool icu calendar setting interface, which missing was responsible for 0001-01-01 entered in Calc being set as -0001-01-01, hence subtracting one day resulted in -0002-12-31. Change-Id: I77b39fba9599ebd5067d7864f6c9ebe01f6f578f Reviewed-on: https://gerrit.libreoffice.org/27049 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins <ci@libreoffice.org>
2016-06-29move #includes to top of fileNoel Grandin1-3/+2
instead of being randomly embedded somewhere deep inside the CXX code. Found with: git grep -nP '^#include' -- *.cxx | sort -g -k 2 -t : Change-Id: I9ee432d3b665ecb6ec600bd51cc4b735a1b1127a Reviewed-on: https://gerrit.libreoffice.org/26764 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2016-06-16no-break space between number and percent sign, tdf#63272Eike Rathke2-4/+4
Change-Id: Ia240d52ba1edffa70d5e50fee82f48102cc2fe7e
2016-06-13remove the correct but unwanted no-break space in percentage, tdf#63272Eike Rathke2-4/+4
As per l10n request https://listarchives.libreoffice.org/global/l10n/msg09997.html Change-Id: I4f83c85abc15c12f77ac478589736cd799760832
2016-06-13Fix typosAndrea Gelmini1-1/+1
Change-Id: Ic3efae53430fbb2c1eb7962c3cf69bf99315e55b Reviewed-on: https://gerrit.libreoffice.org/26202 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: jan iversen <jani@documentfoundation.org>
2016-06-09tdf#94698 cleanup Makefiles. Get rid of udkapi and offapiGleb Mishchenko4-16/+4
This patch changes occurences in makefiles from $(eval $(call gb_CppunitTest_use_api,comphelper_test_config, \ udkapi \ offapi \ )) to $(eval $(call gb_CppunitTest_use_sdk_api,comphelper_test_config)) (corrected instead of abandon, jani) Change-Id: Ic96ec65d82d7452e288f05a8b6d576ef543b068e Reviewed-on: https://gerrit.libreoffice.org/23426 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: jan iversen <jani@documentfoundation.org> Tested-by: jan iversen <jani@documentfoundation.org>
2016-06-06no-break space between number and percent sign, tdf#63272Eike Rathke36-72/+72
Change-Id: Ifa02ad6bd1d06dc44a776b3a4dbf6c4b366394fc
2016-06-02[PATCH] up the free usage formatindex start from 50 to 60Eike Rathke27-271/+275
In preparation of adding some builtin format codes, actually already NF_FRACTION_3 and NF_FRACTION_4 needed that. Change-Id: I734a1ef5e6405aceaace7d44e8901a6183dc2a64
2016-06-02tdf#63272 Fix location of percent sign for TurkishMuhammet Kara1-2/+2
Change-Id: I6f2d1c2c947e01a686fdb7a7f175dd7541924afa Reviewed-on: https://gerrit.libreoffice.org/25805 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2016-06-01percentage format with no-break space, tdf#63272Eike Rathke1-2/+2
Change-Id: I53968fb15b6e0d6e1ab5cedb7a9b6c4ffae8e534
2016-05-31Resolves: tdf#63272 [fi-FI] percentage format with no-break spaceEike Rathke1-2/+2
Caveat, the space needs to be quoted, otherwise it is taken as the group separator that when trailing a number divides the number by 1000. Change-Id: Ic24b90d500a6c9351ef7463b2b1adf9d066442df
2016-05-31teach refcounting clang plugin about uno::ReferenceNoel Grandin9-19/+28
uno::Reference is only allowed to used with classes that have a ::static_type member. So convert all those places to rtl::Reference. Maybe we need some LIBO_INTERNAL_ONLY constructors on rtl::Reference and uno::Reference to make this a little smoother? Change-Id: Icdcb35d71ca40a87b1dc474096776412adbfc7e3 Reviewed-on: https://gerrit.libreoffice.org/25516 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-05-28Estonian localization of aboveWord and belowWordMihkel Tõnnov1-2/+2
Change-Id: Ie872c593c531b99360efe7fcf807e76cb88acb79
2016-05-18add D.M.Y date pattern to Gaelic [gd-GB]Eike Rathke1-0/+1
Apparently people don't like to use the defined D/M/Y form. Per request of Michael Bauer. Change-Id: Iea85fb142f97b6a26c9c2f535176bc96ef6af5b5
2016-05-17change Gaelic [gd-GB] QuotationStart to U+2019Eike Rathke1-1/+1
Which is "’" RIGHT SINGLE QUOTATION MARK but due to Gaelic use of ' apostrophe as in a' d' the activated AutoCorrection in an otherwise English context turns it into a typographic left single quotation mark, which looks odd. Per request of Michael Bauer of the l10n team. Change-Id: If6b542636aad2a05b6f4b58f354b96becbf5f8dc
2016-05-11convert MappingType to scoped enumNoel Grandin4-25/+25
Change-Id: I1f00e1fbdb9213d0c2f30da116684b77842282f5 Reviewed-on: https://gerrit.libreoffice.org/24851 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-05-10Add SAL_FALLTHROUGH, where apparently appropriateStephan Bergmann1-0/+1
Change-Id: I041971ad00b6b2e41509fa6b877c0563748f1336
2016-05-10Replace fallthrough comments with new SAL_FALLTHROUGH macroStephan Bergmann7-13/+13
...which (in LIBO_INTERNAL_ONLY) for Clang expands to [[clang::fallthrough]] in preparation of enabling -Wimplicit-fallthrough. (This is only relevant for C++11, as neither C nor old C++ has a way to annotate intended fallthroughs.) Could use BOOST_FALLTHROUGH instead of introducing our own SAL_FALLTHROUGH, but that would require adding back in dependencies on boost_headers to many libraries where we carefully removed any remaining Boost dependencies only recently. (At least make SAL_FALLTHROUGH strictly LIBO_INTERNAL_ONLY, so its future evolution will not have any impact on the stable URE interface.) C++17 will have a proper [[fallthroug]], eventually removing the need for a macro altogether. Change-Id: I342a7610a107db7d7a344ea9cbddfd9714d7e9ca
2016-04-28i18npool: fix Android buildMiklos Vajna1-19/+19
Change-Id: If7321acf4cb8542709cd3f2b418af97586862d46
2016-04-28clang-tidy modernize-loop-convert in h-l/*Noel Grandin9-52/+49
Change-Id: I843528327b25d18476f8959cabba16371213a48a Reviewed-on: https://gerrit.libreoffice.org/24460 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-04-24unit test for tdf#99468Eike Rathke1-0/+23
Change-Id: I833ad2779d0eda6f5183b2dd062dffaa410a7937
2016-04-24Resolves: tdf#99468 do greedy '*' match if substring match is not allowedEike Rathke1-8/+32
Change-Id: I89ac29b7e8c2e8c567e85a5025dbc1f50050465d
2016-04-21loplugin:salbool: sal_Bool[] -> bool[]Stephan Bergmann2-2/+2
Change-Id: I3c5bf7a53c9ae173f8fce885ecf022f092aa43a9
2016-04-20loplugin:salbool: Automatic rewrite of sal_False/TrueStephan Bergmann16-34/+34
Change-Id: I3f7f71f05db09219f0de3ec14bdb56bd16fb0c8d
2016-04-18check API call argument valueEike Rathke1-0/+3
Change-Id: I5eb0fbd6a6671c2cded38800c3223bccf0f7ff60
2016-04-18remove old commented out codeEike Rathke1-1/+0
Change-Id: I6871370341c8533e93f820e8f71ce09fe3d4d7be
2016-04-18clang-tidy performance-unnecessary-copy-initializationNoel Grandin1-28/+22
probably not much performance benefit, but it sure is good at identifying leftover intermediate variables from previous refactorings. Change-Id: I3ce16fe496ac2733c1cb0a35f74c0fc9193cc657 Reviewed-on: https://gerrit.libreoffice.org/24026 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-04-12Avoid reserved identifiersStephan Bergmann1-31/+31
Change-Id: Iac8e8e78c3a3f58e8a45b1f28b7d3bb884dd817e