summaryrefslogtreecommitdiffstats
path: root/l10ntools
Commit message (Collapse)AuthorAgeFilesLines
* po.cxx: use static and const to increase efficiencyZolnai Tamás2012-12-291-8/+11
| | | | Change-Id: I146808171df2240aaa7901978f94cb260a3def6e
* let uiex produce more translations in one runDavid Tardon2012-12-271-28/+70
| | | | | | | | uiex differs from the other *ex tools in that translation for every language must be in a standalone file, named after the language code. So uiex should take an output _directory_ instead of a file. Change-Id: If3ed966147c6d11d1fe85c484463f1bca4eec172
* drop unused includeDavid Tardon2012-12-271-1/+0
| | | | Change-Id: If62a89dc2f442f94cd0e36f4447ebc4899ee0ab3
* convert icu to gbuild and add to tail_buildPeter Foley2012-12-277-2/+11
| | | | | | | Change-Id: Id7d8bc05b1393cc2bae4a531c8a47f62df24b1d6 Reviewed-on: https://gerrit.libreoffice.org/1488 Reviewed-by: Tor Lillqvist <tml@iki.fi> Tested-by: Tor Lillqvist <tml@iki.fi>
* fdo#58673 Generate the same keyid for pots as for mergeZolnai Tamás2012-12-241-4/+4
| | | | Change-Id: I65c71d22570c62c84d359b12aa5375016be1f69a
* Fix localization of modified listsZolnai Tamás2012-12-191-102/+119
| | | | | | | | | | | | | | | | | | | | Two cases: 1. The items of PairedList have unique id so it works well when change order of items. Thus when there is no poentry for some of the items than use the original strings. 2. The items of other lists have only an order number as id so when order changes than id changes too, which means poentries do not match with original items. To avoid pointless lists fill the whole list with english items. Actually it is a rare case when only the order change, at most time it goes hand in hand with changing of count so use that to decide when use original list. This whole translation ignorance lasts until next po update. Plus delete one call of MegreRest() function because it was called twice for some macro defined strings. Change-Id: I4b34a1831991608583f53e1885c4eb2aea605493
* l10ntools: remove wrong dependency on offapiMatúš Kukan2012-12-191-2/+0
| | | | Change-Id: I1de82c254438bd3f706caa3c3b3221cfc4de5ff1
* Remove --with-stlport from LO 4.0Stephan Bergmann2012-12-171-2/+0
| | | | | | | | | | | | | | | | | | | | | | | The STLport was only built for the benefit of old extensions on platforms that once used it themselves (Linux x86, Solaris x86 and SPARC, Windows). We deliberately break such old extensions for LO 4.0 by no longer shipping that backwards-compatiblity cludge. Keeps STLport listed in readlicense_oo/ because of o3tl/inc/o3tl/compat_functionality.hxx. Also removes GXX_INCLUDE_PATH, as that was only used by STLport (if at all?). Removes a spurious #define MOVEFILE_REPLACE_EXISTING 0x01 from l10ntools/inc/helpmerge.hxx that was once added with 854812584862d0609b695682d2bfea2667d75c00 "INTEGRATION: CWS extensionl10nfix01 (1.11.6); FILE MERGED: 2008/06/26 13:56:03 ihi 1.11.6.1: #i90987# windows rename -> MoveFileEx" but now starts to cause trouble on Windows. Also disables warning C4005 about redefinition of WB_LEFT/RIGHT macros (defined in both tools/wintypes.hxx and the Windows API) in a number of places that include windows.h -- however the old STLport caused those warnings to not show. Change-Id: Ie138a219fbbc86fb5aaa7ea0b88cf349935d9829
* fix ascii escaped unicode generationAndras Timar2012-12-171-1/+3
| | | | Change-Id: I732a480e71c3f26ffde527c5e0eea36f814b8b03
* set LCID of qtzAndras Timar2012-12-151-1/+1
| | | | Change-Id: I7cf9f4297d6f55a07f449c4ff25976d669ef819e
* Make KeyID (qtz) work againAndras Timar2012-12-141-1/+5
| | | | | | | Conflicts: configure.ac Change-Id: I67b2ce4ae647150aeace72c542a5838940d2c058
* Fix adding keyid to po when read from fileZolnai Tamás2012-12-131-8/+9
| | | | Change-Id: I29fdd23da97f1102974a6b5821c224264a37efc3
* Skip poheaderZolnai Tamás2012-12-113-47/+10
| | | | | | | | Po headers can be various and they don not contain any needed information for merge so skip it without any checking. Change-Id: I6d81b7c85bfdbfd961361d98131ed80ba304e9ba
* Revert "performance tuning of helpex"Stephan Bergmann2012-12-117-712/+290
| | | | | | | | This reverts commit f1335171987272b66c2e1e0b02cddb28d44502ec. lcl_EscapeTextBlanks in l10ntools/source/po.cxx looks broken to me; for one, there are 't' vs. '\t' and 'r' vs 't' typos, but then it also does not allocate a large enough sBuff, so *out++ writes past the end -- keeps SEGVing for me here.
* performance tuning of helpexNorbert Thiebaud2012-12-117-290/+712
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | callgrind (on text/swriter/guide translated in 'fr') before Ir = 889,687,925 after Ir = 406,372,177 (405,668,292 w/o the 'native' memory allocator) time confirms: before 0.288/0.272/0.016 after 0.146/0.131/0.015 the output before and after were diff-ed and every generated xhp files are identical. All improvements where done still using 'normal' sal and c++ API. There are still some low-hanging fruits, like XMLUtil:QuoteHTML (probably 20-30 millions Ir to shave there) The destruction of XMLElements is also singularly high (11% of the remaining Ir count) But the bulk of what is left is OString management (alloc/acquire/release/ free/copy), and I/O using streams Change-Id: Ia316c953cd4bd46fc33a58a0c10f26b0ffa042c2 Reviewed-on: https://gerrit.libreoffice.org/1262 Tested-by: Norbert Thiebaud <nthiebaud@gmail.com> Reviewed-by: Andras Timar <atimar@suse.com> Tested-by: Andras Timar <atimar@suse.com>
* callcatcher: remove unused rtf filter and associated methodsCaolán McNamara2012-12-102-27/+0
| | | | | | update and remove newly unused code, mostly original rtf filter Change-Id: I2dd302851ee6fad62d79fbc81cb8a61a861396db
* Fix result of wrong revert orderZolnai Tamás2012-12-091-4/+0
| | | | Change-Id: Ifebe135badbda741d768d2680267623aff6c2b56
* Revert "Make sure all list item is stored"Zolnai Tamás2012-12-091-7/+4
| | | | This reverts commit cd8948d1fd4430bc4186b3525eaec7d531da3fb2.
* Revert "Make src lists modifiable"Zolnai Tamás2012-12-092-7/+7
| | | | | | | It is more difficult than I think first and it needs to solve in an other way. This reverts commit e1a91a9ceda6020bb256739e83dc371a50af3b1d.
* Make sure all list item is storedZolnai Tamás2012-12-091-4/+7
| | | | Change-Id: Idf73871086dd7a3be7371506c034ec7af48d1642
* Make src lists modifiableZolnai Tamás2012-12-092-7/+11
| | | | | | | This work when appending elements to the end of list or deleting elements from list. Change-Id: Ic0b920f79c72ebc3bf70555506466660b13d2aca
* fixes for where fast string operator+ is not perfectly source compatibleLuboš Luňák2012-12-032-4/+4
| | | | Change-Id: I80af0399037e4f68113338139e7f2ad2400e65ab
* RepositoryExternal.mk: clean up awful icudata/icui18n duplicationMichael Stahl2012-12-0211-11/+11
| | | | Change-Id: Ic4794d9a908b60220a4a849ff263eaa08776550c
* Ignore qtz in ulfex and some other placesZolnai Tamás2012-12-026-9/+13
| | | | | | | | | | Installation not works well with qtz so ignore it in ulf files. In those executables which work with one lang at a time it is unwanted to store the useless qtz strings at all call. Change-Id: I1d65ec340da1832404001ad18820407e56615db6
* better error reporting in localize binaryAndras Timar2012-11-301-2/+4
| | | | Change-Id: Ic98a786fffd9d92b51669e2beaed434db1aca519
* add Sidama (sid) languageAndras Timar2012-11-301-0/+1
| | | | Change-Id: I7c7fb38d7df5aecda8e81443aa7045479e0efceb
* there is nothing to localize in 'scripting' moduleAndras Timar2012-11-301-1/+0
| | | | Change-Id: I093e13218dce5d7d73841b34af15f001122e0259
* do not extract strings from da/hu dictionary help treeAndras Timar2012-11-301-0/+4
| | | | Change-Id: Ia5cce381b935daee1251ae6647f2bb59e281054e
* add new tool "stringex" to extract/merge strings from/to android UIAndras Timar2012-11-276-1/+322
| | | | Change-Id: I8210957cedf911418044da340642cf97396f3e14
* add \n to end of warning messageAndras Timar2012-11-271-1/+1
| | | | Change-Id: I6c6f75d7e6fb4379db09a9c155eea9a0cb22ea0f
* Fix bug in localize, created by recently changesZolnai Tamás2012-11-261-1/+1
| | | | Change-Id: I329c72fdca6ade502d4fdedaccc410dd4b7ea874
* Varnisch localize.cxxZolnai Tamás2012-11-262-205/+176
| | | | | | | | | | | | | 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
* WaE: comparison of char to EOF always false on ppcCaolán McNamara2012-11-263-3/+6
| | | | Change-Id: I77b27ea765230d13b9b81faf5b5cf5acc4897616
* Some cosmetics in l10ntoolsZolnai Tamás2012-11-254-59/+61
| | | | | | | | | Add comment to new classes Delete unneeded getLanguage() method Make inline GenPoEntry's setter methods Fix some typo Change-Id: I8f337b8c57e1eab7696415dc7297c64e2436f35d
* do not generate KeyIDs (qtz locale) when ENABLE_RELEASE_BUILD is TRUEAndras Timar2012-11-241-1/+1
| | | | Change-Id: If16741960b23ee05101849d17f1374d17751aa41
* remove useless comment (old bug database)Andras Timar2012-11-241-1/+1
| | | | Change-Id: I85f661934a9ce84017018694e90aca5d050afb65
* Remove some newly tagged unused methodsJulien Nabet2012-11-232-68/+0
| | | | Change-Id: Ie55dfd19f223df62c091ffc4fdf28789b308a1c7
* update l10ntools READMEAndras Timar2012-11-231-2/+3
| | | | Change-Id: Idd31818e2fca33951bceb6e4b64fa57b43f8e7be
* remove remainder of gsicheckAndras Timar2012-11-2311-219/+0
| | | | Change-Id: I463fd97de5106da44326db77e7f9589926f71b20
* Get language id from path of po fileZolnai Tamás2012-11-211-20/+17
| | | | | | | Language ids in po headers can be various so its simpler to extract from path. Change-Id: I3e9447359f3c054aea32b5417b2168025168c556
* Fix language id checkingZolnai Tamás2012-11-212-5/+9
| | | | | | | | | | The result of GetLanguages() is a vector, but behind it the language ids stored in a set, so the order not depend on which id was inserted first. With language ids which are after qtz in alphabetic order this checkings works wrong. Change-Id: I4e15d4de576b1fc567692109311c053b0d93ea60
* Po files' header has modified language idZolnai Tamás2012-11-213-3/+3
| | | | | | | | | | So they must be changed to match with real id Plus add more usefull error message Change-Id: Ife941756bd108ed9adb73dd2d30bd7fa79eb3e35 Reviewed-on: https://gerrit.libreoffice.org/1148 Reviewed-by: Andras Timar <atimar@suse.com> Tested-by: Andras Timar <atimar@suse.com>
* remove from Packages_scripts the removed scriptsCaolán McNamara2012-11-211-3/+0
| | | | | | since 4a51910761b1f528cc21a4d0cc7035108d46aa63 Change-Id: I17b670769da4ac1c91dabda2aa3d42c458c12135
* remove 3 unused Perl scripts from l10ntoolsAndras Timar2012-11-213-581/+0
| | | | Change-Id: Ie2e8fa776b5a7a7293498607fe55dcdfce273594
* Fix build for old gccThorsten Behrens2012-11-212-2/+5
| | | | | | | Workaround extra temporaries created by gcc-4.0 on mac - since here PoHeader has private copy ctor. Change-Id: I6faf99f78c11452f6adf6f1f18e1ceda9e23e7a2
* dirent.h doesn't exist on windowsLuboš Luňák2012-11-211-9/+18
| | | | Change-Id: Id2afa8a9ef944285a34f51cd685cd0ff5a9b6041
* work around ambiguity with msvc and old gccLuboš Luňák2012-11-201-1/+1
| | | | | | | | | | | | | | | | | | | | | C:/cygwin/home/tinderbox/master-build/l10ntools/source/po.cxx(188) : error C2666: 'std::fpos<_Statetype>::operator !=' : 2 overloads have similar conversions with [ _Statetype=_Mbstatet ] C:/PROGRA~2/MICROS~1.0/VC/include\iosfwd(116): could be 'bool std::fpos<_Statetype>::operator !=(const std::fpos<_Statetype> &) const' with [ _Statetype=_Mbstatet ] or 'built-in C++ operator!=(std::streamoff, long)' while trying to match the argument list '(std::fpos<_Statetype>, long)' with [ _Statetype=_Mbstatet ] Change-Id: Id1375d68996414c5ccf75d5d3ebc0afad061e3d2
* WaE ignoring return value, this time reallyDavid Ostrovsky2012-11-201-7/+7
| | | | Change-Id: I5647f318000d83f1f363153c1bc7f4ae4effc88c
* WaE ignoring return valueDavid Ostrovsky2012-11-201-3/+14
| | | | Change-Id: I3a8fa34eb739e4595f8a9d279e33b9191adc2443
* Fix libxml2 usage in l10ntoolsStephan Bergmann2012-11-203-1/+5
| | | | Change-Id: I746af9162d5cd01e0ce0a9f469f0771d7934ba2d