summaryrefslogtreecommitdiff
path: root/l10ntools
AgeCommit message (Collapse)Author
2012-11-03Implement new treex executableZolnai Tamás
Which localize and update help tree files instead of update_tree.pl. Use it to update extensions' help. Next step: use it with general help. Change-Id: Ife9696bdd8b973ef3cf30626533e38720408179b
2012-10-29Delete some unneeded checking from export2.cxxZolnai Tamás
Change-Id: Ib41c81629fbc5a8bd709391091c2777d49f9d9c4
2012-10-29Correct some naming in propexZolnai Tamás
Change-Id: Id5b17be8155f13529439dd9a46b42f6ffeed79b1
2012-10-11Use isFuzzy() instead of getFuzzy()Zolnai Tamás
to make more obvious its aim Change-Id: Idc98ae8ce2218c9d387c4f2cb6e4d5603b56aab3
2012-10-11Use MsgCtxt, MsgId and MsgCtxtZolnai Tamás
which are fit better to concept of po. Change-Id: I772e691465351b1492bdb756fc67e3a9de265c25
2012-10-10Move GenPoEntry out of headerZolnai Tamás
GenPoEntry is part of implementation rather than an autonom class thus its place is in cxx file. Because of pointer members we have to override copy constructor and copy operator. In PoHeader class these methods are unneeded so make it non-copyable. The m_bIsinitialized member's meaning widen with that m_aGenPo points an object. So check it not just in getter but in setter methods too. Change-Id: I26ebb885c81d14820076e0d46625c60cc1cf7984
2012-10-10Correct lngmerge not to work with eofZolnai Tamás
Change-Id: Ibf80a31ea2c03ff2882e71a45acb71d9c9a16482
2012-10-10Delete WhiteSpace member of GenPoEntryZolnai Tamás
This member allows us to use more kind of whitespace between po entries but we use one end line everywhere so this variable is unneeded. Change-Id: I4e3c9040ca73580fd01484bb91325a9df04cb4e4
2012-10-10Relocate KeyId to PoEntryZolnai Tamás
KeyId is PoEntry specific attribute rather than part of GenPoEntry. In GenPoEntry it is just part of extracted comment. Four character long helptext/x-comment can lead to incorrect behaviour during file reading. With checking it in sdf-po constructor we can prevent this kind of po comming into existence. Change-Id: I48cc8f34d2c1ca8b86baea25384f5b697f16dd66
2012-10-09Use _t suffix for typedefZolnai Tamás
Change-Id: I8501739e9fb1b184facebc406ed6e20de1f7ab0a
2012-10-09Use static, lcl_ and anonymus namespaceZolnai Tamás
for local functions Change-Id: I0393c9552ca353e80ac61d258a280cbcd53e1cba
2012-10-08Make renewpo to ignore double id in xml/xrmZolnai Tamás
Change-Id: I01329beded3e81040726f525cdb5886b5f3a8c63
2012-10-08Make an end of xrmex id duplicationZolnai Tamás
Use GroupId instead of LocalId because that is the primary id. Thus usage of LocalId becomes unneeded. Change-Id: I2770141fab47c07294ab15322848e8aef0de2cec
2012-10-08remove propex/propmerge Perl scripsAndras Timar
Change-Id: Iab39da2643ba38c4745c29277c10bc39a024ffa3
2012-10-08typosAndras Timar
Change-Id: Idb23b390af270bdd694ecce9ab14f47d25af8f57
2012-10-08Correct wrong memory addressingZolnai Tamás
Some global variables in export.cxx and cfgmerge.cxx pointed to OString databuffer and after these strings are destroyed the pointers refered to invalid address. Use OString instead of const char* Change-Id: I4ea43f4b3772ef3370d79336559d39a67400fe2b
2012-10-08Move propex/propmerge code to C++Zolnai Tamás
Changes: -Use same methods and commandline params as other localizers -Work with one lang during mergeing -Work well with comments -Correct makefiles according to one lang concept Plus delete propex.bat to avoid conflicts Change-Id: Ia9d2886db263c31f29692c3f6da2b8ec6542b564
2012-10-07Make Export::handleArguments method saferZolnai Tamás
-Check wheather input and output file are given -Return with "empty" HandledArgs when input is invalid -Delete plus conditions from helpex and lngex Change-Id: I418b1ecaab5f0c78197845448ab062aa5d3ba4de
2012-10-05Extract argument-handling to one source fileZolnai Tamás
Plus cleanup -Delete unneeded global variables -Delete -e input flag in general -Delete helpex's -x, -y and -lf input flags These are all unused Change-Id: I83db62543a728ed75fa6893c45566f11d1237c69
2012-10-03Add new signature of isNextGroupZolnai Tamás
in header to be consistant with implementation Change-Id: I2b2e68c4805ab575a8ee2d1ca835d79f8fe9cc45
2012-10-03Ulfex ignores comments during extraction tooZolnai Tamás
During string extraction this does not cause real problem but causes unnecessary operations. Plus make isNextGroup not to change sLine_in parameter. Change-Id: I3db6a94ef320c096a7519f7f83dd4080d0588459
2012-10-03One little correctionZolnai Tamás
Change-Id: I675bd8a966b2c1654cd6547fc380a51925578835
2012-10-03Correct ulfex to ignore commentsZolnai Tamás
Change-Id: I50e41a3946ff885783006018f7b6ff2945cc7dfc
2012-10-01Add some new checkingZolnai Tamás
Plus use UpperCamelCase name for some variable. Change-Id: Iaba8b6f47f03b723aa31ef4b45f8b6fd78b7866f
2012-10-01re-base on ALv2 code.Michael Meeks
2012-10-01gbuild: invert handling of standard system libraries:Michael Stahl
Always link in gb_STDLIBS, except when the library explicitly opts out with gb_LinkTarget_disable_standard_system_libs. Change-Id: I489a99114fbfa46d0421a27cf6c7b899dc268a4a
2012-10-01gbuild: replace direct gb_STDLIBS use with ...Michael Stahl
... new gb_LinkTarget_add_standard_system_libs Change-Id: Ib2bc843098db3d8c6822b45a3d21724e67f57d69
2012-10-01gbuild: split uwinapi out of gb_STDLIBSMichael Stahl
Change-Id: I53316e0b9369d806197bccb42cf22d3497af43e7
2012-09-30Use new startsWith() method of OStringZolnai Tamás
Change-Id: If8787b007767aa2701ff1b13883bcf33df12a8fc Reviewed-on: https://gerrit.libreoffice.org/737 Reviewed-by: Andras Timar <atimar@suse.com> Tested-by: Andras Timar <atimar@suse.com>
2012-09-30Corrections for mergeZolnai Tamás
-Correct po type-checking -Use new "lang" variable instead of nonexistent one -Add input parameter to ulfex Change-Id: I1dc17363179d69d40144b6a998eb1bf223bd05e9 Reviewed-on: https://gerrit.libreoffice.org/736 Reviewed-by: Andras Timar <atimar@suse.com> Tested-by: Andras Timar <atimar@suse.com>
2012-09-30Correct escaping tagsZolnai Tamás
which worked wrong with some language like Asturian Change-Id: Icd5939316ac84a3e569a9cbc04e38edda59dead1 Reviewed-on: https://gerrit.libreoffice.org/735 Reviewed-by: Andras Timar <atimar@suse.com> Tested-by: Andras Timar <atimar@suse.com>
2012-09-30Use ascii charachters to seperate qtziZolnai Tamás
Because previous used charachters cause warnings Change-Id: I8715fc2a05df9d84b34945618184c99d54de6579 Reviewed-on: https://gerrit.libreoffice.org/731 Reviewed-by: Andras Timar <atimar@suse.com> Tested-by: Andras Timar <atimar@suse.com>
2012-09-30Make error message clearer in localizeZolnai Tamás
which is written out when one of executables writes out invalid sdf line Change-Id: I167b31bf0f550222accdda8ee5a03d8e4a742d63 Reviewed-on: https://gerrit.libreoffice.org/730 Reviewed-by: Andras Timar <atimar@suse.com> Tested-by: Andras Timar <atimar@suse.com>
2012-09-30Move setting of po msgid to constructorZolnai Tamás
because this is part of initialization Change-Id: If6ebe46cea93e378c9060f2c3ced09ab44a3d82a Reviewed-on: https://gerrit.libreoffice.org/729 Reviewed-by: Andras Timar <atimar@suse.com> Tested-by: Andras Timar <atimar@suse.com>
2012-09-30Make Po classes robusterZolnai Tamás
-Make PoOfstream\PoIfstream classes for checked po input\output -Make copyability obvious -Handle runtime errors with exceptions -Use assertions to define exceptations for programmers Plus some correction -Use simplier indentation -In renewpo.cxx, define sdf file as a tempfile instead of make it in current location -Use constructor to renew poheader -Use const where needed Change-Id: Ic11ce3b9eee9a9fa9fbc4ccda154623160ad9d8a Reviewed-on: https://gerrit.libreoffice.org/728 Reviewed-by: Andras Timar <atimar@suse.com> Tested-by: Andras Timar <atimar@suse.com>
2012-09-30Not use initializer-list for vectorZolnai Tamás
Change-Id: I6ed72b28be3ad00224cbf7308b4f27a6fb25e24e Reviewed-on: https://gerrit.libreoffice.org/726 Reviewed-by: Andras Timar <atimar@suse.com> Tested-by: Andras Timar <atimar@suse.com>
2012-09-30Make l10ntools works with i18nregexpZolnai Tamás
Change-Id: I80d3dbc19856d518ed8a94dba227372f5f74ec47 Reviewed-on: https://gerrit.libreoffice.org/725 Reviewed-by: Andras Timar <atimar@suse.com> Tested-by: Andras Timar <atimar@suse.com>
2012-09-28Merge branch 'master' into feature/killsdfAndras Timar
Conflicts: l10ntools/Module_l10ntools.mk l10ntools/source/merge.cxx solenv/gbuild/AllLangResTarget.mk solenv/gbuild/ExtensionTarget.mk solenv/gbuild/InstallModuleTarget.mk solenv/gbuild/TargetLocations.mk
2012-09-28Revert "fdo#52246 let helpex use gsicheck's tag checker"Andras Timar
This reverts commit e3b927787f3643f9e584cc80c974d5f907a94858. There will be a better solution in feature/killsdf soon. Conflicts: l10ntools/inc/gsicheck.hxx l10ntools/source/gsicheck.cxx l10ntools/source/gsimain.cxx Change-Id: I5d12f4ee069d7024345d78c45fb1587cb006c922
2012-09-28explicitly link to libxsltCaolán McNamara
Change-Id: I8cfcd82bd6198bcf70d6ec082f82aaac34cc50c2
2012-09-28have to register exslt handlers for string::tokenizeCaolán McNamara
Change-Id: If761ebd095ef0ac14c6d659411eb63157eb8dd27
2012-09-28we need to escape xml on exportCaolán McNamara
Change-Id: I770e4e6b3b77892c3fe1ba1e55f3e6d5834dc6b7
2012-09-28merge tool not filtering on requested input file nameCaolán McNamara
isFileEmpty = !sFileNormalized.isEmpty doesn't make sense to me from commit 8b8162e0 I imagine it should be isFileEmpty = sFileNormalized.isEmpty which gives me the expected result of filtering out the files I don't care about Change-Id: Ic0967ac382a1fb912e7ad98d2fc5dcb626d4ff87
2012-09-28merge .ui translations back to runtime filesCaolán McNamara
Change-Id: Ia01ef21441220293343370df7d865c7eb889bc84
2012-09-28add a plausible .ui to .sdf extraction toolCaolán McNamara
Change-Id: Icd45e901ea9dd664fcbc0db0c71f555c4cc24a34
2012-09-26use utf-8 instead of legacy code pages in all msi tables (related: fdo#39595)Andras Timar
Change-Id: Ib2dc00c024762800fdb74ffb376d92a8583d44ad
2012-09-24Use PoEntry and PoHeader more like an interfaceZolnai Tamás
Delete all members except member with type GenPoEntry and use getter methods to define them. Plus correct renewpo. Change-Id: I97665b406467053fce8b4864b47456762887e715 Reviewed-on: https://gerrit.libreoffice.org/681 Reviewed-by: Andras Timar <atimar@suse.com> Tested-by: Andras Timar <atimar@suse.com>
2012-09-24typo: COMMEND->COMMENTAndras Timar
Change-Id: I1bac574d44b1fbbdd2cde41ba1af033e952d811a
2012-09-23set encoding of Hungarian MSI tables to UTF-8Andras Timar
needed for the word "Bokma°l" Change-Id: Iea342161edbdf4983906d5859d279de3899a3839
2012-09-21remove inclusion of deprecated headerAndras Timar
Change-Id: If30210587f0562d7e5f24fb3acbdd7ef8b13a00f