summaryrefslogtreecommitdiff
path: root/i18npool
AgeCommit message (Collapse)AuthorFilesLines
2016-10-11Revert "tdf#53698: Cache more than 1 item in NumberFormatCodeMapper"Andras Timar2-37/+55
This reverts commit 5ee0cf887301ea0e994e3ec7299f4958808fc2d8.
2016-10-10tdf#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> (cherry picked from commit 450a2fd5e2dafd1a0c08e73ef85db978f6b1a927)
2016-08-23Resolves: tdf#101572 New Belarusian Ruble BYN/Br for [be-BY]Eike Rathke1-1/+8
Change-Id: I742ca7ae410f49cfa84e595433b241c4a7ca9ecb (cherry picked from commit 92ba4bc561293cc29e4e92bc3791dd9db1da6b9c) Reviewed-on: https://gerrit.libreoffice.org/28214 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com> (cherry picked from commit 3242a37f35d2691a7fe080e571c96ee8e40786c4)
2016-07-29crashtesting: fix tdf92993-1.docx failureCaolán McNamara2-1/+17
Change-Id: I76f09a09fd6c3b114ba74737d4a1ba5dad0fd28f (cherry picked from commit 5e46e382694587e88ecdebc7fa57e90fbaca7a76) Reviewed-on: https://gerrit.libreoffice.org/27436 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> (cherry picked from commit e213a7cfe79f594065b6d64114749c5f49f2380c)
2016-07-20Replace fallthrough comments with new SAL_FALLTHROUGH macroStephan Bergmann6-11/+11
...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. (cherry picked from commit 14cd5182c5f64c43581c82db8c958369152226ac) Change-Id: I342a7610a107db7d7a344ea9cbddfd9714d7e9ca
2016-07-20unnecessary use of OUString constructorNoel Grandin1-2/+2
Change-Id: Idd31b0a53c8318af69bbcd32f6798721ec8eb8e1 Reviewed-on: https://gerrit.libreoffice.org/21945 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com> (cherry picked from commit 1ef9f3988ee4dcbc77e1fdefa20442e044a67d4d)
2016-07-20Fix typosAndrea Gelmini6-7/+7
Reviewed-on: https://gerrit.libreoffice.org/21209 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Ashod Nakashian <ashnakash@gmail.com> (cherry picked from commit 64d624b65124ac02d8ee59b135593fd9d8eb9067) Change-Id: I9a5940027423ff0791fa7da0b79b617412ce6b86
2016-07-12Remove excess newlinesChris Sherlock8-19/+0
A ridiculously fast way of doing this is: for i in $(pcregrep -l -M -r --include='.*[hc]xx$' \ --exclude-dir=workdir --exclude-dir=instdir '^ {3,}' .) do perl -0777 -i -pe 's/^ {3,}/ /gm' $i done Reviewed-on: https://gerrit.libreoffice.org/22224 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com> (cherry picked from commit a238b1f8d304bf1e2ffb357937f3ec888ee8ac89) Change-Id: Iebb93eccbee9e4fc5c4380474ba595858a27ac2c
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> (cherry picked from commit eee5256e6649c5ccbd26f30b53351c808f6c56e4) Reviewed-on: https://gerrit.libreoffice.org/25814
2016-06-02tdf#63272 [cs-CZ] percentage format with no-break spaceEike Rathke1-2/+2
(cherry picked from commit c5c2181a14c6ca9ed47729e6d8dbda2cc3552221) Change-Id: I53968fb15b6e0d6e1ab5cedb7a9b6c4ffae8e534 Reviewed-on: https://gerrit.libreoffice.org/25777 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
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 (cherry picked from commit 5868d927bccfc9594c4f791d0800337a0ce60c18) Reviewed-on: https://gerrit.libreoffice.org/25738 Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2016-05-28Estonian localization of aboveWord and belowWordMihkel Tõnnov1-2/+2
Change-Id: Ie872c593c531b99360efe7fcf807e76cb88acb79 (cherry picked from commit 91244b95b7826ec5c1075c00e6b4013804c4ab2f) Reviewed-on: https://gerrit.libreoffice.org/25589 Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com> Tested-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2016-04-12fix infinite loop in text search, tdf#99208Markus Mohrhard1-2/+2
Change-Id: If77055d6b292d5126165252d7198e8abf9d2c44d Reviewed-on: https://gerrit.libreoffice.org/24029 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com> (cherry picked from commit 087162b7142cf666478986461cdfa15c3d7fe382) Reviewed-on: https://gerrit.libreoffice.org/24033
2016-01-26tdf#97315 add Basque [eu-ES] and map [eu] to [eu-ES]Eike Rathke3-4/+4
(cherry picked from commit 72c5e230f9cda8e18f63f7bbc6567487b4c5a5e0) i18npool: fix build Looks like 72c5e230f9cda8e18f63f7bbc6567487b4c5a5e0 missed the makefile change. (cherry picked from commit a6c8b41c4df79183c5d2c1450c010768ac7d82f6) 2d887ca6cb6c698fdb2d24029f38cce6050e0881 Change-Id: I89641fa82f0d0129aeff0d86a10be26cdc721dfc Reviewed-on: https://gerrit.libreoffice.org/21725 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: David Tardon <dtardon@redhat.com>
2016-01-25i18npool: handle non-BMP Unicode in cclass_Unicode::parseText()Michael Stahl2-66/+77
The UTF-16 code unit limitation was mangling starmath import. Change-Id: I087e5c5b7954799fdb73e7ee1a8d3d02669f8831 (cherry picked from commit fefd1221be844a033e409a18e05e8c6e98f6d1a7) Reviewed-on: https://gerrit.libreoffice.org/21784 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2016-01-11tdf#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/21367
2016-01-06tdf#82775: Make NumberFormatCodeMapper MT safeStephan Bergmann2-0/+5
Change-Id: I77f49f09ce9fe5897f78044c0522210978c904d1 (cherry picked from commit d01888302b03a79bf7ccde6cbe8434b427164a75) Reviewed-on: https://gerrit.libreoffice.org/21130 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2016-01-06Use OUString::replaceAllStephan Bergmann1-35/+1
...instead of a local function using a static (!) buffer, which just cannot work in a multi-threaded environment. Change-Id: Id28e1c55c32aa2e35cd3c1756f5d392241092a30 (cherry picked from commit c83b55564dab042e3fc1889920cbb4db8fe40117) Reviewed-on: https://gerrit.libreoffice.org/21131 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2015-11-27Adding native number support for Cyrillic numeralsAleksandr Andreev3-4/+284
Change-Id: I054786a97b6f0e6ba3fe3b824ff9ff9748d8be4a Reviewed-on: https://gerrit.libreoffice.org/20013 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com> (cherry picked from commit 33a774bb1ff7b1af48b3a534b53dd3843a279eac) Signed-off-by: Eike Rathke <erack@redhat.com>
2015-11-25regex 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)
2015-11-24straighten out broken indentationEike Rathke1-36/+36
Change-Id: Ibb34f4a655cce13a24cc7ec22a29fa40e3a0286a
2015-11-24cppcheck: noExplicitConstructorCaolán McNamara3-4/+4
Change-Id: I1934441858baeeb41a46f694dbcef2d846b308b7
2015-11-23similar to searchForward() use the correct offsets, tdf#94810 relatedEike Rathke1-3/+6
Change-Id: Icb5a45acaad9029e0998594de8b3dc2e9211866e
2015-11-23remove comment that makes no sense, tdf#94810 follow-upEike Rathke1-1/+1
nStart should not become <0, not even when searching for $ end. Change-Id: I79586471f1a7908372fa3ee044a6f66499b1790f
2015-11-23tdf#94810: fix reverse offset mappingMike Kaganski2-3/+17
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. Change-Id: I2066abc51fff7fb7323bc7f6198bdea06439d4f3 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>
2015-11-20loplugin:unusedfields i18npoolNoel Grandin4-10/+0
Change-Id: I09dad8485f7a558dd389032a6052b88a8285afea
2015-11-17Don't assume sal_Unicode is unsigned shortStephan Bergmann1-1/+1
Change-Id: I721f53d79cd3e2c24542382d519a909a86a31111
2015-11-17loplugin:unnecessaryvirtualNoel Grandin2-14/+14
update the plugin with lessons learned from the mergeclasses plugin and re-run it Change-Id: I9d622eb3d05fceaf8fa764c533c8fa5dfb4c7711 Reviewed-on: https://gerrit.libreoffice.org/20015 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-17Don't assume sal_Unicode is unsigned shortStephan Bergmann3-4/+10
Change-Id: I727951614587654c11af5f6635a45c52ebec1b5a
2015-11-17Typo "stirng" -> "string"Stephan Bergmann2-2/+2
Change-Id: I08c98ed0f81894444a75adcf7da3a952c7f418cf
2015-11-16use initialiser list for Sequence<OUString>Noel Grandin3-7/+4
Change-Id: Ia5e47261d1fc6fac2d046656c05a1c5eedb07e02 Reviewed-on: https://gerrit.libreoffice.org/19978 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-15use initialiser syntax for Sequence<OUString>Noel Grandin20-42/+21
replaced using the script: git grep -lP 'Sequence.*OUString.*\(1\)' | xargs perl -0777 -pi -e "s/Sequence< OUString > (\w+)\(1\); .*\[0\] = (\S+);/Sequence< OUString > \1 { \2 };/g" Change-Id: I23688a91562051a8eed11fc2a85599545c285c34 Reviewed-on: https://gerrit.libreoffice.org/19967 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-11coverity#1338596 Uncaught exceptionCaolán McNamara2-2/+2
Change-Id: Ic8b4c6a1718a10d0b9a5a99b069ef4e98de87518
2015-11-11coverity#1338597 Uncaught exceptionCaolán McNamara2-2/+2
Change-Id: I1bcb4a70a2b2621a8718e5d4d0741e8eed3848cf
2015-11-11coverity#1338598 Uncaught exceptionCaolán McNamara2-2/+2
Change-Id: I22047ed53eb59716e3da7c6e799867a666d35921
2015-11-11coverity#1338599 Uncaught exceptionCaolán McNamara2-2/+2
Change-Id: If1c2f5e8527855e8e537d082156bcd6582e50c58
2015-11-11coverity#1338600 Uncaught exceptionCaolán McNamara2-2/+2
Change-Id: I4a257a4eed1064a3fc09f6e2d37dbbc6be64a94c
2015-11-11coverity#1338601 Uncaught exceptionCaolán McNamara2-2/+2
Change-Id: I255273601fd460b22aa22e3e366dc040e0795a87
2015-11-11coverity#1338602 Uncaught exceptionCaolán McNamara2-2/+2
Change-Id: I81c71c02888e9c5cab28e77c1464dd5f6d4c1ee5
2015-11-11tdf#95745 Weekdays should be lowercase in hr_HRMihovil Stanić1-14/+14
Change-Id: Ib2738355c0ffc1342db51a4f17185503ad7f0eb7
2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann55-172/+172
Change-Id: I7af8d14bfe7337fea3f18dbbd41eb32e0f7ae331
2015-11-09add [ar-{BH,IQ,JO,LY,MA,QA,SY,YE}] to locale data libs, tdf#95485Eike Rathke2-1/+16
Change-Id: Idbe31956d8627ff51f90d2e4a52666d33143b8c0
2015-11-09add U+200F RIGHT-TO-LEFT MARK to currency symbol, tdf#95485 follow-upEike Rathke8-16/+16
... same as in other ar_* locale data. Change-Id: If5bd17d710fc6a9b40aac87eb49a8615f59a7a31
2015-11-09correct order of currency symbol and LangID in replaceTo, tdf#95485 follow-upEike Rathke8-8/+8
Change-Id: Iefb671f4e7130523edde1d0495d36fb57aa7528c
2015-11-09strip leading zero from LangID in currency format, tdf#95485 follow-upEike Rathke1-1/+1
Change-Id: Id4be326683f4be745284d0951768047d830570c1
2015-11-09remove erroneous extra </DefaultName> closing tag, tdf#95485 follow-upEike Rathke8-8/+8
Change-Id: Ie7573d79f74d601abd340d028080dcb50a78917a
2015-11-09add [ar-{BH,IQ,JO,LY,MA,QA,SY,YE}] locale data, tdf#95485Ghasan8-0/+328
Change-Id: I55eea19b0302053691eb76b7785276a89bcd136a
2015-11-06coverity#1338234 Uncaught exceptionCaolán McNamara2-2/+2
Change-Id: Ice269b722e219ae7b51aa6ea11dea93cfd31f413
2015-11-06loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)Stephan Bergmann7-13/+13
Change-Id: I2c65eac8aa0b24be7f0c8a083b21904c842ca1ee
2015-11-04use uno::Reference::set method instead of assignmentNoel Grandin5-9/+5
Change-Id: I11822c50fa66d038a3d6f38054ab35c2e613f077