summaryrefslogtreecommitdiff
path: root/l10ntools
AgeCommit message (Collapse)AuthorFilesLines
2016-04-18cppcheck: noExplicitConstructorCaolán McNamara1-1/+1
Change-Id: Iee9d28c9630a144e4da8e46e58f01a4be99aa961
2016-04-14loplugin:passstuffbyref in variousNoel Grandin3-13/+13
Change-Id: I80070c83204e531c2f599f8a56193d6ffe0e5022
2016-04-12Remove empty scriptdlg.hrcStephan Bergmann1-1/+1
Change-Id: I4a4bf1aa1d6afe819c22288474be302fe95740d1
2016-04-12Avoid reserved identifierStephan Bergmann3-4/+4
Change-Id: Id89697b602508446be0c9578b49532de6c22be9f
2016-04-11tdf#94306 replace boost::noncopyable ...Jochen Nitschke1-4/+9
... in modules editeng to oox. Replace with C++11 delete copy-constructur and copy-assignment. Remove boost/noncopyable.hpp includes and one unused boost/checked_delete.hpp include in linguistic. Change-Id: I5a38d8e5ac1b4286bdeb3858d56490a53d13fe80 Reviewed-on: https://gerrit.libreoffice.org/23928 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-04-05loplugin:staticanonymousTor Lillqvist4-9/+9
Change-Id: I4bf258c6db0d4994b4ffa2088c9963921a5e61fa
2016-04-05Bin noise comments and superfluous vertical whitespaceTor Lillqvist1-19/+0
Change-Id: I21620816a80e542fe9771ef22322c4bc42ce50bd
2016-04-05loplugin:staticanonymousTor Lillqvist2-6/+6
Change-Id: If86e2df6d24766c5685466c4c6fc63ecba798000
2016-04-04genlang, update to satisfy clang.jan iversen23-64/+104
changes due a log from clang tinderbox. minor changes to interpret more files Change-Id: I3821aab91dc21e74c870628a4f2265ab61d37cca
2016-04-04cppcheck: catchExceptionByValueCaolán McNamara1-8/+8
Change-Id: Icd52f56b7686a6901793e6c8fce1ffbb3b92af13
2016-04-01tdf#97966 Drop 'static' keywordsWastack4-9/+9
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' keywordsWastack2-6/+6
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 iversen16-32/+45
KID generation is an integrated part of the POT files. Updated lex files for simplification Change-Id: I8ba64e7119edc5267b2acd75c468ed2ff1cf16c2
2016-03-27cppcheck: fix duplicate ExpressionJulien Nabet1-2/+0
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 iversen20-404/+150
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 iversen9-84/+292
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 iversen23-32/+63
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 iversen6-228/+461
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 iversen1-6/+610
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 iversen2-2532/+504
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 iversen21-176/+124
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 iversen3-6/+2356
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 iversen9-19/+237
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 iversen4-7/+8
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 iversen27-179/+196
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 iversen22-201/+190
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 iversen5-68/+27
.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 iversen14-310/+133
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 Manwani2-41/+43
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 McNamara1-4/+13
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 iversen33-2162/+1747
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 iversen31-264/+95
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 iversen27-783/+664
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 McNamara1-4/+13
Change-Id: Ic5098c439ac94d68f881e06378938fab29e8bb3d
2016-03-14genLang updatejan iversen1-531/+0
removed source/gHandler.cxx is now part of gLang.cxx (and defined as a local class) Change-Id: I6fccfb9d9cebe964ba4458cdea5121a44186c1ab
2016-03-14genLang updatejan iversen8-760/+518
convert l10nMem to lo standard removed l10nMem_impl and added it direct to l10nMem Change-Id: I7e226a8dab51fd52ecbc8da36068ebdfb5c1e17f
2016-03-11update genLang (l10ntools)Jan Iversen11-140/+468
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' keywordsWastack1-3/+3
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 Stahl2-3/+3
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 Kumar2-3/+3
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 Tardon1-2/+1
Change-Id: Id35caa8b8ed0c2f7e4d868f5c87a2a0f331cb352
2016-03-07expand src templatesDavid Tardon1-2/+0
Change-Id: I13afaa9d0c7c9b46b3ebaedf299de41bed551e7c
2016-03-07drop removed templates from the listDavid Tardon1-4/+0
Change-Id: I3017a5904569d9f773d3c69cb6aa27f860b8b2a8
2016-03-07expand src templates only used in a single placeDavid Tardon1-2/+1
Change-Id: I0af62539f9dfe636eb242acd766559ffe1097217
2016-03-03various loplugin warningsStephan Bergmann22-53/+53
Change-Id: I9078ba18d8897a89a472fe75385542dac0c6bf78
2016-03-03Removed call of genLang makefileJan Iversen1-1/+0
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 Iversen38-0/+6795
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 Grandin3-12/+4
Change-Id: I688ed796c054002ed05a1a2faa04c6f7a3123ef0
2016-02-27Add SAL_WARN + convert some printf into SAL_WARNJulien Nabet2-5/+4
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 Grandin2-2/+2
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>