summaryrefslogtreecommitdiff
path: root/l10ntools
AgeCommit message (Collapse)Author
2016-05-10tdf#99589 tolower / toupper - dangerous to Turks ...Krishna Keshav
replaced tolower with to AsciiLowerCase() in lingucomponent/source/languageguessing/altstrfunc.cxx l10ntools/source/gL10nMem.cxx Change-Id: I1340da18b263a4a921e2e8d96c0f133fe300086e Reviewed-on: https://gerrit.libreoffice.org/24682 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2016-05-10Add SAL_FALLTHROUGH, where apparently appropriateStephan Bergmann
Change-Id: Ib0cb61ce63b065f6e2845ef7e8da0827556110ba
2016-05-05genlang .src lex support for sfx itemsjan Iversen
Change-Id: I011daee882fd1831bf5dfa7bc69290af4727de95
2016-05-05genlang, made gDiff.sh intelligentjan Iversen
Removed output from identical files Change-Id: Id9619b7cd005aa8087fcccf4e679ee13e14955eb
2016-05-05genlang helpcontent2 is now identicaljan Iversen
Helpcontent2 generated pot files at different locations than as stored in pootle (strange). Change-Id: I647d6acaf775d4a8c304855c90cfafd5e9a7d392
2016-05-04genLang .tree files got "help_section"jan Iversen
Added text type to .tree files fixed line wrap problem when saving to .pot Change-Id: I551521bb81e21724edf8f3bfa8aba1516ca7e879
2016-05-04genlang keygen with newline changedjan Iversen
when generating the keyid for text, all newlines \n must be converted to 0x0A Change-Id: I626776e94a6573d044522990a7f9ccc3d52b825b
2016-05-04genlang correct xcu filterjan Iversen
modified algorithm for adding "." Change-Id: Ibaa59cf5faa7bf211ead222dbb2e5a391929d679
2016-05-03genlang .ulf uses LngText as id.jan Iversen
Added fixed subid for .ulf files Change-Id: I9e882e3ab40e334c7d504d583b8e515d9dc36d6b
2016-05-03genlang .xcu dot handling and level func for .srcjan Iversen
.xcu stores a '.' between keys and keys with no name count .src has commands without name (identifier used instead) Change-Id: I135c5f5594c429ebc1b278dbb7d5709b7b8ca119
2016-05-03genlang .src single line macrojan Iversen
Macros do not always end with \\ only those for translation added #define exception to the lex layer. Change-Id: I656bb8776d970288c243302cdc74a0afd975975e
2016-05-02genlang macro support for .src filesjan Iversen
Added macro detection in .src filter Updated gDiff and gRun scripts with enhancements Change-Id: Idddd3ef72e8ccee65d03fe5080e27699ceebb079
2016-05-02vm174 .xcu updatejan Iversen
One project uses "." as prefix, but LO uses ".." Change-Id: I18eaf66c54176b0c3268d9fb94a002e4b68722fe
2016-05-02genLang .src conversion, first version.jan Iversen
LO uses the .src quite differently, so a new implementation was made. The unused old functions are hanging in a #if 0, and will be removed later. Change-Id: Ic466a1b97f9f65c9f658612bd2aa325396e929c3
2016-04-30genlang, update to compile with VC 2015, and script cleanupjan Iversen
VC2015, detected a problem that VC2013 did not. Change-Id: I4378ad5b2c831900460839aebe0a18bbc4bc062a
2016-04-26update loplugin stylepolice to check local pointers varsNoel Grandin
are actually pointer vars. Also convert from regex to normal code, so we can enable this plugin all the time. Change-Id: Ie36a25ecba61c18f99c77c77646d6459a443cbd1 Reviewed-on: https://gerrit.libreoffice.org/24391 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-04-20loplugin:salbool: Automatic rewrite of sal_False/TrueStephan Bergmann
Change-Id: I689887a14e6797a83c31069d3fa7a3b20d33a681
2016-04-18cppcheck: unused variablesCaolán McNamara
Change-Id: Ief3d2cd7af2047e49ea026d8a94d7532769a820c
2016-04-18cppcheck: catchExceptionByValueCaolán McNamara
Change-Id: Id8e2fc67a1de4f608188d070f0f536576ad0e69a
2016-04-18cppcheck: noExplicitConstructorCaolán McNamara
Change-Id: Iee9d28c9630a144e4da8e46e58f01a4be99aa961
2016-04-14loplugin:passstuffbyref in variousNoel Grandin
Change-Id: I80070c83204e531c2f599f8a56193d6ffe0e5022
2016-04-12Remove empty scriptdlg.hrcStephan Bergmann
Change-Id: I4a4bf1aa1d6afe819c22288474be302fe95740d1
2016-04-12Avoid reserved identifierStephan Bergmann
Change-Id: Id89697b602508446be0c9578b49532de6c22be9f
2016-04-11tdf#94306 replace boost::noncopyable ...Jochen Nitschke
... 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 Lillqvist
Change-Id: I4bf258c6db0d4994b4ffa2088c9963921a5e61fa
2016-04-05Bin noise comments and superfluous vertical whitespaceTor Lillqvist
Change-Id: I21620816a80e542fe9771ef22322c4bc42ce50bd
2016-04-05loplugin:staticanonymousTor Lillqvist
Change-Id: If86e2df6d24766c5685466c4c6fc63ecba798000
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