summaryrefslogtreecommitdiff
path: root/l10ntools
AgeCommit message (Collapse)AuthorFilesLines
2013-05-28Better verification of bad idxdict inputStephan Bergmann1-1/+11
...see dictionaries comits df423c53829faa96f46acd71887fd0f8697c49e9 "fix Lithuanian thesaurus" and 9b6407dadc64e10e7117d8551917b46105ecc6c8 "Fix more thesauri." Change-Id: I6ddc41fce4e3f68d80d05af3320c835b98908fcb
2013-05-28Source files shouldn't have executable bit set.Mark Wielaard2-0/+0
Change-Id: Iafad6249a7998d7c749c1ca2979a606078cfcb5e Reviewed-on: https://gerrit.libreoffice.org/4070 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-05-26Escape quotes during stringex exportZolnai Tamás1-2/+2
Change-Id: If53afd3743f44bcfffab33122657d14c0f4aba1e
2013-05-25Fix some escaping bug in l10ntoolsZolnai Tamás2-1/+5
1. A typo in export.cxx makes not working replacing 2. EscapeAll() ignored single backlash characters Change-Id: I1a5309778acdd601391f643ebf3c66d04a6601d4
2013-05-23RHEL-5 baseline ver of flex doesn't have nounistdCaolán McNamara3-3/+3
lets try this hack, if it fails revert and I'll just manually update the baseline with a newer flex than flex-2.5.4a-41.fc6 Change-Id: If644489e80fc4e4cdba97808af0fe4d544d08646
2013-05-15gallery: cleanup makefiles for new gallery naming and translation.Michael Meeks1-0/+1
Change-Id: I9ec5192c007df6d0ce15f5e61cb53cf6ea04db08
2013-05-14typo fix: s/inavlid/invalid/Andras Timar1-2/+2
Change-Id: If75cad038f35033be6dcad6f051673bd795accf3
2013-05-11fixed transex3 out of bounds access to vMergeEntryVectorEike Rathke1-1/+1
transex3 crashed if a new language was added to the StringArray PairedList in svtools/source/misc/langtab.src and that resource was attempted to be built. For the new entry doesn't exist a MergeEntrys entry in vMergeEntryVector yet, but ExportList::GetSourceLanguageListEntryCount() already includes it so nMaxList is greater than size of vMergeEntryVector. Check nLIndex first. Change-Id: I3b706bea7aea7cd7ecd8245d99587b944510952d
2013-05-10soltools: remove Package_inc and empty unistd.h nonsenseMichael Stahl4-1/+5
Change-Id: Ic05de69951b28b9cc8d62f0a534b507c424e6b25
2013-05-08coverity#1019372/373: Resource leaksJulien Nabet2-0/+2
Change-Id: I8d1facfa027701a4f249f14392f9b204e92180be
2013-05-08coverity#1019374: Resource leakJulien Nabet1-0/+1
Change-Id: If558758e3315879adf3034038f7ebe7315baf7a6
2013-05-08coverity#982460: Explicit null dereferencedJulien Nabet1-3/+2
Change-Id: I64d559603bff0d618dce72927566531296984d3c Reviewed-on: https://gerrit.libreoffice.org/3823 Reviewed-by: Noel Power <noel.power@suse.com> Tested-by: Noel Power <noel.power@suse.com>
2013-05-02WaE: unused parameter 'rOpenTag'Tor Lillqvist1-1/+1
Change-Id: I515a316bea0bef6608d993823f906390b39e9fa9
2013-05-02Fix warning: unused variable 'sLang' [loplugin]Tor Lillqvist1-2/+0
Change-Id: I0cf95c5ef222d085ccda73b54165d7238190becc
2013-05-02Some code scrubingZolnai Tamás16-282/+151
Add doxygen documentation for classes and methods Delete useless comments. Add include guards where missing. Delete some useless typedef. Change-Id: I9bba16560790239d7775fcd40981465e70e5d437
2013-05-02Make localization a bit more effectiveZolnai Tamás6-422/+266
1. get rid of some unefficiency The "old" executables used to parse items which has other language than en-US. To this items executables search MergeEntrys(read from po) and change the content if possible. This mixed localization method not need any longer. -cfgex: cfgmerge:WorkOnText() -xrmex: xrmmerge:WorkOnText() -transex3: export:PrepareTextToMerge() 2. Change the container of MergeData to get a bit efficiency. The new MergeDataHashMap is exploit that in most case the insertion and search happen in the same order.(similar to fifo) So add an iterator-chain to define an insertion order in the original hashmap. Every call of find it is a hint that the next element, to the last found one, is the searched one. If not than search such like in a HasMap. 3. Set up some order in helpex Helpex is the only one, which was not used to merge strings in the same order as export, so change it to work effective with the new HashMap. Helpex works with all file of a specific directory and po files contain the strings of these files in lexical order so use the same order for merge.(HelpTarget.mk) 4. Make export use MergeDataHashMap a bit more effective -The same MergeData contains strings to all language, so it need to get only once. -Just text entrys have MergeData, others not need to search for it. (e.g. bitmap) Plus delete some unused code. Change-Id: I6ec80cd2323ffea8f783d0b59dc89ca7eac3c205
2013-04-30Move to MPLv2 license headers, with ESC decision and author's permission.Michael Meeks9-191/+37
2013-04-24gbuild: drop empty use_packages callsDavid Tardon1-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>
2013-04-24move URE headers to include/David Tardon1-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>
2013-04-23L10ntools: remove some lang vectors from parsingZolnai Tamás3-14/+1
Change-Id: I3b9ef50d8e0c1e99d5b535d95a5add90a1cbaf03
2013-04-22Move to MPLv2 license headers, with ESC decision and author's permission.Michael Meeks1-22/+4
2013-04-21Delete more unused member from exportZolnai Tamás2-13/+0
Change-Id: Icebd32c7ac2144f99827ca48cca7bbcaf10814c4
2013-04-21Some changes in qtz handlingZolnai Tamás11-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
2013-04-20Delete some unneeded member of ResDataZolnai Tamás3-27/+0
nChildIndex and bRestMerges are simple unused. nWidth is an obsolote attribute Change-Id: I669a17cefb3dc8628ce2c8d9db8abac630fc3cde
2013-04-15Delete remaind code of an obsolote parameterZolnai Tamás2-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
2013-04-13Fix warning: unused variable 'sPlatform' [loplugin]Tor Lillqvist1-2/+0
Change-Id: I2d6c7bae4f202a00f89d22b63370c128cc27c7c4
2013-04-13Revert "KeyId do not contain special chars so ulfex can use it again"Zolnai Tamás1-0/+4
This reverts commit 8287da2fbc09882893642b7a6e3ca555b2b956b3.
2013-04-13Some empty pot directories remainedZolnai Tamás1-13/+14
Change-Id: I5aedd4595c3f676deaedddf80c3a96250015f2ed
2013-04-13KeyId do not contain special chars so ulfex can use it againZolnai Tamás1-4/+0
Change-Id: Icfb581ac2771df39c71ad12f94dba5d51f3c4ec5
2013-04-13l10ntools: export use only en-USZolnai Tamás13-116/+63
So no need to ad it in a commandline parameter. No need to use a vector to store languages. Change-Id: I1f7d3bd131b5a9ff23d403cee4ac6804ae8e0a0b
2013-04-13Remove obsolote 'empty string -> "-"' behaviourZolnai Tamás4-24/+21
Change-Id: I1d81d4c5716c397b84c0a8959b21beacbbbf1138
2013-04-13Delete obsolote platform from l10ntools mergeZolnai Tamás11-155/+87
Change-Id: I5e5b87355d3d6e369c8fccd7078581758abb3b10
2013-04-13Make l10ntools executables escape clearZolnai Tamás13-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
2013-04-09rename expat external to 'expat'David Tardon1-1/+1
expat_utf16 is long gone, so there is no need to fool around with expat_utf8. Change-Id: I0dd4a5c4d78805e98913e645cc83d2ab634bcb89
2013-04-07mass removal of rtl:: prefixes for O(U)String*Luboš Luňák14-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
2013-04-02Fix assertion in xmlparse and call this function with more careZolnai Tamás1-6/+9
Plus change range to [nStart,nEnd). Change-Id: I1570d07fdc90a6b2bdf3eef7914958212cbbaa87
2013-04-02Prevent asserts from firingStephan Bergmann1-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
2013-03-31There is no <Arg> tag in xcu localizable stringsZolnai Tamás2-57/+5
So no reason to work with it. So can use helper function after make it to handle single quote. Change-Id: Ic2eb901148c3ae31316607b41350bbad79a639db
2013-03-31Make a bit cleaner transformation of help stringsZolnai Tamás17-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
2013-03-28Half-assed attempt at enforcing operator [] preconditionsStephan Bergmann1-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
2013-03-27Fix build: typo and not needZolnai Tamás1-1/+0
Change-Id: I7bc1ee815e6ac333fb0c5b9a2c3135db2f81235e
2013-03-27-Werror,-Wunused-private-fieldStephan Bergmann2-5/+0
Change-Id: I42235ca7cd25c07af7daaf51f56a6deb60e4108e
2013-03-27l10ntools/inc/helper.hxx includes libxml/parser.hStephan Bergmann1-0/+1
Change-Id: I44512a132cdc428b5ab157f19107690b781af823
2013-03-27Refactor l10ntoolsZolnai Tamás28-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
2013-03-27-Wunused-macrosStephan Bergmann2-3/+0
Change-Id: Ifaa1637122d6f9cae1e29b77ac36ca5d1f220aed
2013-03-26Typo __SINPRO_CC -> __SUNPRO_CCStephan Bergmann3-3/+3
Change-Id: I831abe80f9b4b160f4af10a16f4d45cc68fa3bb6
2013-03-25Remove unneeded project and projectroot parametersZolnai Tamás18-232/+153
Plus avoid use of Export::sLanguages member outside of the class. Change-Id: I33702816fdb4980d690cfe8fcd8cc3fbd0df1dd8
2013-03-25Introduce HAVE_GCC_PRAGMA_DIAGNOSTIC_{MODIFY,SCOPE}Stephan Bergmann3-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
2013-03-24qtz length changed, use this length dynamicallyZolnai Tamás1-2/+2
Change-Id: I2935ff0c1114f1b3e690fd6f86441a180566fd32
2013-03-22Check return value of system()Zolnai Tamás1-1/+7
Change-Id: I1b9e31b8c64ed8bf7eb073f036a7fdda39a15392