summaryrefslogtreecommitdiff
path: root/l10ntools
AgeCommit message (Collapse)Author
2016-03-22genlang, removed std::jan iversen
Added "using namespace std;" to the cxx/l files thereby being able to remove std:: from all files Change-Id: I92b411870deb7a97b6fd1f7e33674a1e072c0cc1
2016-03-22genlang, generating .pot files for .xrm filesjan iversen
Solved new pot directory structure only tested .xrm files, but should be able to extract all .pot files. The LO tools generated the KID as part of the msg, this is not implemented. msgctxt is used as comments, this requires a slight change of the lex programs. Change-Id: Id9aadbd419fb44b73b633410f7dddd90d310ee8d
2016-03-22genlang, moved save function to convPO from convGen.jan iversen
.pot files can only be generated in convPO, therefore it is logical to have the functions at this level. Added a fix due to LO standard for saving .pot files (this fix might need to be updated, when moving on from .xrm) Ready to save .xrm input as .pot, and compare results. Change-Id: I1849e896258942f7895e5f6bd3b834391e7a7e95
2016-03-22update genlang, activated lex calls.jan iversen
All lex files no longer have a special namespace, instead yylex --> <foo>lex and therefore unique for the linker. Also corrected command line argument handler. Change-Id: Idfdec97bd43f3be8d2b217b9aac1bd74b202dc93
2016-03-17tdf#84938 Replaced #defined constants with enum classChirag Manwani
Change-Id: I2078f15f03fbadab8a0253763d779c3eb7cdf448 Reviewed-on: https://gerrit.libreoffice.org/23302 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-03-16Resolves: tdf#98473 replace || with ‖ to avoid illegal gtk3 action namesCaolán McNamara
again, was reverted by commit 48c2e04bdb60429823cb8b12a14d954af544a2bf Date: Mon Mar 14 22:10:23 2016 +0100 which I'm assuming was a merge error Change-Id: Iad3c2149438822d1e8b1406e35372a3e2b50bfa3
2016-03-15genLang updatejan iversen
Decoration removed Indent etc. updated to LO standard License in generate pot files changed to LO standard. this commit is a pure text edit, NO functional changes. Change-Id: Ie0a26d3cff470dd5f91241ca6b962b17851c9d5b
2016-03-14genLang updatejan iversen
Last singleton gone, structure is now handler (local in gLang.cxx) holds a variable of l10nMem a temporary convert_gen variable (to analyze file) l10nMem contains hash list of all PO information convert_xxx is inherited from convert_gen and instanciated with a static function convert_gen::createInstance the lex functions (in c) uses a "this" pointer to find back to the class. This needs to be done better. l10nMem contains a link to convert_PO, to save files, this needs to be split. Change-Id: I3ad31aac27aac739845062f8da61c8c1c3bf9c31
2016-03-14genLang updatejan iversen
removed gL10nMemDB (combined with gL10nMemDB) to avoid CLANG problem. removed (temporary) gL10nMem dependency on convPO (circular dep). Change-Id: I17646be2ccc0feaaa8850a9b753f86c8c62e9f24
2016-03-14Resolves: tdf#98473 replace || with ‖ to avoid illegal gtk3 action namesCaolán McNamara
Change-Id: Ic5098c439ac94d68f881e06378938fab29e8bb3d
2016-03-14genLang updatejan iversen
removed source/gHandler.cxx is now part of gLang.cxx (and defined as a local class) Change-Id: I6fccfb9d9cebe964ba4458cdea5121a44186c1ab
2016-03-14genLang updatejan iversen
convert l10nMem to lo standard removed l10nMem_impl and added it direct to l10nMem Change-Id: I7e226a8dab51fd52ecbc8da36068ebdfb5c1e17f
2016-03-11update genLang (l10ntools)Jan Iversen
Upgrade gLang to LO standard Compilation of genLang module is disabled for now activate manually by adding to Module_l10ntools.mk Change-Id: Ib82cae6a013d10d158ec5faa81ace512c0096a39
2016-03-11tdf#97966: Remove 'static' keywordsWastack
Change-Id: Iced527f48afa828cc9acf5b6461674a2706cbcd7 Reviewed-on: https://gerrit.libreoffice.org/23135 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
2016-03-08Revert "tdf#91794 remove OSL_DEBUG_LEVEL > 1 conditionals"Michael Stahl
In a build --with-lang=2 languages this generates millions of lines of output, it prints for > 2 minutes straight. Our build system is not a terminal benchmark, and i have no idea what the problem with "OSL_DEBUG_LEVEL > 1" conditionals is anyway, so revert it for now. This reverts commit 3f80f144cff8d8ddd1d33e7b8ca6dbe2ad8d8491.
2016-03-08tdf#91794 remove OSL_DEBUG_LEVEL > 1 conditionalsRohan Kumar
I removed OSL_DEBUG_LEVEL > 1 conditionals, replaced them with OSL_DEBUG_LEVEL > 0 as suggested in updated easy hack Change-Id: I4af8cd2a9bf9980fc98967d499d1fc30642251f4 Reviewed-on: https://gerrit.libreoffice.org/23010 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: jan iversen <jani@documentfoundation.org>
2016-03-07expand src templatesDavid Tardon
Change-Id: Id35caa8b8ed0c2f7e4d868f5c87a2a0f331cb352
2016-03-07expand src templatesDavid Tardon
Change-Id: I13afaa9d0c7c9b46b3ebaedf299de41bed551e7c
2016-03-07drop removed templates from the listDavid Tardon
Change-Id: I3017a5904569d9f773d3c69cb6aa27f860b8b2a8
2016-03-07expand src templates only used in a single placeDavid Tardon
Change-Id: I0af62539f9dfe636eb242acd766559ffe1097217
2016-03-03various loplugin warningsStephan Bergmann
Change-Id: I9078ba18d8897a89a472fe75385542dac0c6bf78
2016-03-03Removed call of genLang makefileJan Iversen
genLang produces errors on the clang tinderbox, due to the way it uses a singleton. Removed genLang from Module in order to satisfy tinderbox, while fixing the problem. Change-Id: I03a6175de8340f1c0ad5953b32659106e10d75f5
2016-03-03genLang project (awareness)Jan Iversen
the genLang project aims at replacing all l10ntools with more modern versions, based on C++ and lex. The current extract works basically as a standalone "find" over the source tree. genLang can use that, but also a more efficient way, by having translation-worthy files declared in the makefile stubs. genLang itself is a C++ framework, where each file type is defined as a class, making it easy to add new file types. genLang can easily be adopted to transform the help files into e.g. mediawiki format, and later merge a url back into the code. The project was first developed (solely by the author) in a non published branch of OO. This branch was never merged but deleted and therefore never published. The files have been adapted to the LO build system and setup. The primary commit is just to raise awareness, that this is being developed. The following commit, will update the source code to LO standard. Before replacing the old modules a dedicated review will be asked for. Change-Id: I4504992474333c476c179903f822bfaf1441cca9 Reviewed-on: https://gerrit.libreoffice.org/22819 Reviewed-by: jan iversen <jani@documentfoundation.org> Tested-by: jan iversen <jani@documentfoundation.org>
2016-03-02loplugin:unuseddefaultparam in l10ntoolsNoel Grandin
Change-Id: I688ed796c054002ed05a1a2faa04c6f7a3123ef0
2016-02-27Add SAL_WARN + convert some printf into SAL_WARNJulien Nabet
Change-Id: I3760e50796605ce50ef2e91951fc839b84669b89 Reviewed-on: https://gerrit.libreoffice.org/22733 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2016-02-17use consistent #define checks for the Windows platformNoel Grandin
stage 2 of replacing usage of various checks for the windows platform with the compiler-defined '_WIN32' macro In this stage we focus on replacing usage of the WIN macro Change-Id: Ie8a4a63198a6de96bd158ecd707dadafb9c8ea84 Reviewed-on: https://gerrit.libreoffice.org/22393 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-02-09Remove excess newlinesChris Sherlock
A ridiculously fast way of doing this is: for i in $(pcregrep -l -M -r --include='.*[hc]xx$' \ --exclude-dir=workdir --exclude-dir=instdir '^ {3,}' .) do perl -0777 -i -pe 's/^ {3,}/ /gm' $i done Change-Id: Iebb93eccbee9e4fc5c4380474ba595858a27ac2c Reviewed-on: https://gerrit.libreoffice.org/22224 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-18loplugin: unused return valuesNoel Grandin
Change-Id: I9c61a46c57894bc63a57740206c0bcb4a16553af Reviewed-on: https://gerrit.libreoffice.org/21571 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-01-18loplugin:unusedfieldsNoel Grandin
Change-Id: I321b594f1190cdd997b4769161e1c02d31f46213 Reviewed-on: https://gerrit.libreoffice.org/21566 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-01-16Fix set but unused variable warningPeter Foley
Change-Id: I23fb9abf2b9462c939d4d9caf699e48ffded3bb4 Reviewed-on: https://gerrit.libreoffice.org/21505 Reviewed-by: jan iversen <jani@documentfoundation.org> Tested-by: jan iversen <jani@documentfoundation.org>
2016-01-15loplugin:unusedmethods unused return value in l10ntools,linguisticNoel Grandin
Change-Id: I11571c25e527787a2054bc8106a27c44b8a96116
2016-01-10Fix typosAndrea Gelmini
Change-Id: I9a5940027423ff0791fa7da0b79b617412ce6b86 Reviewed-on: https://gerrit.libreoffice.org/21209 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
2015-12-27Remove some includes (stdio/stdlib)Julien Nabet
Change-Id: I4aa649961efac521e72c363efb5d0a3192125da5 Reviewed-on: https://gerrit.libreoffice.org/20966 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr>
2015-12-20Add snide commentTor Lillqvist
Change-Id: Ie8c0d47a7a82458ec1ed0695cea13c136e2fab90
2015-11-25loplugin:unusedfields variousNoel Grandin
Change-Id: I59d9f7f73677358b4ae57efda965d43718bdf0d5
2015-11-14coverity#1339308 Uncaught exceptionCaolán McNamara
Change-Id: Id63bbdd11af66de6be8a3e9dfca1c7efbe74b08a
2015-11-11new loplugin: memoryvarNoel Grandin
detect when we can convert a new/delete sequence on a local variable to use std::unique_ptr Change-Id: Iecae4e4197eccdfacfce2eed39aa4a69e4a660bc Reviewed-on: https://gerrit.libreoffice.org/19884 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann
Change-Id: I87dbff06345f24064b87c375e5381cb27118e614
2015-11-06coverity#1338269 Uncaught exceptionCaolán McNamara
Change-Id: I32bfeb0ded37da05eecc97b92d9f724d59123fce
2015-11-06coverity#1338268 Uncaught exceptionCaolán McNamara
Change-Id: Id954d556c2b65772025b8aaabdbfa9ed4ae7a9b7
2015-11-06coverity#1338261 Uncaught exceptionCaolán McNamara
Change-Id: I3e818ed5ccf395f0fbaf82f8e62870b847fc41c9
2015-11-06coverity#1338256 Uncaught exceptionCaolán McNamara
Change-Id: Iadfb2e59fd40aa178123dbfc20be093cc8f128d2
2015-10-21start next find at previous endpos, not one after previous startposEike Rathke
The portion from startpos to endpos was handled, no need to recheck things in between and find nothing; or worse, find something and duplicate a part of a portion.. Change-Id: I37b58d2433514ffa8f31a0fa06f84c6a8aaee947
2015-10-21properly check for ICU status so known tags get actually recognizedEike Rathke
nIcuErr after the second RegexMatcher::find() call was U_STRING_NOT_TERMINATED_WARNING hence a check for U_ZERO_ERROR failed and a content string of "foo <emph>bar</emph> baz" became "foo <emph>bar&lt;/emph&gt; baz" which later provoked a missing ending tag error. This should had used U_SUCCESS(nIcuErr) instead and only worked by chance. Apparently the warning wasn't issued in earlier ICU versions and only introduced with 55 or 56. Change-Id: I36482c928544fc6e8c0403997af33084a47d4bea
2015-10-12Replace "SAL_OVERRIDE" with "override" in LIBO_INTERNAL_ONLY codeStephan Bergmann
Change-Id: I2ea407acd763ef2d7dae2d3b8f32525523ac8274
2015-10-12cppcheck:variableScopeNoel Grandin
Change-Id: I037feb335499629300309851dcda3bb661f03d4f Reviewed-on: https://gerrit.libreoffice.org/19316 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-01loplugin:unusedmethodsNoel Grandin
- improvements to the plugin to find more method calls - improvements to python script to remove more false+ - fix the FORCE_COMPILE_ALL build flag to include code in the $WORKDIR Change-Id: I4d6015dcb9b9d60c26f0bcee8abad807177a7836 Reviewed-on: https://gerrit.libreoffice.org/19064 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-09-30Fix typosAndrea Gelmini
Change-Id: I44bdb63bef76e9686e995661a24a3bef7cd50ab7 Reviewed-on: https://gerrit.libreoffice.org/18959 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2015-09-29remove unused #include <sal/alloca.h>Michael Stahl
Change-Id: I490841fd2c526e4ca6d6c94cc7b9dba318c932a1
2015-09-17boost->stdCaolán McNamara
Change-Id: Ifde84627578283bd057d7393eb7e5578ef5c029a