summaryrefslogtreecommitdiff
path: root/l10ntools
AgeCommit message (Collapse)AuthorFilesLines
2013-02-18Fix fdo#60754 - no translations for langs sorting after qtzThorsten Behrens2-4/+5
Adjust check to not rely on lexicographical order. This amends 8ae3ddca7e99d2bdbaadd5e0c82de2f0fbd30f91. Change-Id: I0e9ea916f2efaf21a8f44df4483a55ce7f6be33f Reviewed-on: https://gerrit.libreoffice.org/2196 Reviewed-by: Andras Timar <atimar@suse.com> Tested-by: Andras Timar <atimar@suse.com>
2013-02-16Only escape double-quotes for ulf files.Thorsten Behrens1-2/+2
On second thought, this was needlessly overbroad. Missed the fact that the code is strictly for ulf. Change-Id: I96773d6e2a9af473e8c8309421b4900c0b76667f Reviewed-on: https://gerrit.libreoffice.org/2172 Reviewed-by: Andras Timar <atimar@suse.com> Tested-by: Andras Timar <atimar@suse.com>
2013-02-16Proper escaping of quotes for android xml resource files.Thorsten Behrens1-1/+1
Change-Id: I9f76986465af5798f1451d44af6765f4e5d1bb09 Reviewed-on: https://gerrit.libreoffice.org/2173 Reviewed-by: Andras Timar <atimar@suse.com> Tested-by: Andras Timar <atimar@suse.com>
2013-02-11More quote escaping on translated strings.Thorsten Behrens2-2/+3
Also escape single quotes for ulf, escape both double and single quotes for stringex. Change-Id: I4c9b8ea88c0172e0d2fdbc79c68bce34668a64f7 (cherry picked from commit 049cf7c753339f761cd49b83744abab6aa820ea4) Signed-off-by: Miklos Vajna <vmiklos@suse.cz>
2012-12-28let uiex produce more translations in one runDavid Tardon1-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 (cherry picked from commit c27b2e377f612de2476ff0aa0ddc909ff214fcb2) Signed-off-by: David Tardon <dtardon@redhat.com>
2012-12-26fdo#58673 Generate the same keyid for pots as for mergeZolnai Tamás1-4/+4
Change-Id: I65c71d22570c62c84d359b12aa5375016be1f69a
2012-12-19l10ntools: remove wrong dependency on offapiMatúš Kukan1-2/+0
Change-Id: I1de82c254438bd3f706caa3c3b3221cfc4de5ff1 Signed-off-by: Tomas Chvatal <tchvatal@suse.cz>
2012-12-17fix ascii escaped unicode generationAndras Timar1-1/+3
Change-Id: I732a480e71c3f26ffde527c5e0eea36f814b8b03
2012-12-17Skip poheaderZolnai Tamás3-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
2012-12-15set LCID of qtzAndras Timar1-1/+1
Change-Id: I7cf9f4297d6f55a07f449c4ff25976d669ef819e
2012-12-14Make KeyID (qtz) work againAndras Timar1-1/+5
Change-Id: I67b2ce4ae647150aeace72c542a5838940d2c058
2012-12-14Fix adding keyid to po when read from fileZolnai Tamás1-8/+9
Change-Id: I29fdd23da97f1102974a6b5821c224264a37efc3
2012-12-03fixes for where fast string operator+ is not perfectly source compatibleLuboš Luňák2-4/+4
Change-Id: I80af0399037e4f68113338139e7f2ad2400e65ab
2012-12-02RepositoryExternal.mk: clean up awful icudata/icui18n duplicationMichael Stahl11-11/+11
Change-Id: Ic4794d9a908b60220a4a849ff263eaa08776550c
2012-12-02Ignore qtz in ulfex and some other placesZolnai Tamás6-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
2012-11-30better error reporting in localize binaryAndras Timar1-2/+4
Change-Id: Ic98a786fffd9d92b51669e2beaed434db1aca519
2012-11-30add Sidama (sid) languageAndras Timar1-0/+1
Change-Id: I7c7fb38d7df5aecda8e81443aa7045479e0efceb
2012-11-30there is nothing to localize in 'scripting' moduleAndras Timar1-1/+0
Change-Id: I093e13218dce5d7d73841b34af15f001122e0259
2012-11-30do not extract strings from da/hu dictionary help treeAndras Timar1-0/+4
Change-Id: Ia5cce381b935daee1251ae6647f2bb59e281054e
2012-11-27add new tool "stringex" to extract/merge strings from/to android UIAndras Timar6-1/+322
Change-Id: I8210957cedf911418044da340642cf97396f3e14
2012-11-27add \n to end of warning messageAndras Timar1-1/+1
Change-Id: I6c6f75d7e6fb4379db09a9c155eea9a0cb22ea0f
2012-11-26Fix bug in localize, created by recently changesZolnai Tamás1-1/+1
Change-Id: I329c72fdca6ade502d4fdedaccc410dd4b7ea874
2012-11-26Varnisch localize.cxxZolnai Tamás2-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
2012-11-26WaE: comparison of char to EOF always false on ppcCaolán McNamara3-3/+6
Change-Id: I77b27ea765230d13b9b81faf5b5cf5acc4897616
2012-11-25Some cosmetics in l10ntoolsZolnai Tamás4-59/+61
Add comment to new classes Delete unneeded getLanguage() method Make inline GenPoEntry's setter methods Fix some typo Change-Id: I8f337b8c57e1eab7696415dc7297c64e2436f35d
2012-11-24do not generate KeyIDs (qtz locale) when ENABLE_RELEASE_BUILD is TRUEAndras Timar1-1/+1
Change-Id: If16741960b23ee05101849d17f1374d17751aa41
2012-11-24remove useless comment (old bug database)Andras Timar1-1/+1
Change-Id: I85f661934a9ce84017018694e90aca5d050afb65
2012-11-23Remove some newly tagged unused methodsJulien Nabet2-68/+0
Change-Id: Ie55dfd19f223df62c091ffc4fdf28789b308a1c7
2012-11-23update l10ntools READMEAndras Timar1-2/+3
Change-Id: Idd31818e2fca33951bceb6e4b64fa57b43f8e7be
2012-11-23remove remainder of gsicheckAndras Timar11-219/+0
Change-Id: I463fd97de5106da44326db77e7f9589926f71b20
2012-11-21Get language id from path of po fileZolnai Tamás1-20/+17
Language ids in po headers can be various so its simpler to extract from path. Change-Id: I3e9447359f3c054aea32b5417b2168025168c556
2012-11-21Fix language id checkingZolnai Tamás2-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
2012-11-21Po files' header has modified language idZolnai Tamás3-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>
2012-11-21remove from Packages_scripts the removed scriptsCaolán McNamara1-3/+0
since 4a51910761b1f528cc21a4d0cc7035108d46aa63 Change-Id: I17b670769da4ac1c91dabda2aa3d42c458c12135
2012-11-21remove 3 unused Perl scripts from l10ntoolsAndras Timar3-581/+0
Change-Id: Ie2e8fa776b5a7a7293498607fe55dcdfce273594
2012-11-21Fix build for old gccThorsten Behrens2-2/+5
Workaround extra temporaries created by gcc-4.0 on mac - since here PoHeader has private copy ctor. Change-Id: I6faf99f78c11452f6adf6f1f18e1ceda9e23e7a2
2012-11-21dirent.h doesn't exist on windowsLuboš Luňák1-9/+18
Change-Id: Id2afa8a9ef944285a34f51cd685cd0ff5a9b6041
2012-11-20work around ambiguity with msvc and old gccLuboš Luňák1-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
2012-11-20WaE ignoring return value, this time reallyDavid Ostrovsky1-7/+7
Change-Id: I5647f318000d83f1f363153c1bc7f4ae4effc88c
2012-11-20WaE ignoring return valueDavid Ostrovsky1-3/+14
Change-Id: I3a8fa34eb739e4595f8a9d279e33b9191adc2443
2012-11-20Fix libxml2 usage in l10ntoolsStephan Bergmann3-1/+5
Change-Id: I746af9162d5cd01e0ce0a9f469f0771d7934ba2d
2012-11-20-Werror=trigraphsStephan Bergmann1-1/+1
Change-Id: I47f285e94d9437e837a0aaa25c0682b4d2187974
2012-11-20Merge branch 'feature/killsdf'Andras Timar47-4404/+2760
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 Bergmann1-0/+1
Change-Id: Ieb04a22f83e698521aa90fe16fce4f66c4635034
2012-11-20Generate qtz propertiesZolnai Tamás1-1/+2
Qtz has no own po files so use one of configured langauge's po files (en-US excludex) Plus copy all properties files independently of localization Change-Id: Ica7ccb7d3111f2fc2b3bbde4b839cb564967130a
2012-11-19Use icu regex in l10ntools instead of i18nregexpZolnai Tamás12-62/+65
Change-Id: I9062aafa2fefa26b7b1edf0440f4675b2f469e5d
2012-11-18Fix some encoding problem in treemergeZolnai Tamás1-1/+3
Change-Id: I275ccba8f07ccaba1ead0ad83a382d3ad19c722a
2012-11-18Localize tree files in helpZolnai Tamás1-3/+2
-Treex works well when po is not exist, send a warning but make en-US tree-s. Change-Id: Ib2b790742c022211a8d250b66891cef045941398
2012-11-18Localize xhp files in helpZolnai Tamás4-60/+80
Make helpex to be able to work with more xhp files at one time - Add new input flag "-mi" which means multiinput - Input is a file include pathes to xhp files (these are in the same directory so their strings are in the same po file) - Output is a file include pathes to dest xhp files - Merge reads all po entry from the specified po file if MergeDataFile ctor's second parameter is empty Rewrite makefiles to work with new syntax Plus Delete some unused code Change-Id: I5eb12d7a6f5e9cda378788410d3c50052eb752b8
2012-11-18Correct skipping source file line of msgctxtZolnai Tamás1-3/+5
Change-Id: I7aed7a75c6e9b36efca9837c0137075065bcd1e6