summaryrefslogtreecommitdiff
path: root/l10ntools/inc
AgeCommit message (Collapse)AuthorFilesLines
2014-09-08l10ntools/inc/helper.hxx: bin unused header <cassert>Douglas Mencken1-2/+0
Change-Id: Ib2c43d9b158423c023a5bfd4da324554aa04902e Reviewed-on: https://gerrit.libreoffice.org/11316 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2014-09-08l10ntools-transex3: make pParseQueue field privateDouglas Mencken1-2/+4
Change-Id: Ieefed6e939e12b668a635eb8d7e70def2d52a85d Reviewed-on: https://gerrit.libreoffice.org/11315 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2014-06-11Fix XMLFile::SearchL10NElements signatureStephan Bergmann1-1/+1
Change-Id: I34134f75ac5571a635256d349bf5a2f67ef8ef06
2014-06-09loplugin: inlinesimplememberfunctionsNoel Grandin1-1/+1
Change-Id: I42119f656ca528286fb25d2d36c0af54b7d04a6b
2014-06-01fdo#68849: Add header guards to all include filesJens Carl1-0/+5
Added header guards to files in directories l10ntools/, lotuswordpro/, and rsc/ Change-Id: I9c034d4bb5c92d78378bda4658d43a8b603d5281 Reviewed-on: https://gerrit.libreoffice.org/9581 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2014-05-22Fix memory leak in xrmex toolStephan Bergmann1-1/+1
Change-Id: I102566a95b5b34daf60730ffef290913caf28eb2
2014-05-22Fix memory leak in cfgex toolStephan Bergmann1-6/+6
Change-Id: Ic8c410a805fa06777c1a85de646df2dcd5b6506a
2014-05-15Resolves fdo#70681: fixincludeguards.pl: all that's leftThomas Arnhold1-2/+2
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-04-14typo: befor -> beforeThomas Arnhold1-1/+1
2014-04-08Clean up function declarationsStephan Bergmann1-0/+40
Change-Id: Ie1360857dc4ed3102c709c1ef5b5929e5d5d5d7b
2014-04-04Clean up unreferenced functionsStephan Bergmann2-0/+67
Change-Id: Id2c90088298d389bd1cd8efad9aa26100965d6a2
2014-04-01Explicitly mark overriding destructors as "virtual"Stephan Bergmann2-4/+4
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-03-26First batch of adding SAL_OVERRRIDE to overriding function declarationsStephan Bergmann3-19/+19
...mostly done with a rewriting Clang plugin, with just some manual tweaking necessary to fix poor macro usage. Change-Id: I71fa20213e86be10de332ece0aa273239df7b61a
2014-02-26Remove visual noise from l10ntoolsAlexander Wilms2-16/+16
Change-Id: Ia10056ae9e1b9adfe74f299afac5c3c84fa8cea7 Reviewed-on: https://gerrit.libreoffice.org/8278 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-21cid#707946 Uninitialized pointer fieldNoel Grandin1-1/+0
this field was actually only used to swap values between other values, so convert it to local variables Change-Id: I274e8978651f905c0bd2391ac4baaf5c23388425
2014-02-18ulfex: remove unneeded bULF, it is always trueZolnai Tamás1-3/+1
Change-Id: I1401fddfdd42eba96253f4dd19cf60bba8de6802
2014-02-18Drop unnecessary #includeTakeshi Abe1-1/+0
Change-Id: Ib9ab63cdf21f54b1611de37c5538a300a1b39ba6
2014-02-17l10ntools: sal_Bool -> boolStephan Bergmann5-29/+29
Change-Id: Ifffdc0942b83b5761cbbbfc5db7d241be60815cb
2014-01-10sal_Bool -> boolStephan Bergmann1-1/+1
Change-Id: Iacfeab2cc6fb8bb85b964a995c5df16d03ed2e53
2014-01-06Transex3: modify src list localization/merge partZolnai Tamás1-6/+0
Avoid using numbers to identify the list items because using numbers can lead to mixed translations. Use the corresponding string instead. Remove a hacky solution for mixed translations. See: 95ea6cb21a7d7f4f163e642ba4b1e165a427a0d1 Change-Id: I6f1d48bf71fe2146f04f53c6b474dd7c0ce98678
2013-12-27Transex3: Simplify members for listsZolnai Tamás1-42/+6
No need for hashmaps (ExportListEntry) because only one list is stored (en-US). One list member is enough instead of one for all types. Change-Id: I952d6616e436c5aa7656854f83d442434ffcbd54
2013-12-27Transex3: NO_LOCALIZE_EXPORTZolnai Tamás1-1/+0
In the past, NO_LOCALIZE_EXPORT macro must be used to skip uneeded parsing of src files which has no localizable content. It is unsued by now and it is more effective to handle this files on gmake level: gb_SrsTarget_add_nonlocalizable_files gb_SrsTarget_add_nonlocalizable_templates Plus remove some empty src file. Change-Id: I8fc9b2db0b5fd7a3379d3c5be970c4fc691f4c53
2013-12-27Transex3: remove unused sLastTextType memberZolnai Tamás1-1/+0
Change-Id: I82196decf0419adabc849bd82141e8702f510c1c
2013-12-27Transex3: remove obsolete textrefidZolnai Tamás1-1/+0
Change-Id: Ic34efbd2090a11aa6fa88d67eda7ab31b1bddfcb
2013-12-27Transex3: sHelpId is assigned but never usedZolnai Tamás1-1/+0
Change-Id: I01bc171f5ad399644185e5e6d0398e89d9305ee7
2013-12-27Transex3: remove unused text typesZolnai Tamás1-4/+0
Change-Id: Iad98aae685153589ff72a4be2ec704c0d311e1fd
2013-12-27Transex3: remove obsolete HelpTextZolnai Tamás1-4/+0
Used alternative: Text[ x-comment ] Change-Id: I762bf89c5ed316ec63183e3bedc22cbaac2e8aba
2013-12-27Transex3: UIEntries list type is unusedZolnai Tamás2-3/+0
This list type doesn't appear in the resource files and there are lots of alternatives (ItemList, StringList ...) for future need. Change-Id: Ia4454a329ba93f54e5b3ca45443a1a84be3b4bf7
2013-12-27Transex3: bDontWriteOutput is assigend but never usedZolnai Tamás1-1/+0
Change-Id: I9ca8c83a225ea4860ac40c7584ec9c56acae0d6c
2013-12-27Transex3: remove not parsed tokensZolnai Tamás1-5/+0
Change-Id: I7e610c767e28e2af683f95aa573cbe34b35b6966
2013-11-17good-bye stringex, you served wellAndras Timar1-41/+0
It will be better to handle Android Impress Remote localization independent of the big LibreOffice source tree. Instead of stringex, we will use android2po, a 3rd party utility for conversion strings.xml <-> pot/po. Change-Id: I4eae53e4f8d94c55e5564d54c5e5c214bc9569d7
2013-11-05fixincludeguards.sh: l10ntoolsThomas Arnhold12-32/+32
Change-Id: I0fce5b2c59e468e936e3a0fa99ebd50c9d15d0cd
2013-10-22Bin comments that claim to say why some header is includedTor Lillqvist1-1/+1
They are practically always useless, often misleading or obsolete. Change-Id: I2d32182a31349c9fb3b982498fd22d93e84c0c0c
2013-09-18Clean up l10ntools xml parser.Zolnai Tamás1-174/+102
-Remove namespaces from header. -Remove unused members (dbgcnt) -Remove helpless methods (SetValue, copy ctr and operator, inherited but not overriden virtual functions) -Use prefixes for variables -Use const where it possible -Remove visual noise -Correct indentation Change-Id: I295be484dde157847cd16f260ec70d5cdb5b6fb4
2013-09-18Use OString in xmlparse.cxx to avoid numerous srting conversionZolnai Tamás1-50/+43
Plus: - Use macros instead of members. - Use const where it is usefull. Change-Id: I960f5dec29b5c17655055e1884bc4e7983359318
2013-09-14fdo#68790: fix build error on Win when system locale=="Japanese(Japan)"Tomofumi Yagi2-1/+5
This patch modifies transex3. Modified transex3 outputs a file with BOM(if MergeMode is true). *.[hs]rc files with BOM avoid this problem. This problem is that MSVC interprets UTF-8 source code without BOM as local codepage when system locale is "Japanese(Japan)". Change-Id: I3e12499a91a954236f48e6d7e360d26c93d19ed6 Reviewed-on: https://gerrit.libreoffice.org/5851 Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Kohei Yoshida <libreoffice@kohei.us> Reviewed-by: Kohei Yoshida <libreoffice@kohei.us>
2013-05-28Source files shouldn't have executable bit set.Mark Wielaard1-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-10soltools: remove Package_inc and empty unistd.h nonsenseMichael Stahl1-1/+2
Change-Id: Ic05de69951b28b9cc8d62f0a534b507c424e6b25
2013-05-02Some code scrubingZolnai Tamás10-103/+96
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ás1-7/+57
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-23L10ntools: remove some lang vectors from parsingZolnai Tamás2-4/+1
Change-Id: I3b9ef50d8e0c1e99d5b535d95a5add90a1cbaf03
2013-04-21Delete more unused member from exportZolnai Tamás1-5/+0
Change-Id: Icebd32c7ac2144f99827ca48cca7bbcaf10814c4
2013-04-21Some changes in qtz handlingZolnai Tamás3-3/+5
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ás1-4/+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ás1-3/+0
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-13l10ntools: export use only en-USZolnai Tamás4-5/+4
So no need to ad it in a commandline parameter. No need to use a vector to store languages. Change-Id: I1f7d3bd131b5a9ff23d403cee4ac6804ae8e0a0b
2013-04-13Delete obsolote platform from l10ntools mergeZolnai Tamás1-32/+19
Change-Id: I5e5b87355d3d6e369c8fccd7078581758abb3b10
2013-04-13Make l10ntools executables escape clearZolnai Tamás4-7/+6
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-07mass removal of rtl:: prefixes for O(U)String*Luboš Luňák6-199/+199
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-03-31Make a bit cleaner transformation of help stringsZolnai Tamás2-5/+6
*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