summaryrefslogtreecommitdiff
path: root/l10ntools/source/localize.cxx
AgeCommit message (Collapse)Author
2013-04-13Some empty pot directories remainedZolnai Tamás
Change-Id: I5aedd4595c3f676deaedddf80c3a96250015f2ed
2013-04-13l10ntools: export use only en-USZolnai Tamás
So no need to ad it in a commandline parameter. No need to use a vector to store languages. Change-Id: I1f7d3bd131b5a9ff23d403cee4ac6804ae8e0a0b
2013-03-25Remove unneeded project and projectroot parametersZolnai Tamás
Plus avoid use of Export::sLanguages member outside of the class. Change-Id: I33702816fdb4980d690cfe8fcd8cc3fbd0df1dd8
2013-03-22Check return value of system()Zolnai Tamás
Change-Id: I1b9e31b8c64ed8bf7eb073f036a7fdda39a15392
2013-03-19Localize files of a directory in lexical orderZolnai Tamás
To avoid big diffs, stem from platform dependent order. Change-Id: I848a14de2c4e7af2f3a2d9a0fdb005c289cfead2
2013-03-16Get rid of generating temporary sdf fileZolnai Tamás
Working: 1. Localize add header to po files. 2. Executables append po entries to po files. 3. Localize delete entryless po files and empty directories Plus a bunch of clean up. Change-Id: I58e300eaee4cee948203cc9d3e642ca9462d0d26
2013-03-09not stop localize, just ignore invalid po entriesZolnai Tamás
Change-Id: I8bd987ec0f2bd4a886a14d38d7b7ba354abd2f06
2013-03-04This condition is uneeded and cause localize not to workZolnai Tamás
See also: 73b7792f716064db0815ad0f86846093edcd2f78 Change-Id: I9ea5e77cf84ce9ac6b247b97e579373831ab9ab9
2013-02-28excludeDirectory became obsolete, because dmake was killedAndras Timar
Change-Id: Id9f3d2435530ff9c797eca5e86aa568f921017b1
2013-02-14Get Labels.xcu out of configuration data.Matúš Kukan
Modify the file format, install separately into share/labels, and parse it using xmlreader when needed. Saves time on startup and reduces pointless configurarion size.
2013-02-06remove obsolete hidother.src filesAndras Timar
Change-Id: Ieb30afd81d16d184e0276ce7699b848f26a00013
2012-11-30better error reporting in localize binaryAndras Timar
Change-Id: Ic98a786fffd9d92b51669e2beaed434db1aca519
2012-11-30there is nothing to localize in 'scripting' moduleAndras Timar
Change-Id: I093e13218dce5d7d73841b34af15f001122e0259
2012-11-30do not extract strings from da/hu dictionary help treeAndras Timar
Change-Id: Ia5cce381b935daee1251ae6647f2bb59e281054e
2012-11-27add new tool "stringex" to extract/merge strings from/to android UIAndras Timar
Change-Id: I8210957cedf911418044da340642cf97396f3e14
2012-11-26Fix bug in localize, created by recently changesZolnai Tamás
Change-Id: I329c72fdca6ade502d4fdedaccc410dd4b7ea874
2012-11-26Varnisch localize.cxxZolnai Tamás
Use getenv method instead of osl_getEnvironment. Delete rtl and std namespace identifier Use OString every possible place to decrease OString<->OUString conversions. Add some block to minimize scope of local variables and add comments to make clear each block task. Move propex "en_US exist in file name" check to localize to save some extra process time. Change-Id: I9a0455f7524f71e34efe4d32998d2d21601f14e1
2012-11-21Fix build for old gccThorsten Behrens
Workaround extra temporaries created by gcc-4.0 on mac - since here PoHeader has private copy ctor. Change-Id: I6faf99f78c11452f6adf6f1f18e1ceda9e23e7a2
2012-11-20Merge branch 'feature/killsdf'Andras Timar
Conflicts: desktop/prj/build.lst helpcontent2 l10ntools/Executable_gsicheck.mk l10ntools/Executable_uiex.mk regexp/inc/regexp/reclass.hxx solenv/gbuild/AllLangResTarget.mk Change-Id: I398f0cd9e7daefa8d2e04fd977d5bc2e9708169b
2012-11-20"tubes" missing from l10n project listStephan Bergmann
Change-Id: Ieb04a22f83e698521aa90fe16fce4f66c4635034
2012-11-17Handle dictionaries in the same way in localizeZolnai Tamás
By now, not needed to handle dictionaries in other way, because its root moves up directly to core. Change-Id: I90d6a67c90b00eea290f17e277fb13c0a6b0b5cd
2012-11-11Merge branch 'master' into feature/killsdfAndras Timar
Conflicts: Repository.mk RepositoryFixes.mk connectivity/prj/build.lst extensions/prj/build.lst filter/prj/build.lst fpicker/prj/build.lst l10ntools/StaticLibrary_transex.mk saxon/build.xml shell/prj/build.lst solenv/gbuild/AllLangResTarget.mk solenv/gbuild/Configuration.mk solenv/gbuild/UI.mk ucb/source/ucp/webdav/webdavcontent.cxx
2012-11-08Localize.cxx add correct header to poZolnai Tamás
Belong to dictionaries modul Change-Id: Ifd8303fd294de2369383cc2ce7ebdd1487c90463
2012-11-07integrate librelogo to the buildAndras Timar
Change-Id: I4cd29f6a893d72a49233bb53d19701d0bdd0e078
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-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-01re-base on ALv2 code.Michael Meeks
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-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-29re-base on ALv2 code.Michael Meeks
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-28add a plausible .ui to .sdf extraction toolCaolán McNamara
Change-Id: Icd45e901ea9dd664fcbc0db0c71f555c4cc24a34
2012-09-21remove inclusion of deprecated headerAndras Timar
Change-Id: If30210587f0562d7e5f24fb3acbdd7ef8b13a00f
2012-09-18deprecate oustringostreaminserter.hxxNorbert Thiebaud
the intent of this header has canged over time. now it is already systematically included with ustring.hxx and the operator overload it provide fit nicely there... Just to be safe, since that include as been added to the api during the 3.5 timeframe and therefore is already in 'production' the header remain and simply attempt to include ustring.hxx but a warning is issued indicating that this header should not be used anymore... in a couple of major release we will thenr emove it completely All internal users of that header are converted. Change-Id: I8934c55f089e29d78c0f5649b7c87b2ecf024bad Reviewed-on: https://gerrit.libreoffice.org/634 Tested-by: Norbert Thiebaud <nthiebaud@gmail.com> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2012-08-29Some cleanupZolnai Tamás
Use normal integer types when it's unecessary to use sal_int types. Delete some hack from code. Change-Id: I93f0b1f260578d3aa9609b7e9d8a79053693971b Reviewed-on: https://gerrit.libreoffice.org/510 Reviewed-by: Andras Timar <atimar@suse.com> Tested-by: Andras Timar <atimar@suse.com>
2012-08-29Make renew working wellZolnai Tamás
Change po2lo output: write out the untranslated sdf line too, write out translated sdf line only if there is translation to the komponent, write out fuzzy entries and indicate which entries are fuzzy. Change GenPoEntry to write out fuzzy flag Change renewpo to write out all type of entries not just text and to remove id duplicates which are made by xrmex Change-Id: Idc9b6062638d1d5fcbbae75e0396996b63e9a7a0 Reviewed-on: https://gerrit.libreoffice.org/508 Reviewed-by: Andras Timar <atimar@suse.com> Tested-by: Andras Timar <atimar@suse.com>
2012-08-29Some improvement in po classesZolnai Tamás
Raise general po functionalities from PoEntry to the GenPoEntry class. Thus PoEntry contains only the specific things with which LibreOffice localization tool works. Improve escaping text. Change-Id: I98894e7c218d37c226f48b30a1f8b59a5ff1a0bf Reviewed-on: https://gerrit.libreoffice.org/507 Reviewed-by: Andras Timar <atimar@suse.com> Tested-by: Andras Timar <atimar@suse.com>
2012-08-29Renew localization and kill sdf 1.stepZolnai Tamás
Extract strings from source directly to pot files Implement PoHeader and PoEntry classes Renew fomrat of pot/po files Implement conversion from old po to new po Change-Id: I411b6041f7d525e76b189d7f31adc5b9ab60f6d6 Reviewed-on: https://gerrit.libreoffice.org/506 Reviewed-by: Andras Timar <atimar@suse.com> Tested-by: Andras Timar <atimar@suse.com>
2012-07-15fdo#52090 update Danish dictionaries (2012.07.14)Andras Timar
Change-Id: Ia05018afcfcba044e568e9262ccb90324c2807f5
2012-06-19fix help localization from source tarballsPetr Mladek
localize tool need to get strings also from src directory Change-Id: If8e94198002888d1fcf9b0b0416b7b5dcaa46386
2012-04-06Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operatorSzabolcs Dezsi
2012-03-27exclude callcatcher output dirs from translation tools as wellCaolán McNamara
2012-02-27Make localize follow clone/* instead of symlinksStephan Bergmann
...so that it works on Windows.
2012-02-26print what directory localize tool cannot openAndras Timar
Currently it cannot open /dictionaries under Cygwin, because it is a Cygwin symlink that Windows programs cannot follow. TODO...
2012-02-15Various string function clean upStephan Bergmann
Added: * rtl::OString::matchL * rtl::OString::endsWith * rtl::OString::endsWithL * rtl::OString::indexOfL * rtl::OString::replaceFirst * rtl::OString::replaceAll * rtl::OString::getToken * rtl::OUString::endsWith * rtl::OUString::replaceFirst * rtl::OUString::replaceFirstAsciiL * rtl::OUString::replaceFirstAsciiLAsciiL * rtl::OUString::replaceAll * rtl::OUString::replaceAllAsciiL * rtl::OUString::replaceAllAsciiLAsciiL * rtl::OUString::getToken plus underlying C functions where necessary Deprecated: * comphelper::string::remove * comphelper::string::getToken Removed: * comphelper::string::searchAndReplaceAsciiL * comphelper::string::searchAndReplaceAllAsciiWithAscii * comphelper::string::searchAndReplaceAsciiI * comphelper::string::replace * comphelper::string::matchL * comphelper::string::matchIgnoreAsciiCaseL * comphelper::string::indexOfL Also fixed some apparent misuses of RTL_CONSTASCII_USTRINGPARAM -> RTL_CONSTASCII_STRINGPARAM.
2012-02-10Various more l10ntools clean upStephan Bergmann
"localize" is now directly a C++ program w/o wrapper script. Also, its command line has changed slightly, taking the source root as explicit argument (instead of implicitly as cwd).
2012-02-08Various more l10ntools clean upStephan Bergmann
2012-02-08Freed l10ntools from tools/stream.hxxStephan Bergmann
Removed completely cases of convoluted code to remove UTF-8 BOM from files or translate line endings. Hopefully none of this was actually necessary (on Windows?).
2012-02-07Freed l10ntools from tools/stringStephan Bergmann
2012-01-31ByteString->rtl::OStringCaolán McNamara