summaryrefslogtreecommitdiff
path: root/l10ntools
AgeCommit message (Collapse)Author
2016-04-04genlang, update to satisfy clang.jan iversen
changes due a log from clang tinderbox. minor changes to interpret more files Change-Id: I3821aab91dc21e74c870628a4f2265ab61d37cca
2016-04-04cppcheck: catchExceptionByValueCaolán McNamara
Change-Id: Icd52f56b7686a6901793e6c8fce1ffbb3b92af13
2016-04-01tdf#97966 Drop 'static' keywordsWastack
Including no keywords from extern "C" blocks Change-Id: Id9dd5a53d6ea5134ebb473bd0463f8f42965a211 Reviewed-on: https://gerrit.libreoffice.org/23674 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2016-03-30tdf#97966 Drop 'static' keywordsWastack
Change-Id: I2e495243b75fc239dafbf63c7644115f0a923f4a Reviewed-on: https://gerrit.libreoffice.org/23607 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: David Tardon <dtardon@redhat.com>
2016-03-27genlang, added genKey functionjan iversen
KID generation is an integrated part of the POT files. Updated lex files for simplification Change-Id: I8ba64e7119edc5267b2acd75c468ed2ff1cf16c2
2016-03-27cppcheck: fix duplicate ExpressionJulien Nabet
Since https://cgit.freedesktop.org/cgit/?url=libreoffice/core/log/&qt=range&q=872755ac336eb9ad33c6c98dd73deea2206acf71 Change-Id: Iee49087caf77c6cce4d52aac562c5bd3620b659f Reviewed-on: https://gerrit.libreoffice.org/23551 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2016-03-26genlang, clenaup top of Lex filesjan iversen
Duplicate functions in lex files removed Top part simplified and made identical. Change-Id: I7288bfdbeba9d1ec96b5d2bc7b21dd65337cd8d7
2016-03-24genlang, gRun.sh produces the same files as old toolsjan iversen
The process of getting gRun.sh to produce the same files (same content is later), have identified a number of strange things: - many files with x-comment are not in en-US, but DE - some files have translations present in DE - many src/hrc files are not considered for translation Change-Id: If4fb9928353c181c3123421c5dd357304a8b4f0c
2016-03-23genlang, removed clang problemsjan iversen
The clang plugin does not not like for (<foo>;<foo>;<foo>) ; (most compilers do not complain, when using the ' ') Also a virtual destructor need "override" in the implementing class. Change-Id: Ib99702f11dbd24595935594ee97c136c8e604aff
2016-03-23genlang, added prel. support for ui files.jan iversen
the gRun.sh script tries to manually build identical .pot files as the existing tools It was noticed that now .ui is converted but .hrc and many .src files are not. Change-Id: Ia15d415c4027e34668dab752b1fbc7d99663cfe8
2016-03-22genlang, completed gRun.shjan iversen
gRun.sh is not completed to run commands on the files interesting for translation. gRun.sh will be modified to produce the same .pot files as the current tools. Change-Id: I936d5ea7b03adbb043ebbfd7eda9d047f0939c2f
2016-03-22genlang added --base to shorten command linejan iversen
Especially helpcontent2 has many files, which explodes the command line. --base sets the relative base directory for files, it is added to <files> when reading --files. Change-Id: I8c77ddfa4037d56e87541fac65f13bd307110731
2016-03-22genlang, PO files contain both comment and resource extrajan iversen
the .ulf ==> .pot keep the x-comment, therefore the memory db is expanded with sResource and sComment. The memory db API is changed to add the 2 new fields, which causes a change in all callers. Change-Id: I38527c8d2db9d56ecf9ae42550ed5420371b658e
2016-03-22genlang .xhp ==> .pot identicaljan iversen
Checked .xhp conversion. The current tools have a problem with windows get an error "cannot convert path to URL", seems it was not tested on windows. Also "make translations" does not cover submodules. Change-Id: I36a0a3643eb40ff9c02735acdf79498d16691069
2016-03-22genlang .tree ==> .pot identical.jan iversen
the conversion .tree to .pot works Added script gRun.sh with local call of genlang until integrated gList.sh find all files to be translated. For now, files that should be translated but are not, are ignored this is due to 100% compatibility with current executables. Research shows that .tree and .xhp are handled by the same old executable to the .pot files are not complete. Change-Id: I1634207b72075e74438ebfbc22a7753cdddd20ed
2016-03-22genlang, .xrm ==> .pot works identicaljan iversen
The conversion from .xrm to .pot is now identical Missings are adding the POT_CREATE_DATE timestamp and generate the KID. Change-Id: I421f0451b896c447767a32945ab82a8adc84fc7a
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