summaryrefslogtreecommitdiffstats
path: root/l10ntools
Commit message (Collapse)AuthorAgeFilesLines
* gbuild: drop empty use_packages callsDavid Tardon2013-04-241-3/+0
| | | | | | | Change-Id: I8e9f70eb5d929c98b4379416c2259a74e31d587f Reviewed-on: https://gerrit.libreoffice.org/3503 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
* move URE headers to include/David Tardon2013-04-241-2/+0
| | | | | | | Change-Id: Ib48a12e902f2311c295b2007f08f44dee28f431d Reviewed-on: https://gerrit.libreoffice.org/3499 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
* L10ntools: remove some lang vectors from parsingZolnai Tamás2013-04-233-14/+1
| | | | Change-Id: I3b9ef50d8e0c1e99d5b535d95a5add90a1cbaf03
* Move to MPLv2 license headers, with ESC decision and author's permission.Michael Meeks2013-04-221-22/+4
|
* Delete more unused member from exportZolnai Tamás2013-04-212-13/+0
| | | | Change-Id: Icebd32c7ac2144f99827ca48cca7bbcaf10814c4
* Some changes in qtz handlingZolnai Tamás2013-04-2111-167/+223
| | | | | | | | | Executalbes, which work one language, generat qtz by own. (stringex,helpex,treex,propex) So these executables can generate qtz without po file when use them with qtz, call them with "-m" flag without parameter. Change-Id: I56c34db7151dc3ef0ce1c85ed607719e4cbb5e92
* Delete some unneeded member of ResDataZolnai Tamás2013-04-203-27/+0
| | | | | | | nChildIndex and bRestMerges are simple unused. nWidth is an obsolote attribute Change-Id: I669a17cefb3dc8628ce2c8d9db8abac630fc3cde
* Delete remaind code of an obsolote parameterZolnai Tamás2013-04-152-50/+2
| | | | | | | | | Past: Use "-l en-US, af, hu..." parameter for transex and to work with this string use InitLanguages() function. Now: Use "-l all" parameter and get langauges from po files. So InitLanguages is unneeded. Change-Id: Ide6b3d24fb8b483c0c31034b1ffd6aba31c5e4c9
* Fix warning: unused variable 'sPlatform' [loplugin]Tor Lillqvist2013-04-131-2/+0
| | | | Change-Id: I2d6c7bae4f202a00f89d22b63370c128cc27c7c4
* Revert "KeyId do not contain special chars so ulfex can use it again"Zolnai Tamás2013-04-131-0/+4
| | | | This reverts commit 8287da2fbc09882893642b7a6e3ca555b2b956b3.
* Some empty pot directories remainedZolnai Tamás2013-04-131-13/+14
| | | | Change-Id: I5aedd4595c3f676deaedddf80c3a96250015f2ed
* KeyId do not contain special chars so ulfex can use it againZolnai Tamás2013-04-131-4/+0
| | | | Change-Id: Icfb581ac2771df39c71ad12f94dba5d51f3c4ec5
* l10ntools: export use only en-USZolnai Tamás2013-04-1313-116/+63
| | | | | | | So no need to ad it in a commandline parameter. No need to use a vector to store languages. Change-Id: I1f7d3bd131b5a9ff23d403cee4ac6804ae8e0a0b
* Remove obsolote 'empty string -> "-"' behaviourZolnai Tamás2013-04-134-24/+21
| | | | Change-Id: I1d81d4c5716c397b84c0a8959b21beacbbbf1138
* Delete obsolote platform from l10ntools mergeZolnai Tamás2013-04-1311-155/+87
| | | | Change-Id: I5e5b87355d3d6e369c8fccd7078581758abb3b10
* Make l10ntools executables escape clearZolnai Tamás2013-04-1313-195/+99
| | | | | | | | | | | | | | | Steps of escaping process: 1. Executables unescape the string for export(if necessary) 2. Po class work with unescaped string 3. Escape strings to PO format and write out 4. Read from PO and unescape strings 5. Executables make own transformation on string and merge Use general functions for escaping (helper) Delete unneeded escaping methods(xrmmerge, merge) Delete some unused method from PoEntry class Change-Id: I7f9414581aae9e6de7d1573862a32cdbd68c9545
* rename expat external to 'expat'David Tardon2013-04-091-1/+1
| | | | | | | expat_utf16 is long gone, so there is no need to fool around with expat_utf8. Change-Id: I0dd4a5c4d78805e98913e645cc83d2ab634bcb89
* mass removal of rtl:: prefixes for O(U)String*Luboš Luňák2013-04-0714-658/+658
| | | | | | | | Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk have kept them, in order not to break external API (the automatic using declaration is LO-internal). Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
* Fix assertion in xmlparse and call this function with more careZolnai Tamás2013-04-021-6/+9
| | | | | | Plus change range to [nStart,nEnd). Change-Id: I1570d07fdc90a6b2bdf3eef7914958212cbbaa87
* Prevent asserts from firingStephan Bergmann2013-04-021-2/+2
| | | | | | | ...whether or not this is already the correct fix. The twisted nEndPos/nStartPos arguments in the calls to lcl_QuotRange look somewhat odd. Change-Id: If22afb058012c830b5aa6d059c7df0b4e9c53696
* There is no <Arg> tag in xcu localizable stringsZolnai Tamás2013-03-312-57/+5
| | | | | | | | So no reason to work with it. So can use helper function after make it to handle single quote. Change-Id: Ic2eb901148c3ae31316607b41350bbad79a639db
* Make a bit cleaner transformation of help stringsZolnai Tamás2013-03-3117-204/+167
| | | | | | | | | | | | | | | | | *Not escape tags and double quots in tags, but find tags(icu regexp) when merge and use this infromation to make strings valid. *Define a new Quot function for helpex, which works with icu UnicodeCharacter. *Move tag search to xmlparse.cxx and use icu just in helpex. *QuotHTML not unescape just replace xml charcters. (unescaping is also useless in uimerge.cxx) *Move UnQuotHTML() to helper. (was used it in xmlparse.cxx and cfgmerge.cxx) *Use UnQuotHTML() in uimerge.cxx too. Change-Id: Ice8940ef69279709a1c5d84c6ae1b0d62a71ca76
* Half-assed attempt at enforcing operator [] preconditionsStephan Bergmann2013-03-281-2/+4
| | | | | | | | | ...inspired by comments to <https://gerrit.libreoffice.org/#/c/3068/> "String::AppendAscii cleanup in dbaccess," but it quickly becomes apparent that lots of code rely on s[s.getLength()] == 0, so live with a weakened precondition check for now. Change-Id: Ifad96c706b14433df4a084ab8054b32433b8b5b6
* Fix build: typo and not needZolnai Tamás2013-03-271-1/+0
| | | | Change-Id: I7bc1ee815e6ac333fb0c5b9a2c3135db2f81235e
* -Werror,-Wunused-private-fieldStephan Bergmann2013-03-272-5/+0
| | | | Change-Id: I42235ca7cd25c07af7daaf51f56a6deb60e4108e
* l10ntools/inc/helper.hxx includes libxml/parser.hStephan Bergmann2013-03-271-0/+1
| | | | Change-Id: I44512a132cdc428b5ab157f19107690b781af823
* Refactor l10ntoolsZolnai Tamás2013-03-2728-948/+714
| | | | | | | | | | Delete unused functions. Make Export class more encapsulated. Move to local that functions which are used only in one file. Common contans method which are used by all executables. Helper contains methods belong to xml parsing. Change-Id: I28773a2c7eea90da7df7f32720fd38de2cb661ac
* -Wunused-macrosStephan Bergmann2013-03-272-3/+0
| | | | Change-Id: Ifaa1637122d6f9cae1e29b77ac36ca5d1f220aed
* Typo __SINPRO_CC -> __SUNPRO_CCStephan Bergmann2013-03-263-3/+3
| | | | Change-Id: I831abe80f9b4b160f4af10a16f4d45cc68fa3bb6
* Remove unneeded project and projectroot parametersZolnai Tamás2013-03-2518-232/+153
| | | | | | | Plus avoid use of Export::sLanguages member outside of the class. Change-Id: I33702816fdb4980d690cfe8fcd8cc3fbd0df1dd8
* Introduce HAVE_GCC_PRAGMA_DIAGNOSTIC_{MODIFY,SCOPE}Stephan Bergmann2013-03-253-9/+9
| | | | | | | | | | | | | ...replacing hard-coded GCC version checks. Those checks that guard #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" appear relevant only for GCC itself, not Clang (which used to fail the old guards because it typically announces itself with a rather low __GNUC__/__GNUC_MINOR__ version), see 6e67c03dc0225fc66343546b14e902b9d238b1a3 "Enable -Wnon-virtual-dtor for GCC 4.6" Change-Id: I6bfa4d5caa6192e7a203ce829682bf6bb8d61a1b
* qtz length changed, use this length dynamicallyZolnai Tamás2013-03-241-2/+2
| | | | Change-Id: I2935ff0c1114f1b3e690fd6f86441a180566fd32
* Check return value of system()Zolnai Tamás2013-03-221-1/+7
| | | | Change-Id: I1b9e31b8c64ed8bf7eb073f036a7fdda39a15392
* These classes are not usedZolnai Tamás2013-03-196-415/+0
| | | | | | Classes with same function: osl::Directory, osl::File Change-Id: I0e8d18bab6ee244da274c733b8f1f646897afc7d
* Localize files of a directory in lexical orderZolnai Tamás2013-03-191-40/+69
| | | | | | To avoid big diffs, stem from platform dependent order. Change-Id: I848a14de2c4e7af2f3a2d9a0fdb005c289cfead2
* Simplify equalsIgnoreAsciiCaseAscii[L] callsStephan Bergmann2013-03-191-1/+1
| | | | Change-Id: If5201bd772aed245e8f7f8b900d76ffe4ca57b49
* automated removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStringsThomas Arnhold2013-03-191-2/+2
| | | | | | | | | | | Done with a perl regex: s/OUString\s*\(\s*RTL_CONSTASCII_USTRINGPARAM\s*\((\s*"[^")]*?"\s*)\)\s*\)/OUString\($1\)/gms Change-Id: Idf28320817cdcbea6d0f7ec06a9bf51bd2c3b3ec Reviewed-on: https://gerrit.libreoffice.org/2832 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
* coverity#982269 Copy-paste errorJulien Nabet2013-03-181-1/+1
| | | | | | | | Change-Id: I8d900e83543d3914b215451ebbd77f823835643b Reviewed-on: https://gerrit.libreoffice.org/2801 Reviewed-by: Joren De Cuyper <joren.libreoffice@telenet.be> Reviewed-by: Tomáš Chvátal <tchvatal@suse.cz> Tested-by: Tomáš Chvátal <tchvatal@suse.cz>
* Get rid of generating temporary sdf fileZolnai Tamás2013-03-1627-704/+495
| | | | | | | | | | | Working: 1. Localize add header to po files. 2. Executables append po entries to po files. 3. Localize delete entryless po files and empty directories Plus a bunch of clean up. Change-Id: I58e300eaee4cee948203cc9d3e642ca9462d0d26
* remove legacy build.pl prj/build.lst files.Michael Meeks2013-03-141-3/+0
|
* more subtle dependencies for cross-compilationMatúš Kukan2013-03-131-1/+4
| | | | | | | | | | Now we build only what we really need for 'build' platform - there is new build-tools make target. The list of tools is in solenv/gbuild/extensions/pre_BuildTools.mk. Also similar is done to some extent for 'host' platform using gb_Module_add_targets_for_build which is ignored for 'host'. Change-Id: I6acd1762b16aca366aac1a0688500f27869cfca2
* l10ntools: these are not public headersMatúš Kukan2013-03-127-38/+4
| | | | Change-Id: Ia9630c1ff60a00cd8286e99f61aacd27891f65e0
* fdo#59867 set correct LCID for Catalan Valencian in Windows installerAndras Timar2013-03-121-1/+1
| | | | Change-Id: Ie50adaf4f90bd39c1f1f07dc1c7076038473064f
* filter: use python version of FCFGMergeMatúš Kukan2013-03-1114-5423/+0
| | | | Change-Id: I23124b919359c1217529724338b8d4906e051306
* Use simpler keyid with 5 digitsZolnai Tamás2013-03-091-7/+7
| | | | Change-Id: Iac743d4f298b43067fe5db9199eb39c3301f827e
* not stop localize, just ignore invalid po entriesZolnai Tamás2013-03-091-1/+0
| | | | Change-Id: I8bd987ec0f2bd4a886a14d38d7b7ba354abd2f06
* Delete PoHeader constructor used by renewpoZolnai Tamás2013-03-092-37/+0
| | | | Change-Id: I360a9c96eacf9b7b8bd80214a3fc4c9faa01e631
* fdo#60148 Clean up warnings from the Clang compiler pluginnccuong2013-03-061-2/+1
| | | | | | | | Change-Id: I08d755677c46c476710ecbd067ed9f7e2f54a671 loplugin: clean warnings: unused variables, incorrect indentation and log area. Reviewed-on: https://gerrit.libreoffice.org/2544 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
* remove obsoleted ulfconv utilityAndras Timar2013-03-053-374/+0
| | | | Change-Id: Id627136d25a40b5d573e274cc6ad78418b8ffdb9
* remove obsolete po2lo scriptAndras Timar2013-03-043-265/+0
| | | | Change-Id: If014e70066f4d103b7b01c69c928471ba298b6cd