Commit graph

640 commits

Author SHA1 Message Date
Zolnai Tamás
05ac3878bb Ignore qtz in ulfex and some other places
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-12-02 05:26:01 +01:00
Andras Timar
9bfa09273e better error reporting in localize binary
Change-Id: Ic98a786fffd9d92b51669e2beaed434db1aca519
2012-11-30 23:30:54 +01:00
Andras Timar
14569b316a add Sidama (sid) language
Change-Id: I7c7fb38d7df5aecda8e81443aa7045479e0efceb
2012-11-30 15:23:15 +01:00
Andras Timar
af06afdbe8 there is nothing to localize in 'scripting' module
Change-Id: I093e13218dce5d7d73841b34af15f001122e0259
2012-11-30 12:36:44 +01:00
Andras Timar
034b56290e do not extract strings from da/hu dictionary help tree
Change-Id: Ia5cce381b935daee1251ae6647f2bb59e281054e
2012-11-30 09:03:52 +01:00
Andras Timar
869dab55c1 add new tool "stringex" to extract/merge strings from/to android UI
Change-Id: I8210957cedf911418044da340642cf97396f3e14
2012-11-27 14:35:53 +01:00
Andras Timar
a511a4f2a9 add \n to end of warning message
Change-Id: I6c6f75d7e6fb4379db09a9c155eea9a0cb22ea0f
2012-11-27 14:35:52 +01:00
Zolnai Tamás
d042c3ccd8 Fix bug in localize, created by recently changes
Change-Id: I329c72fdca6ade502d4fdedaccc410dd4b7ea874
2012-11-26 20:07:22 +01:00
Zolnai Tamás
54f2fad47b Varnisch localize.cxx
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-26 15:49:56 +01:00
Caolán McNamara
e54dc7b8a4 WaE: comparison of char to EOF always false on ppc
Change-Id: I77b27ea765230d13b9b81faf5b5cf5acc4897616
2012-11-26 09:34:51 +00:00
Zolnai Tamás
d02dc1da4a Some cosmetics in l10ntools
Add comment to new classes
Delete unneeded getLanguage() method
Make inline GenPoEntry's setter methods
Fix some typo

Change-Id: I8f337b8c57e1eab7696415dc7297c64e2436f35d
2012-11-25 15:01:12 +01:00
Andras Timar
1a9745b511 do not generate KeyIDs (qtz locale) when ENABLE_RELEASE_BUILD is TRUE
Change-Id: If16741960b23ee05101849d17f1374d17751aa41
2012-11-24 16:08:58 +01:00
Andras Timar
5ca6c75f2b remove useless comment (old bug database)
Change-Id: I85f661934a9ce84017018694e90aca5d050afb65
2012-11-24 16:08:58 +01:00
Julien Nabet
db4aab0e11 Remove some newly tagged unused methods
Change-Id: Ie55dfd19f223df62c091ffc4fdf28789b308a1c7
2012-11-23 22:39:04 +01:00
Andras Timar
356cb10f7e update l10ntools README
Change-Id: Idd31818e2fca33951bceb6e4b64fa57b43f8e7be
2012-11-23 17:08:10 +01:00
Andras Timar
a5222d4069 remove remainder of gsicheck
Change-Id: I463fd97de5106da44326db77e7f9589926f71b20
2012-11-23 16:43:07 +01:00
Zolnai Tamás
9c4f31c168 Get language id from path of po file
Language ids in po headers can be various so
its simpler to extract from path.

Change-Id: I3e9447359f3c054aea32b5417b2168025168c556
2012-11-21 22:52:13 +01:00
Zolnai Tamás
8ae3ddca7e Fix language id checking
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-21 22:52:10 +01:00
Zolnai Tamás
855f9a0f0b Po files' header has modified language id
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-21 20:38:35 +00:00
Caolán McNamara
7119a76da2 remove from Packages_scripts the removed scripts
since 4a51910761

Change-Id: I17b670769da4ac1c91dabda2aa3d42c458c12135
2012-11-21 14:14:06 +00:00
Andras Timar
4a51910761 remove 3 unused Perl scripts from l10ntools
Change-Id: Ie2e8fa776b5a7a7293498607fe55dcdfce273594
2012-11-21 15:08:41 +01:00
Thorsten Behrens
1c84f6f475 Fix build for old gcc
Workaround extra temporaries created by gcc-4.0 on mac - since here
PoHeader has private copy ctor.

Change-Id: I6faf99f78c11452f6adf6f1f18e1ceda9e23e7a2
2012-11-21 14:18:13 +01:00
Luboš Luňák
7f0bf0941c dirent.h doesn't exist on windows
Change-Id: Id2afa8a9ef944285a34f51cd685cd0ff5a9b6041
2012-11-21 08:33:17 +01:00
Luboš Luňák
7ad5501532 work around ambiguity with msvc and old gcc
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-20 22:03:30 +01:00
David Ostrovsky
835d0fb700 WaE ignoring return value, this time really
Change-Id: I5647f318000d83f1f363153c1bc7f4ae4effc88c
2012-11-20 21:31:23 +01:00
David Ostrovsky
b420358033 WaE ignoring return value
Change-Id: I3a8fa34eb739e4595f8a9d279e33b9191adc2443
2012-11-20 21:06:25 +01:00
Stephan Bergmann
7753bbb8b1 Fix libxml2 usage in l10ntools
Change-Id: I746af9162d5cd01e0ce0a9f469f0771d7934ba2d
2012-11-20 16:20:47 +01:00
Stephan Bergmann
88ada48f9d -Werror=trigraphs
Change-Id: I47f285e94d9437e837a0aaa25c0682b4d2187974
2012-11-20 15:05:20 +01:00
Andras Timar
fa88b3717d Merge branch 'feature/killsdf'
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 15:03:34 +01:00
Stephan Bergmann
954f991ba8 "tubes" missing from l10n project list
Change-Id: Ieb04a22f83e698521aa90fe16fce4f66c4635034
2012-11-20 13:32:21 +01:00
Zolnai Tamás
073ff5518f Generate qtz properties
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-20 00:31:52 +01:00
Zolnai Tamás
7429ab2e2c Use icu regex in l10ntools instead of i18nregexp
Change-Id: I9062aafa2fefa26b7b1edf0440f4675b2f469e5d
2012-11-19 18:34:32 +01:00
Zolnai Tamás
3f469dd69c Fix some encoding problem in treemerge
Change-Id: I275ccba8f07ccaba1ead0ad83a382d3ad19c722a
2012-11-18 22:51:55 +01:00
Zolnai Tamás
06d5579c92 Localize tree files in help
-Treex works well when po is not exist, send a
 warning but make en-US tree-s.

Change-Id: Ib2b790742c022211a8d250b66891cef045941398
2012-11-18 19:18:46 +01:00
Zolnai Tamás
5d84ae59e7 Localize xhp files in help
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-18 19:18:44 +01:00
Zolnai Tamás
c48c4ace36 Correct skipping source file line of msgctxt
Change-Id: I7aed7a75c6e9b36efca9837c0137075065bcd1e6
2012-11-18 14:42:04 +01:00
Zolnai Tamás
d15706ec0a Revert "Write source file into po entries' msgctxt"
This reverts commit b0f07bbbc4.
2012-11-18 14:39:17 +01:00
Zolnai Tamás
ce48aa1488 Revert "Correct skiping source file line of msgctxt"
This reverts commit 7f81bbb1c7.
2012-11-18 14:38:47 +01:00
Ztamas
7f81bbb1c7 Correct skiping source file line of msgctxt
Change-Id: I64635dd7a6352300ed5fb6949a1b78c2a070c660
2012-11-18 14:24:00 +01:00
Ztamas
b0f07bbbc4 Write source file into po entries' msgctxt
So (msgctxt, msgid) pair is unique in one po file

Change-Id: I64635dd7a6352300ed5fb6949a1b78c2a070c660
2012-11-18 14:15:15 +01:00
Andras Timar
124dc60e55 Revert "put filename into msgctxt, because po entries must be unique"
This reverts commit 889574a50c.
2012-11-18 13:04:33 +01:00
Andras Timar
889574a50c put filename into msgctxt, because po entries must be unique
Change-Id: I700b668863c2b20cdf60fa672a994b8ae4dc613a
2012-11-18 12:48:24 +01:00
Ztamas
302a099e52 Write source file into po entries' msgctxt
So (msgctxt, msgid) pair is unique in one po file

Change-Id: I64635dd7a6352300ed5fb6949a1b78c2a070c660
2012-11-18 12:07:58 +01:00
Zolnai Tamás
fea5e609ba Last changes in renewpo for migration
Order PoEntries by their locations in original po files
by adding serialnumber in po2lo and work up them in this order
in renewpo. So the order will be the same in new po files.

Change-Id: Idb0547a2e1262008b374fe450ec3e01af0cff839
2012-11-17 14:31:17 +01:00
Zolnai Tamás
f6147cbe1c Handle dictionaries in the same way in localize
By now, not needed to handle dictionaries
in other way, because its root moves up directly
to core.

Change-Id: I90d6a67c90b00eea290f17e277fb13c0a6b0b5cd
2012-11-17 14:31:15 +01:00
Peter Foley
e1f742a601 fix system boost
Change-Id: Id80557cb47ab471a0f3a643a1c11a59e89c14c54
2012-11-13 17:03:35 -05:00
Andras Timar
6cfa7552ee fix XML tag check in help and readme translations
Change-Id: I88a3ad382df41da96fcab38c3c06d5871228e082
2012-11-13 21:55:18 +01:00
Andras Timar
0a7189a3b2 remove obsoleted gsicheck tool
Change-Id: Ib25a6feae34533fa3752fe57e857613ca113ee3a
2012-11-13 11:44:29 +01:00
Andras Timar
deaceba0c2 XML tag check in help and readme translations
Change-Id: Iec88ae875e00777f499cd0044f256275d854dca8
2012-11-13 11:40:10 +01:00
Peter Foley
54c22652d3 fix transex again
Change-Id: If66ff22becad085e320ae34a36415d37c537265c
2012-11-11 19:20:30 -05:00