summaryrefslogtreecommitdiff
path: root/i18npool
AgeCommit message (Collapse)AuthorFilesLines
2014-05-17Correct common misspellings, and remove some ASCII art along the way.Chris Laplante1-1/+1
Change-Id: I42787db31769e8bde984c5f4f0aa90335e889b1c Reviewed-on: https://gerrit.libreoffice.org/9356 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
2014-05-15Resolves fdo#70681: fixincludeguards.pl: all that's leftThomas Arnhold43-98/+98
Change-Id: I3e51a62710bb46c8255fd228d41d9300c90a1fb5 Reviewed-on: https://gerrit.libreoffice.org/9360 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2014-05-15coverity#1209074 Same on both sidesCaolán McNamara2-35/+39
Change-Id: I2c02ca45ed12ed571a175fb82bc2478eeb02f31f
2014-05-13add DateAcceptancePattern M/D for [mos-BF], fdo#78647Eike Rathke1-0/+1
Change-Id: I79af7fdd7bc6b4c95f4b018a373d8a4685226abd
2014-05-13add locale data for Moore in Burkina Faso [mos-BF], fdo#78647Eike Rathke2-1/+3
Change-Id: If6f3134b74c0ef6ca3caf3c508bbcc163d6196fa
2014-05-13locale data for Moore in Burkina Faso [mos-BF], fdo#78647David Delma1-0/+369
Change-Id: Ice37ec78078e078d9b2f530b0ebfe53f12c6aed8
2014-05-12Resolves: fdo#55707 Word count incorrect if language is set to FinnishCaolán McNamara4-287/+10
Change-Id: I283dddaa4bd8baf05b90ce5f81d43b785021a3c4
2014-05-12Fix compilation breakage for AndroidTor Lillqvist1-0/+4
Presumably helps for iOS, too. Change-Id: Idadfa9c70b8206c6820f6c13374909f8d26ffd04
2014-05-12Avoid expensive dlopen thrash for break iterators.Michael Meeks3-76/+117
Change-Id: I770c1b3e5164cb486b5a5c2b1259f713914a1bae
2014-05-10Blind fix for red TinderboxesJulien Nabet1-1/+2
Change-Id: I9465943a7e3c0d485e8692e3e1ea0b258d67d120
2014-05-09'!= false' is redundant, and confusing - kill it.Jan Holesovsky1-1/+1
Change-Id: I1a52b9ce7b590e8cf274a2daaa1c55cfc1efe48b
2014-04-30make DISABLE_DYNLOADING on Android happy, fdo#77071 relatedEike Rathke1-0/+21
Change-Id: Id257bd38bbfab0a433b404116e2d7e9b430c3c6f
2014-04-30resolve crashes with ICU 53.1 in locales with collator data, fdo#77071Eike Rathke2-6/+94
ICU 53.1 changed API behavior: https://ssl.icu-project.org/apiref/icu4c/classicu_1_1RuleBasedCollator.html#a2f4c7eeaf020ad68e3bd9722dd272357 isn't correct anymore: length: size of the image. If negative, the API will try to figure out the length of the image NO, IT WILL NOT! It bails out with an error instead. Introduced a function to obtain the length for each collator data. base: collator, usually root. The base is required to be present through the lifetime of the collator. Currently it cannot be NULL. NOT "usually root"! There's a check now that bails out if if(base->tailoring != CollationRoot::getRoot(errorCode)) So using an instance created with icu::Locale::getRoot() Change-Id: Ia9c4e27d5ef4f8083bbe57e4e2f4b3ff63bb42ed
2014-04-29upgrade to ICU 53.1, fdo#77071 relatedEike Rathke4-1333/+1341
plus further work in i18npool to make that build adapt i18npool to ICU 53 upgrade, fdo#77071 Korean charset collator can't be built from ko_charset.txt because of "The runtime code decomposes Hangul syllables on the fly, with recursive processing but without making the Jamo pieces visible for matching. It does not work with certain types of contextual mappings." "While handling a Hangul syllable, contractions starting with Jamo L or V would not see the following Jamo of that syllable." (this is where we bail out already with the first syllable of ko_charset.txt) Another condition to fail is described as "A contraction ending with Jamo L or L+V would require generating Hangul syllables in addTailComposites() (588 for a Jamo L), or decomposing a following Hangul syllable on the fly, during contraction matching." Excluded the file from the build for ICU >=53 and hope that ICU in the mean time handles Korean collation correctly. Additionally, ICU 53 took ages (if it would had finished at all) to build the collator from zh_TW_charset.txt because of the \u#### escaped notation. Converted the file's content to characters using http://www.rishida.net/tools/conversion/ Change-Id: I64213214b4870e7077f72b95fee1ddc9782c2b21 Reviewed-on: https://gerrit.libreoffice.org/9204 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2014-04-25Obey --with-locales here, tooTor Lillqvist1-0/+81
Avoid linking in various functions and potentially largish data objects if the corresponding locale is deliberatedly skipped by using the --with-locales configure option. Change-Id: I8ec8c2b6176972d048a3c0e180ac0e6e805f2378
2014-04-25Filter out extra ICU data for locales we don't want special support forTor Lillqvist1-7/+14
Change-Id: I40fd00d91a7e5ad5163bef63e1b60381bac58aa4
2014-04-24The language part of the WITH_LOCALE_* macros is lowercaseTor Lillqvist1-11/+11
Change-Id: I6addb92f083125233f92b0299c79a857fb0df011
2014-04-24More hacking on --with-localesTor Lillqvist2-22/+12
Propagate the restriction of locales into <config_locales.h>. Note that in the normal case, with no locale restrictions, all the WITH_LOCALE_xx macros are zero anyway, but WITH_LOCALE_ALL is one. Restrict which character encodings are handled in sal/textencsal/textenc/tables.cxx based on the WITH_LOCALE_ macros. (Don't simply always do it for iOS.) Massage the affected unit tests to not crash when only partial character encoding information is present. Change-Id: Ie2c882c262ebd0d2b37dde66b8fe3c3e2570da14
2014-04-23i18npool: sal_Bool->boolNoel Grandin43-193/+193
Change-Id: Id73ee64dbf8586743f0e436e004e663a65d4548f
2014-04-23Remove unneeded headerTor Lillqvist3-91/+0
Change-Id: I8d652f866a43a10da8561ad4659c8ae1c068ba41
2014-04-23Use our canonical header guard namingTor Lillqvist6-20/+24
Change-Id: I06c9c55f75dc13893e29ec6cc96726a60c34846c
2014-04-23Avoid cargo cult ritesTor Lillqvist47-252/+32
Change-Id: I39fee26048d5b4ddb03217309b7117bef9ec4cd8
2014-04-22Let --with-locales prune also built-in collator dataTor Lillqvist2-22/+67
Effective in the DISABLE_DYNLOADING case. Introduce a new gbuild macro gb_Helper_optional_locale. Change-Id: I43eb39fa810f71cadb6bc6d5c117ae145629ecb9
2014-04-22Add a new configure switch --with-locales for restricting the included localesTor Lillqvist1-1/+7
For now only effective in the DISABLE_DYNLOADING case, where it limits the locales compiled in to the i18npool library. Maybe should use this same option to also limit what collation tables etc are compiled in? Not expected to be used for desktop OSes, but can be useful for mobile platforms where every megabyte counts. Change-Id: If672b4cd19f44f8c7e119378faf40930a51969b7
2014-04-17Avoid possible memory leaks in case of exceptionsTakeshi Abe4-22/+21
Change-Id: Ibadadacbe09a93e7d7a7210868c52a8fa582d427
2014-04-14TypoTor Lillqvist1-1/+1
Change-Id: I888b4fcd6ad1bbdc95a1f6e17d2d35de193c3473
2014-04-14Need to skip these now on iOSTor Lillqvist1-2/+3
Change-Id: I4bf25a30152d3cbbcc2fae05e40accdde1548298
2014-04-14Put the dict_ja and _zh data in files instead of code for iOSTor Lillqvist6-39/+193
Map the file(s) into memory on demand. The executable file of an app needs to be as small as possible. Including additional data files in an app bundle is fine. Change-Id: Ife9bfe99a2cf0473d459f38f50dfa3304b39e282
2014-04-12Unnecessary to mention dependency on icudata as only libicuuc directly uses itTor Lillqvist2-2/+0
libicudata exports a single symbol, icudt52_data (for ICU version 52), and only libicuuc refers to it. Change-Id: Ia04356fda20cf8109156ccd1cbbd9091e70adf27
2014-04-11have a stab at fixing Tatar locale to pass build testsCaolán McNamara1-1/+8
Change-Id: I15b57365b0ecf4b6bdd7c521b7e05a954f01a0b8
2014-04-11Resolves: #i124631# Add locale data for Tatar (tt-RU)Ariel Constenla-Haile3-0/+353
Locale data contributed by Irek Khaziev <khazirek@mail.ru> (cherry picked from commit f5d13ffd92a71451be33f96a56a3bd75156a5901) Change-Id: Ie360e8b8ad534394e0c265a63b70fbe4e91c1b6d
2014-04-11Use valid UNOIDL identifiers in TransliterationModulesExtraStephan Bergmann1-2/+2
ignoreDiacritics_CTL was introduced in LO 4.2, but is unpublished and appears to be rarely used, so changing it is hopefully OK. ignoreKashida_CTL is new in LO 4.3. Change-Id: I52c6d1e8c6b30eec4af22e3bbc72dd5874ef7151
2014-04-10added one abbreviated DateAcceptancePattern for locales that didn't have anyEike Rathke39-0/+39
Change-Id: I0ee3f1553b4efa67701385de5c7fe32e5992b537
2014-04-09add abbreviated DateAcceptancePatternEike Rathke1-0/+1
Change-Id: I7cdc9b13fe950222521cb937e928da27ee55e866
2014-04-09Related: fdo#73544 change double quotation charactersJoan Montane1-2/+2
Change-Id: I1603dfad68261c917532f88397305eef57356da6
2014-04-08fdo#77123: Add option ignore kashida to the searchFaisal M. Al-Otaibi7-0/+50
This patch will add new checkbox to ignore kashida in the search and replace dialog. Change-Id: I9e7179242751103b8418d922ade5b9145170ad15
2014-04-07Related: #i124611# Correct date format in nds-DE locale dataAriel Constenla-Haile1-19/+19
Patch by: Timo Putzer <tputzer@gmx.de> (cherry picked from commit d1268a86dfef20ba8d2f4059180bd55764e4092d) Conflicts: i18npool/source/localedata/data/nds_DE.xml Change-Id: I83ad5057d08e5a5058f2f87bcaeeaa7d86788d31
2014-04-07Related: #i124611# - Include nds-DE locale dataAriel Constenla-Haile2-0/+2
(cherry picked from commit bd1eb988440fb0d1d207fd3ef590f9115d259c81) Conflicts: i18npool/source/localedata/data/localedata_euro.map i18npool/source/localedata/data/makefile.mk Change-Id: I18e828af3a51735caa3c8e70326766f998b44419
2014-04-07Resolves: #i124611# - nds-DE locale dataAriel Constenla-Haile1-0/+372
Locale data contributed by Timo Putzer <tputzer@gmx.de> (cherry picked from commit 7070f04ae10f0da2e33c543ff0282e252b7e7869) Change-Id: I0d0b43fe98398bec7c4f717c1be2f39b4ea832f5
2014-04-01Explicitly mark overriding destructors as "virtual"Stephan Bergmann25-25/+25
It appears that the C++ standard allows overriding destructors to be marked "override," but at least some MSVC versions complain about it, so at least make sure such destructors are explicitly marked "virtual." Change-Id: I0e1cafa7584fd16ebdce61f569eae2373a71b0a1
2014-04-01coverity#707923 Uninitialized scalar fieldCaolán McNamara1-0/+1
Change-Id: Iab2d5829b28587640058d484ef806d9e9e8c1f96
2014-03-28coverity#705185 Missing break in switchCaolán McNamara1-2/+5
Change-Id: I88c2fbea9265b729e21aa2f2d09bea89f91c01cb
2014-03-26First batch of adding SAL_OVERRRIDE to overriding function declarationsStephan Bergmann46-413/+413
...mostly done with a rewriting Clang plugin, with just some manual tweaking necessary to fix poor macro usage. Change-Id: I71fa20213e86be10de332ece0aa273239df7b61a
2014-03-20Translate names of months and the days of the week in Japanese calendarsTakeshi Abe1-62/+62
This affects a displayed name of months e.g. grouped by in a pivot table. See <http://listarchives.libreoffice.org/ja/discuss/msg02906.html> for the original discussion. Change-Id: I2ff0325f9ef2f2f03019291d4b760582b6dfbad8 Reviewed-on: https://gerrit.libreoffice.org/8678 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2014-03-18convert sal_Char* to OUStringNoel Grandin1-15/+4
I can see no reason to store sBulletName as an sal_Char* instead of converting backwards and forwards from OUString Change-Id: Ib16b9f04c5738aa2346c9b5b4f28461fc8b60c4f Reviewed-on: https://gerrit.libreoffice.org/8641 Tested-by: Michael Stahl <mstahl@redhat.com> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2014-03-18Find places where OUString and OString are passed by value.Noel Grandin2-2/+2
It's not very efficient, because we generally end up copying it twice - once into the parameter and again into the destination OUString. So I create a clang plugin that finds such places and generates a warning so that we can convert them to pass-by-reference. Change-Id: I5341a6ea9e3190f4b4c05c42c85595e3dcd83361
2014-03-11coverity#704236 Logically dead codeCaolán McNamara1-6/+1
the nStartPos > 0 check is inside a nStartPos == 0 block so it can't happen so we'll return immediately, and so there's no point changing numberOfChange in that case either there Change-Id: Id6d7fc31033de5c6f3bb0a9ed03234b58c0d509e
2014-03-08coverity#707923 Uninitialized scalar fieldCaolán McNamara1-0/+2
Change-Id: Ie1610a9e3df8e2844f4cc6b529d50db57ef8dc0e
2014-03-08coverity#707922 Uninitialized scalar fieldCaolán McNamara1-1/+3
Change-Id: I48f74be18664f8bf82e7b3f8576fef05b0e95630
2014-02-28remove unused code in i18npool/OFileWriterNoel Grandin2-22/+0
Specifically: OFileWriter::flush() OFileWriter::writeDefaultParameter(char const*, rtl::OUString const&) OFileWriter::writeParameter(char const*, char const*, rtl::OUString const&) Change-Id: Ie359be257b3c7493e31fcf4201818c29c9c3df53