summaryrefslogtreecommitdiff
path: root/i18npool
AgeCommit message (Collapse)AuthorFilesLines
2016-02-06Fix typosAndrea Gelmini1-1/+1
Reviewed-on: https://gerrit.libreoffice.org/16582 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Andras Timar <andras.timar@collabora.com> (cherry picked from commit 1a8915ef8302b13b781977209ae1fa41f5f659dc) Change-Id: I1c5e4970d4e90bdea68a901294594104de5e189e
2016-02-06Don't truncate a UTF-32 code point to a UTF-16 code unitStephan Bergmann1-3/+3
Change-Id: Ie332b3d088547f6bcc676471182420766ecfedca (cherry picked from commit f2a0e4032734d6be635f14ade3dea499c29ec6c2)
2016-02-06loplugin:loopvartoosmallNoel Grandin3-4/+4
(cherry picked from commit 55bc128636596032c23ee855904822ad813986fc) Change-Id: I86ff38a90018a2ddfb2db3babf67168b0e6257a5
2016-02-06Fix typosAndrea Gelmini1-1/+1
Reviewed-on: https://gerrit.libreoffice.org/16408 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com> (cherry picked from commit aade27554d427649810f5635133519cadfa8002f) Change-Id: I60ed5eb658d50cbc7dc572facb5463b7527b4d9b
2016-02-06Replace boost::scoped_array<T> with std::unique_ptr<T[]>Takeshi Abe4-10/+10
This may reduce some degree of dependency on boost. Done by running a script like: git grep -l '#include *.boost/scoped_array.hpp.' \ | xargs sed -i -e 's@#include *.boost/scoped_array.hpp.@#include <memory>@' git grep -l '\(boost::\)\?scoped_array<\([^<>]*\)>' \ | xargs sed -i -e 's/\(boost::\)\?scoped_array<\([^<>]*\)>/std::unique_ptr<[]>/' ... and then killing duplicate or unnecessary includes, while changing manually m_xOutlineStylesCandidates in xmloff/source/text/txtimp.cxx, extensions/source/ole/unoconversionutilities.hxx, and extensions/source/ole/oleobjw.cxx. Reviewed-on: https://gerrit.libreoffice.org/16289 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com> (cherry picked from commit 09800956191c90035872cbc18cd304fee043c710) Change-Id: I3955ed3ad99b94499a7bd0e6e3a09078771f9bfd
2016-02-06remove unnecessary check for null when calling deleteNoel Grandin1-2/+2
Idea originally from caolan. Found using the following command: find . -name *.cxx | xargs /opt/local/bin/grep -zlP '(?m)if\s*\(\s*\w+\s*\)\s*delete\s+\w+\;' Change-Id: I3338f4e22193a6dfd6219c8c75835224a3392763 (cherry picked from commit 4729774b244db7a175077ed0c70aa48be62bc60e)
2016-01-18tdf#95494 Calc can not sort Chinese word by stroke and radical,Jingtao Yan1-3/+3
_length must at the tail of filename. Change-Id: I434e89bf052d8f3130bfca62d71eaf8588c2bac9 Reviewed-on: https://gerrit.libreoffice.org/21213 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com> (cherry picked from commit 1b683de366f4caf82225c632f02cf0f58ae76490) Reviewed-on: https://gerrit.libreoffice.org/21368 (cherry picked from commit 9059f747c50eaf99a3c065f90b598208edbcb86b)
2015-11-28regex result offsets can be negative if a group was not matched, tdf#94810Eike Rathke1-14/+22
"(abc)|(def)" matches "def" with result offset sequences {0,-1,0},{3,-1,3} And thus the assert() calls introduced with 4cf1d290bab29e18e1312b63ff862f5102e00387 and ce91f3c1292f3e9b84157acf10b67ad9ca16719d were hit. Change-Id: I571b6c7d47349a2cc7b1d1e34193b2865012a49f (cherry picked from commit 4dd2d40673299966ad639d799e925e64ae5560cf) Reviewed-on: https://gerrit.libreoffice.org/20174 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Mike Kaganski <mikekaganski@hotmail.com> (cherry picked from commit a38963a40eed7f1d85767b393a316870c31bff5c)
2015-11-28tdf#94810: fix reverse offset mappingMike Kaganski2-6/+23
With simple transliteration, TextSearch::searchForward used to use whole string to perform the search, then started to create substring to search. But it left the precautions from commit c00601dab0f5533b152cd63cec0a89bfec1ba95f by Eike Rathke: searching for $ may actually return a result set pointing behind the search string which it does with the ICU regex engine. The precaution made it to skip reverse mapping if index was 0. Commit 9aae521b451269007f03527c83645b8b935eb419 by Michael Stahl didn't consider the case when nStop is 0, and startPos > 0. Then it tried to get offset[-1]. Anyway, using value of startPos in those conditions seems illogical. Removed those precautions (and made assertions for that). Fixed handling zero indexes. Reviewed-on: https://gerrit.libreoffice.org/19840 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com> (cherry picked from commit 4cf1d290bab29e18e1312b63ff862f5102e00387) remove comment that makes no sense, tdf#94810 follow-up nStart should not become <0, not even when searching for $ end. (cherry picked from commit 67ab2ce3c6fed2ceaacaad890a7d8683ce0397a7) similar to searchForward() use the correct offsets, tdf#94810 related (cherry picked from commit ce91f3c1292f3e9b84157acf10b67ad9ca16719d) Change-Id: I2066abc51fff7fb7323bc7f6198bdea06439d4f3 79586471f1a7908372fa3ee044a6f66499b1790f cb5a45acaad9029e0998594de8b3dc2e9211866e Reviewed-on: https://gerrit.libreoffice.org/20136 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Mike Kaganski <mikekaganski@hotmail.com> (cherry picked from commit 028d7d8476980988e382d7b2fc0782946fbac740)
2015-11-03use separators and number formats as in [it-IT], tdf#91199 follow-upEike Rathke1-92/+99
Can't use ref="it_IT" because it-IT is one of the legacy locales that has localized format codes, sigh.. (cherry picked from commit c6e6909672486b8552c6a5b051ce0fb91ba60f1f) add missing license header (cherry picked from commit 326b21356784a382a3880835f5f24353730e4e30) f8503566d02b2e2de51acc21f33042b9cc23b059 Change-Id: I3ce88e80f17e626bc4fc4849795e2c9893261dc3 Reviewed-on: https://gerrit.libreoffice.org/19670 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> (cherry picked from commit 79e98696ae3b14d77ed7975fe2e0d63c7d777528)
2015-08-06ensure engineering notation format is presentEike Rathke1-0/+18
We could generate that in the number formatter, but as long as we don't ... Change-Id: Icbbad4215fdf7f3a94f652c27cb2f9b04205b519 (cherry picked from commit f672c8cc0d5227ab3484e20322f20dd4ee35ed96)
2015-08-06tdf#91849 add Tigrigna (Ethiopia) [ti-ET] locale dataEike Rathke3-1/+364
Change-Id: Ib54e48070a6d08722d18259dac2447d3200f84d1 (cherry picked from commit 286fa4cec2cfb1c600bfd696fb0f1b2eb361b8f0)
2015-08-06reflect requirement of one abbreviated DateAcceptancePattern in documentationEike Rathke1-2/+4
Change-Id: I2593606f3c82eeb9e04be469c20ffb4132cc4f2c (cherry picked from commit 8fbb45c978327a3047a84c59978a07bdc19a66dd)
2015-08-06ensure that at least one abbreviated DateAcceptancePattern is presentEike Rathke1-0/+16
Change-Id: I30619fc9f894dda89cd1c84153abcb21214a5fbc (cherry picked from commit 6df46d63e4397a0eb799149dab56a4c38b940e99)
2015-08-06add missing DateAcceptancePattern for abbreviated date inputEike Rathke2-0/+2
Change-Id: I5ac712604204c4cbbce4d1ec3a591fb9f158c6f8 (cherry picked from commit c681c4ca956bfa4a3235c5ae97a745a107f4e4ce)
2015-08-06Revert "make saxparser deps order-only"Eike Rathke1-1/+1
This reverts commit 49d8bc1dcce4c662d85d894567501205f94f678d. If saxparser changed, specifically if i18npool/source/localedata/LocaleNode.cxx was modified, we actually want all .cxx regenerated from locale data and not silently skip all. Conflicts: i18npool/CustomTarget_localedata.mk Change-Id: I3a1b0ed0dab12148ee34653cdfac593001d2ecf7 (cherry picked from commit 657524656fdc381ff217011ff025d3d24b79d026)
2015-08-06tdf#91199 add Venetian [vec-IT] locale dataEike Rathke3-0/+364
Corrected the usual pitfalls; added DateAcceptancePattern and ScientificFormatskey3 engineering format. Change-Id: Icecb2e84b6c454378fb5e6d478e1113317e9f3bc (cherry picked from commit cd5d3c4054868c02fce12016edcf9584013b48bf)
2015-05-27Include missing in Windows buildJuergen Funk1-0/+1
for the std::min we need the header <algorithm> Change-Id: I83d815e1fe8a7221c0eade58df5af887d5a9795a Reviewed-on: https://gerrit.libreoffice.org/15921 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
2015-05-22tdf#90809: i18npool: fix crash in Thai break iteratorMichael Stahl1-4/+6
endPos = nStartPos + 1 may be past the end index invalid write of size 4 at 0x1CBBA959: com::sun::star::i18n::BreakIterator_th::makeIndex(rtl::OUString const&, int) (breakiterator_th.cxx:139) by 0x1CBB4AA2: com::sun::star::i18n::BreakIterator_CTL::previousCharacters(rtl::OUString const&, int, com::sun::star::lang::Locale const&, short, int, int&) (breakiterator_ctl.cxx:61) by 0x1CBB544F: com::sun::star::i18n::BreakIteratorImpl::previousCharacters(rtl::OUString const&, int, com::sun::star::lang::Locale const&, short, int, int&) (breakiteratorImpl.cxx:64) by 0xA29D29A: ServerFontLayout::setNeedFallback(ImplLayoutArgs&, int, bool) (gcach_layout.cxx:99) Change-Id: I201f24cb6773b5aa1a81dea90ea906d3d4355053 (cherry picked from commit 9db629b8a1fa9b63bc320f8d47594ec82511a9c5)
2015-05-22i18npool: ASAN: fix off-by-one in gendict's index2 arrayMichael Stahl1-1/+1
The charArray always contains the size of lenArray *before* it is extended, i.e., the last valid index. Change-Id: Id1f4e1f2cb55a88ef5339e9d962a3adf4cde91f9 (cherry picked from commit 2589d545ec099c7b670b185d06fbf9ca841fb748)
2015-05-19Update Apache Bugzilla’s URLAdolfo Jayme Barrientos2-18/+18
Change-Id: I6ef4ae530b7fb4e615100803ae6e3972d9b4545f
2015-05-08Also mention exception typeStephan Bergmann1-1/+1
Change-Id: I3ba60fd0ff8f4ed0a2683986cec7bdb25a837c18
2015-05-07Resolves: tdf#91057 transliterateChar2Char throws MultipleCharsOutputExceptionCaolán McNamara1-20/+36
for ß, but toTitle only allows RuntimeException, which is our usual awesomeness Change-Id: Ib5618a55a369fa5cd1d323f657f0798776828386
2015-05-05Related tdf#91009: Correct thousands separator character for locale es_CRJulien Nabet1-10/+32
Change-Id: Icf080bb9f21ef75487d43d8a582625be512968c4 Reviewed-on: https://gerrit.libreoffice.org/15630 Tested-by: Eike Rathke <erack@redhat.com> Reviewed-by: Eike Rathke <erack@redhat.com>
2015-05-02tdf#91009: Correct thousands separator character for locale es_CRJulien Nabet1-9/+9
Thanks to Severo Raz for having indicated this link: http://es.wikipedia.org/wiki/Wikipedia_discusi%C3%B3n:Manual_de_estilo/N%C3%BAmeros#Costa_Rica Change-Id: Ib8eef774921922dda0db653d8d8365b5e055e646
2015-04-29i18npool: fix buildMichael Stahl1-1/+1
Change-Id: Id6186339739f9573f7527162b5b4d6b5a46f4ebd
2015-04-29tdf#89395 add Nyanja [ny-MW] locale dataEike Rathke3-1/+365
Change-Id: Ic13afb23d282de26eef35c50b95e940b73639cf4
2015-04-29inherit cu-RU format codes from ru-RU, tdf#90802 follow-upEike Rathke4-149/+5
Change-Id: Id37aa3a416ab826d5363dca4e91f83346460e78d
2015-04-29define what is actually used ...Eike Rathke1-2/+2
Change-Id: I68365a85c9025c0637bc99607e65cbd21f87e1b7
2015-04-29prepare to inherit from, adding replacement, tdf#90802 relatedEike Rathke1-6/+6
Change-Id: I172c103fb5033e8346d78479bb1c1ce71fe11e4a
2015-04-29tdf#90802 add Church Slavic [cu-RU] localeAleksandr Andreev6-1/+480
Change-Id: Id8322661f79f4d500fd59c19fc04b13e82c7126d Reviewed-on: https://gerrit.libreoffice.org/15540 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2015-04-28add comment it's ok hereEike Rathke1-0/+4
Change-Id: I615a9ed50141327d672e12db1da500d372ff5232
2015-04-28match separators by inheriting from same locale as format codesEike Rathke1-1/+1
... which leads to swapped decimal and group separators in this case, which were wrong before and generated wrong format codes. Change-Id: I08a74262f7e1d8453957895beeffa34116cb4577
2015-04-28match separators by inheriting from same locale as format codesEike Rathke1-1/+1
... which leads to identical separators in this case. Change-Id: I061c9f47d052e6e30e3b01d1697dc814e104559d
2015-04-28match separators by inheriting from same locale as format codesEike Rathke1-1/+1
... which leads to identical separators in this case. Change-Id: I85ea0004344532221c9a03b29b2f1ba2e0100ac8
2015-04-28match separators by inheriting from same locale as format codesEike Rathke1-1/+1
... which leads to identical separators in this case. Change-Id: Id886917de66df046481f957ec467e74942d7ba6b
2015-04-28format code separators have to match defined separatorsEike Rathke1-23/+1
... and the only difference to es_GT was '-' vs '/' date separator, which according to https://ssl.icu-project.org/icu-bin/locexp?d_=en&_=es_NI should be '/' Change-Id: I10aeb0849132b3502e73163261060d2e6eaa1c39
2015-04-27decimal separator is commaEike Rathke1-3/+3
Change-Id: I7236d79877e6761cc97cbc093b83033deb84b417
2015-04-27Add engineering notation to format list for all l10nLaurent Balland-Poirier158-1/+474
For all l10n, add format for engineering format ##0.00E+00 decimal separator adapted msgid: ScientificFormatskey3 or ScientificFormatskey4 if previous one was already used formatindex: 78 (free in most l10n, and near 77 which used as scientific format for many l10n) exceptions: ko_KR formatindex=91; th_TH formatindex=88; zh_TW formatindex=80 (next free value) Change-Id: I703c1503bdac85386e9994fdd67b00aa6006d992 Reviewed-on: https://gerrit.libreoffice.org/15527 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2015-04-26--enable-mergelibs: Turns out we don't need to install saxMatúš Kukan1-9/+0
We are lucky, saxparser(expwrap) is only needed to build localedata* libs which are only runtime dependencies, and can be built *after* libmerged. So, simplify and move runtime deps to CppunitTest. This reverts commits 59cea45ec247df1acb691308c940ff97673e4c48 and partially 5e45637568ceefee21fe329a5254881963fecd7a Change-Id: I1a1fb4a48fd1a22a9b3a48f0eb0f123649c113b0
2015-04-24loplugin:simplifyboolStephan Bergmann1-1/+1
Change-Id: I25449c2889231ca9782dea1e8b97969256e83718
2015-04-23Improved loplugin:literaltoboolconversion looking into cond. exprs.Stephan Bergmann1-1/+1
...automatic rewriter fixes Change-Id: I6b04ca80f08f8a71ff94e309fd52f44d736751ee
2015-04-22Clean up odd sal::static_int_cast<sal_Bool> usesStephan Bergmann2-5/+4
Change-Id: Idbd1cdb06315b96dc9f45e34108a1af45229ed2f Reviewed-on: https://gerrit.libreoffice.org/15484 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2015-04-22both scientific formats are of type medium, tdf#88835 follow-upEike Rathke2-2/+2
Otherwise, with one of type long, we'd need to set that to default as well, defaults are per type. Visible in a dbgutil build terminal output when the locale is selected in the number formatter dialog for the first time: SvNumberFormatter::ImpAdjustFormatCodeDefault: no long type default XML locale data FormatElement group of: ScientificFormatskey1 ja-JP requested ja-JP loaded SvNumberFormatter::ImpAdjustFormatCodeDefault: no long type default XML locale data FormatElement group of: ScientificFormatskey1 ko-KR requested ko-KR loaded Change-Id: I3e445fff3ca2dd834bd19c609a2ee2f68e704093
2015-04-22tdf#88835 2 digits in exponent for default scientific formatLaurent Balland-Poirier158-416/+416
Modify all locale data to set ScientificFormatskey2 (0.00E+00) as default for scientific format instead of ScientificFormatskey1 (0.00E+000) Change-Id: Ib8f3d22af82c078468ea70ebae0b078ac55a0003 Reviewed-on: https://gerrit.libreoffice.org/14593 Tested-by: Eike Rathke <erack@redhat.com> Reviewed-by: Eike Rathke <erack@redhat.com>
2015-04-22Various #include <sal/log.hxx> fixupsStephan Bergmann4-0/+4
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. Cleaned up some, but something like grep -FwL sal/log.hxx $(git grep -Elw \ 'SAL_INFO|SAL_INFO_IF|SAL_WARN|SAL_WARN_IF') -- \*.cxx) shows lots more files that potentially need fixing before the include can be removed from rtl/string.hxx and rtl/ustring.hxx. Change-Id: Ibf033363e83d37851776f392dc0b077381cd8b90
2015-04-15remove unnecessary use of void in function declarationsNoel Grandin20-39/+39
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-04-12cppcheck: noExplicitConstructorCaolán McNamara2-15/+26
Change-Id: I452a204616d98e1071b7bf43ad457c6a2376cf91
2015-04-12unnecessary castCaolán McNamara1-1/+1
Change-Id: I57ad3b2492721115e0ea7ebd9f43480e93b0c8ab
2015-04-12unnecessary strcpyCaolán McNamara2-5/+2
Change-Id: I98f12a01002a08d51f2232482cd015564cdb27b2