summaryrefslogtreecommitdiff
path: root/l10ntools
AgeCommit message (Collapse)Author
2013-09-12fdo#69208 take getenv() call out of the loopTomofumi Yagi
Change-Id: Iade7917eb9ade7248392e04f4653bda3674464aa
2013-09-10changed all 'sh' language to 'sr-Latn'Eike Rathke
Change-Id: Iafadaea87501bc3675eaf2856b5050a7e3ecaa37
2013-09-05CID#1078786: fix memory leakMarkus Mohrhard
Change-Id: I17a257f2abe90e8d489fa1af0e0889934dc3fd47
2013-09-05CID#1078787: fix memory leakMarkus Mohrhard
Change-Id: Ia54965d35ffe29e32b85cd720ecd41495ff72063
2013-09-04renamed ca-XV to ca-valencia and activated ca-ES-valencia, fdo#59867 relatedEike Rathke
Build Catalan-Valencian as ca-valencia instead of ca-XV private-use. Introduced LANGUAGE_CATALAN_VALENCIAN 0x0803 mapping to ca-ES-valencia, preserving old ca-XV and qcv-ES mappings to now LANGUAGE_CATALAN_VALENCIAN and LANGUAGE_OBSOLETE_USER_CATALAN_VALENCIAN 0x8003 to ca-ES-valencia. Removed special !bUserInterfaceSelection treatment from MsLangId::getReplacementForObsoleteLanguage() and added the usual obsolete replacement instead. Change-Id: I2fdd8b0bac55d4b4ae2cbf3c3645f09fefec9b6e
2013-09-02PoHeader constructure problem with boostNorbert Thiebaud
No idea why that seems to work on other platform but 10.6 SDK does not like it at all Change-Id: I145b03874ba948cb29c998552e852f29999bc471
2013-09-02pocheck now removes entries from .po files which are incorrectViktor Varga
Change-Id: I1749714154be9c2aea7a8623719c38601abc13ba Reviewed-on: https://gerrit.libreoffice.org/5750 Reviewed-by: Andras Timar <atimar@suse.com> Tested-by: Andras Timar <atimar@suse.com>
2013-08-22pocheck: Math symbol names (from symbol.src) must not contain spacesAndras Timar
Change-Id: I4195ae747229dd5f991acc8ed5764b42aeb73cf3
2013-08-22downcast of address which does not point to an object of type 'XMLParentNode'Stephan Bergmann
(note: object is of type 'XMLDefault'); Clang -fsanitize=undefined Change-Id: Idaa1e30068c389ed57977d40fc90410ec9ff3665
2013-08-21finish deprecation of O(U)String::valueOf()Luboš Luňák
Compiler plugin to replace with matching number(), boolean() or OUString ctor, ran it, few manual tweaks, mark as really deprecated. Change-Id: I4a79bdbcf4c460d21e73b635d2bd3725c22876b2
2013-08-20Missing + signsStephan Bergmann
Change-Id: I60cfb30c7caab308a0cbe415ba04e1245ed3dd9c
2013-08-20fdo#67786 pocheck tool for checking translationsAndras Timar
Pootle has many checks, but there are cases which are not covered. Therefore I wrote a tool which checked three types of translation errors: 1. Unique style names. 2. Unique spreadsheet function names. 3. Missing trailing '|' in Windows installer translation. Usage: make cmd cmd=solver/*/bin/pocheck It checks all languages and prints the report to stdout. Change-Id: I89aad66ea41c0ebe4a6f45beaaf86afd1a6439cc
2013-07-29Mark as constTakeshi Abe
Change-Id: Ib78b25641ae20a3eb23545649f08b963e34c74ff
2013-07-22coverity#1038312: Dereference before null checkJulien Nabet
Change-Id: Ibe9babbe8610bf70a80b819e21d24c6572436092 Reviewed-on: https://gerrit.libreoffice.org/5015 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-06-29Search for char instead of 1 char long string, when possible.Thomas Arnhold
follow-up of a7674482254ee996b1c4fee60f3064778be369aa Change-Id: I25f40c601454c092078307d931333af1bc1447ac
2013-06-22fdo#66048: export cannot handle starting \\\"Zolnai Tamás
Old stuff. By now we always have to add double quotes to the edges of text. Change-Id: I14ca7283d723bf87fb232288d92e53393e90103e
2013-06-17l10ntools: getLength() -> isEmpty()Zolnai Tamás
Change-Id: I9272c244e22d87fbd2547f4fcb6b94493ffaad3a
2013-06-11fdo#65483 Invalid po lines caused missing translationsZolnai Tamás
L10ntools merge skipped reading po files entirely when got an invalid entry from one of these po files, by now just skip the invalid po file instead. Change-Id: I787d531e1842e53e2074690b1300a204abd928f5
2013-05-28Better verification of bad idxdict inputStephan Bergmann
...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 Wielaard
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ás
Change-Id: If53afd3743f44bcfffab33122657d14c0f4aba1e
2013-05-25Fix some escaping bug in l10ntoolsZolnai Tamás
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 McNamara
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 Meeks
Change-Id: I9ec5192c007df6d0ce15f5e61cb53cf6ea04db08
2013-05-14typo fix: s/inavlid/invalid/Andras Timar
Change-Id: If75cad038f35033be6dcad6f051673bd795accf3
2013-05-11fixed transex3 out of bounds access to vMergeEntryVectorEike Rathke
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 Stahl
Change-Id: Ic05de69951b28b9cc8d62f0a534b507c424e6b25
2013-05-08coverity#1019372/373: Resource leaksJulien Nabet
Change-Id: I8d1facfa027701a4f249f14392f9b204e92180be
2013-05-08coverity#1019374: Resource leakJulien Nabet
Change-Id: If558758e3315879adf3034038f7ebe7315baf7a6
2013-05-08coverity#982460: Explicit null dereferencedJulien Nabet
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 Lillqvist
Change-Id: I515a316bea0bef6608d993823f906390b39e9fa9
2013-05-02Fix warning: unused variable 'sLang' [loplugin]Tor Lillqvist
Change-Id: I0cf95c5ef222d085ccda73b54165d7238190becc
2013-05-02Some code scrubingZolnai Tamás
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ás
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 Meeks
2013-04-24gbuild: drop empty use_packages callsDavid Tardon
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 Tardon
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ás
Change-Id: I3b9ef50d8e0c1e99d5b535d95a5add90a1cbaf03
2013-04-22Move to MPLv2 license headers, with ESC decision and author's permission.Michael Meeks
2013-04-21Delete more unused member from exportZolnai Tamás
Change-Id: Icebd32c7ac2144f99827ca48cca7bbcaf10814c4
2013-04-21Some changes in qtz handlingZolnai Tamás
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ás
nChildIndex and bRestMerges are simple unused. nWidth is an obsolote attribute Change-Id: I669a17cefb3dc8628ce2c8d9db8abac630fc3cde
2013-04-15Delete remaind code of an obsolote parameterZolnai Tamás
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 Lillqvist
Change-Id: I2d6c7bae4f202a00f89d22b63370c128cc27c7c4
2013-04-13Revert "KeyId do not contain special chars so ulfex can use it again"Zolnai Tamás
This reverts commit 8287da2fbc09882893642b7a6e3ca555b2b956b3.
2013-04-13Some empty pot directories remainedZolnai Tamás
Change-Id: I5aedd4595c3f676deaedddf80c3a96250015f2ed
2013-04-13KeyId do not contain special chars so ulfex can use it againZolnai Tamás
Change-Id: Icfb581ac2771df39c71ad12f94dba5d51f3c4ec5
2013-04-13l10ntools: export use only en-USZolnai Tamás
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ás
Change-Id: I1d81d4c5716c397b84c0a8959b21beacbbbf1138
2013-04-13Delete obsolote platform from l10ntools mergeZolnai Tamás
Change-Id: I5e5b87355d3d6e369c8fccd7078581758abb3b10