summaryrefslogtreecommitdiff
path: root/i18npool
AgeCommit message (Collapse)Author
2017-01-17replace #ifdef SOLARIS with #ifdef __sunMichael Stahl
Check for a macro that is defined by the compiler, we don't really need one defined by the build system. Change-Id: Iccb8e3198396881395c97a6b81690ebe64b7e9d2
2017-01-17tdf#105170: Ignore diacritics on precomposed charsKhaled Hosny
When ignoring diacritics, the old code just ignore combining marks which works when using decomposed forms (NFD) but does not work for precomposed forms (NFC). Instead, we now decompose, strip marks, then recompose, and use a nice icu::Transliterator that does the hard work for us. As a bonus, we should now handle surrogate pairs fine (most of the time). The new code (in ignoreDiacritics_CTL::folding()) might not be as efficient as the old code that used transliteration_Ignore::folding(), but it is less ugly and more easier to resonate with, or so I hope. Change-Id: If48c8be30527580cdd68f20b40a6533c5f258d83 Reviewed-on: https://gerrit.libreoffice.org/32826 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com>
2017-01-17new loplugin: useuniqueptr: helpcompiler..ioNoel Grandin
Change-Id: I6b394163c144e6b5540cb160abb613d56fe327de Reviewed-on: https://gerrit.libreoffice.org/33165 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-01-16tdf#104950 add English (Malaysia) [en-MY] locale dataEike Rathke
en-MY is a known locale with already assigned LangID and mapping, adding just its locale data will have it appear as 'en-MY' in the number formatter's Language listbox instead of "English (Malaysia)", but solves the users' problem. Change-Id: I32a7e9985d37c962d077531bc8d15162f8e2b48c
2017-01-14coverity#1398584 Uncaught exceptionCaolán McNamara
Change-Id: Ic5a269bee9cf1e481cd107d36dc190adc9715af5
2017-01-11Resolves: tdf#105209 CHF currency symbol is CHF instead of SFr.Eike Rathke
Change-Id: Ic216c7b901bf6da779e161f35e5143739267b066
2017-01-10coverity#1398526 Uncaught exceptionCaolán McNamara
Change-Id: I6b1d5b0049ec744ed87e13300e1f01a94f88202c
2017-01-10New loplugin:conststringvar: i18npoolStephan Bergmann
Change-Id: Ic02549364d0499c453f88bda358c78fce7fc4343
2017-01-09New loplugin:externvar: i18npoolStephan Bergmann
Change-Id: Id38d1fde0e0f6e08899e83697f586d513b635aad
2016-12-30cleanup tailing backslashesJochen Nitschke
Change-Id: Idb4bfc97e7d758c58118742affd9a9345c7a99f2 Reviewed-on: https://gerrit.libreoffice.org/32491 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-12-29use unique_ptr for xdictionaryJochen Nitschke
default destructors are good enough now Change-Id: I6d4ab68d2ee527f5f4e5696c3f093dc66cdc5b4c Reviewed-on: https://gerrit.libreoffice.org/32492 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-12-20make IOS generic DISABLE_DYNLOADING and explicit link to icudataCaolán McNamara
Change-Id: I515fb2e772e63fef00711c87200512ea1bed024c Reviewed-on: https://gerrit.libreoffice.org/32206 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2016-12-16icu genbrk built with enable-static can't find its data, help it outCaolán McNamara
Change-Id: I4e584a2d518d8d9a1e183cf4f5f76eaff349352d Reviewed-on: https://gerrit.libreoffice.org/32095 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2016-12-13tdf#66212 - Add Hebrew NATNUM1 to numbering-format menus.Yossi Zahn
Previously it was only accessible as "Native Numbering" and Locale option had to be set to Hebrew. Still to implement: rtf/ooxml/.doc export/import NATNUM2? Change-Id: Ife9943a7d21e8f69c2761007dcefdf3e223fc261 Reviewed-on: https://gerrit.libreoffice.org/31901 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins <ci@libreoffice.org>
2016-11-25Add 2 extra number formats for Hebrew localeYossi Zahn
Change-Id: I55fc91b49d38f155f6a42b7395b4b44bf6a8f1cf Reviewed-on: https://gerrit.libreoffice.org/31180 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2016-11-25show next free formatindex hint for errorsEike Rathke
Change-Id: I4252a572c1cef02ff5e7de0ecc78d84ddc806919
2016-11-25Correct spelling of "kislev" for he_IL locale datayossizahn
See e.g. https://he.wikipedia.org/wiki/%D7%9B%D7%A1%D7%9C%D7%95 Change-Id: I3bf935db50037ff418f269d81004bce4e7388097 Reviewed-on: https://gerrit.libreoffice.org/31178 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com>
2016-11-18loplugin:datamembershadowNoel Grandin
Change-Id: I8a737a2f22c7be9630a1f7562b4309e687bb85f9 Reviewed-on: https://gerrit.libreoffice.org/30948 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-11-11loplugin:countusersofdefaultparams in editeng..rscNoel Grandin
Change-Id: I8a8d13faf228cbc934ae21d6763d92d370eb42ec
2016-11-08loplugin:expandablemethods in hwpfilter..linguisticNoel Grandin
Change-Id: I62ae20ab4a47b3b7e2b0d503cedcad3319cc9c85 Reviewed-on: https://gerrit.libreoffice.org/30683 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-11-02upgrade to ICU 58Eike Rathke
Change-Id: I4a992447df65b337721a2a2627d974172a14cba5 Reviewed-on: https://gerrit.libreoffice.org/30487 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2016-10-19loplugin:expandablemethodds in hwpfilter..linguisticNoel Grandin
Change-Id: If20fd4a6cf8a8e005804dbb7caf41cce73d587a5 Reviewed-on: https://gerrit.libreoffice.org/30016 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-10-16clang-cl loplugin: i18npoolStephan Bergmann
Change-Id: I9d0f4ac9c9abe119ab42736eb9b9ad4ea54a8806 Reviewed-on: https://gerrit.libreoffice.org/29862 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2016-10-11remove some conversion operator methodsNoel Grandin
which, in these cases, only serve to make the code harder to read Change-Id: Ic9bcf42545b4fcfd60a535fb63956092d392f469 Reviewed-on: https://gerrit.libreoffice.org/29685 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-10-06coverity#1373441 Side effect in assertionCaolán McNamara
Change-Id: I10a8298e5379fa93a5d3616202a7802c0eda1cbb
2016-10-01silence coverity#1373441 Side effect in assertionCaolán McNamara
Change-Id: I1cf7b7d20a0b567c7363c5a9abc5bf1195b57262
2016-09-30i18npool: fix loplugin:cppunitassertequals warningsMiklos Vajna
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 Rathke
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 Andreev
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 Dasanayaka
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 Bosmans
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 McNamara
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 Bergmann
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 McNamara
Change-Id: If28494c8727504c6f995576b59e6c79995e405a0
2016-09-01coverity#1372397 Uncaught exceptionCaolán McNamara
Change-Id: I5baed239582f91a30c451eb26c46ea9bf33c92a4
2016-08-30loplugin:stringconstant: adapt to improved OUStringLiteral1 (i18npool)Stephan Bergmann
Change-Id: If4bc7dd5af49cca85f474e817cc3cc358c2b48c2
2016-08-26loplugin:refcounting: also cover temporaries being directly stack managedStephan Bergmann
Change-Id: Ib0f7c60df1d2fba0d4d9d3fa6faf3bb97867ebc0
2016-08-18Resolves: tdf#101572 New Belarusian Ruble BYN/Br for [be-BY]Eike Rathke
Change-Id: I742ca7ae410f49cfa84e595433b241c4a7ca9ecb
2016-08-16Native Numbers: update list of supported languagesLaurent Balland-Poirier
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 Rathke
Change-Id: I33d5c499da40c91875918f215c0470748ec1ff93
2016-08-10DKK currency symbol is 'kr.' not 'kr'Eike Rathke
Change-Id: I35078b36c803e73538a23bbc9cdc5ddd13a3835c
2016-08-05loplugin:countusersofdefaultparams in framework..lotuswordproNoel Grandin
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 Grandin
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 Rathke
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 McNamara
Change-Id: I76f09a09fd6c3b114ba74737d4a1ba5dad0fd28f
2016-07-15new loplugin unnecessary overrideNoel Grandin
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 Rathke
... 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 Grandin
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 Rathke
Change-Id: Ia240d52ba1edffa70d5e50fee82f48102cc2fe7e
2016-06-13remove the correct but unwanted no-break space in percentage, tdf#63272Eike Rathke
As per l10n request https://listarchives.libreoffice.org/global/l10n/msg09997.html Change-Id: I4f83c85abc15c12f77ac478589736cd799760832