summaryrefslogtreecommitdiff
path: root/l10ntools
AgeCommit message (Collapse)Author
2016-05-26loplugin:unusedmethodsNoel Grandin
Change-Id: Ib36bc0e87d00abb638cbfec511cd13b6179eabda Reviewed-on: https://gerrit.libreoffice.org/25431 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-05-25l10ntools: replace boost::crc with rtl_crc32Michael Stahl
Tested with output of "make translations", it apparently computes the same CRC function, despite the documentation specifying different polynomials, but maybe that is just different notations... Change-Id: Ia28a881f5cdf54326fe5051527acd445e7a5771c
2016-05-22Convert LIST to scoped enumNoel Grandin
Change-Id: Ia8a1dbf0277c553e8bd7b3a1da5b9f865f076608 Reviewed-on: https://gerrit.libreoffice.org/25195 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-05-20Convert STATE to scoped enumNoel Grandin
Change-Id: Id2bb63be495a50376dbaccf6eeb27a900fc2ac7b
2016-05-20Convert TEXT_STATE to scoped enumNoel Grandin
Change-Id: I86822b99c81f1e6f2cd6a117f15fdc3d20d18495
2016-05-20Convert ID_LEVEL to scoped enumNoel Grandin
Change-Id: Icdb5f39329ddb94fc1a51e59c8ac99d2684f9cbc Reviewed-on: https://gerrit.libreoffice.org/25164 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-05-19loplugin:unusedmethods in l10ntools to lotuswordproNoel Grandin
Change-Id: Ibda82734821f3faa9388f7508e6a3e39e5b5007d Reviewed-on: https://gerrit.libreoffice.org/25106 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
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