Commit graph

604 commits

Author SHA1 Message Date
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
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
Andras Timar
06ec1c0895 Merge branch 'master' into feature/killsdf
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-11 18:24:14 +01:00
Peter Foley
de1030f2bc l10ntools needs boost
Change-Id: Ie4b697b6549e300dcf8c0d788e6c9c0f50e677c2
2012-11-10 09:53:26 -05:00
Zolnai Tamás
8e0d67bed5 Add some check to renewpo
Change-Id: I7b90785516f172f7b552a9e5ae30d02f7c52d7cf
2012-11-10 11:58:48 +01:00
Zolnai Tamás
643ffdf621 Add an extra empty line to lngmerge
It worked with eof before so an extra line
is needed.
See also this commit:
06175e8b19

Change-Id: Ic3f43a52801429258df620229269b8426f1e2995
2012-11-08 17:16:06 +01:00
Zolnai Tamás
ed879cdf29 Correct typo in po header
Change-Id: Ic98467f5c32a0a84af62f68fbe84c68c3e37f1c1
2012-11-08 12:13:03 +01:00
Zolnai Tamás
9e682e30e7 Localize.cxx add correct header to po
Belong to dictionaries modul

Change-Id: Ifd8303fd294de2369383cc2ce7ebdd1487c90463
2012-11-08 11:13:59 +01:00
Andras Timar
74abeff02b integrate librelogo to the build
Change-Id: I4cd29f6a893d72a49233bb53d19701d0bdd0e078
2012-11-07 23:32:35 +01:00
Zolnai Tamás
428d9e15f9 Delete unused files
Belong to extensions which become
unneeded because of treex

Change-Id: I86ca7494a9022c1e72d64b2ec5cbd41d6e292a00
2012-11-07 22:59:15 +01:00
Zolnai Tamás
0853451b46 Correct propmerge
If there is no po entry for a string
than use the original en-US string

Change-Id: I4296ae9c189a3c65cf93a806edbf1317651d1486
2012-11-05 16:02:22 +01:00
Michael Meeks
ed7d5822c0 cleanup README files.
Convert DOS -> unix newlines.
Cleanup and clarify several files.
2012-11-05 12:30:34 +00:00
Alia Almusaireae
4aed4f436c add a README files
Change-Id: I4bd9a7d00df220e2a3deae3cc1b7b0f4a1098e24
Reviewed-on: https://gerrit.libreoffice.org/989
Reviewed-by: Michael Meeks <michael.meeks@suse.com>
Tested-by: Michael Meeks <michael.meeks@suse.com>
2012-11-05 11:53:53 +00:00
Zolnai Tamás
0fd7f81ec6 Implement new treex executable
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-11-03 23:40:30 +01:00
Andras Timar
c1b4077d1f escape quotes, unescape double escaped quotes fdo#56648
Change-Id: Id4135db2ec40865cddab533da15b2705dc7b73d5
2012-11-03 00:39:05 +01:00
David Tardon
f09e4ae273 add missing deps on sal headers
Change-Id: I815ef8abaf4cd998e7b91fbadad56ddf0a7087ba
2012-10-31 19:11:35 +01:00
Michael Stahl
e755317aca l10ntools: add missing dependency on sal headers
Change-Id: Iced89d43299767a30d31d1c5e3abf3e8c91f76cc
2012-10-29 13:41:34 +01:00
Zolnai Tamás
0c7f8e6d0c Delete some unneeded checking from export2.cxx
Change-Id: Ib41c81629fbc5a8bd709391091c2777d49f9d9c4
2012-10-29 12:53:18 +01:00
Zolnai Tamás
8f57a9d2a1 Correct some naming in propex
Change-Id: Id5b17be8155f13529439dd9a46b42f6ffeed79b1
2012-10-29 12:50:09 +01:00
Zolnai Tamás
c6b26144c9 Use isFuzzy() instead of getFuzzy()
to make more obvious its aim

Change-Id: Idc98ae8ce2218c9d387c4f2cb6e4d5603b56aab3
2012-10-11 20:50:19 +02:00
Zolnai Tamás
471f2fc319 Use MsgCtxt, MsgId and MsgCtxt
which are fit better to concept of po.

Change-Id: I772e691465351b1492bdb756fc67e3a9de265c25
2012-10-11 20:40:55 +02:00
Zolnai Tamás
8a3ee4e765 Move GenPoEntry out of header
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-10 19:06:06 +02:00
Zolnai Tamás
06175e8b19 Correct lngmerge not to work with eof
Change-Id: Ibf80a31ea2c03ff2882e71a45acb71d9c9a16482
2012-10-10 15:30:40 +02:00
Zolnai Tamás
a76c979c17 Delete WhiteSpace member of GenPoEntry
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-10 15:17:20 +02:00
Zolnai Tamás
9ebb37f39b Relocate KeyId to PoEntry
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-10 14:56:40 +02:00
Zolnai Tamás
1ef83f535f Use _t suffix for typedef
Change-Id: I8501739e9fb1b184facebc406ed6e20de1f7ab0a
2012-10-09 22:31:23 +02:00
Zolnai Tamás
63af8783bc Use static, lcl_ and anonymus namespace
for local functions

Change-Id: I0393c9552ca353e80ac61d258a280cbcd53e1cba
2012-10-09 22:05:24 +02:00
Zolnai Tamás
961728d58c Make renewpo to ignore double id in xml/xrm
Change-Id: I01329beded3e81040726f525cdb5886b5f3a8c63
2012-10-08 23:03:00 +02:00
Zolnai Tamás
247bac3266 Make an end of xrmex id duplication
Use GroupId instead of LocalId because that is
the primary id. Thus usage of LocalId becomes
unneeded.

Change-Id: I2770141fab47c07294ab15322848e8aef0de2cec
2012-10-08 22:53:14 +02:00
Andras Timar
297531a3b3 remove propex/propmerge Perl scrips
Change-Id: Iab39da2643ba38c4745c29277c10bc39a024ffa3
2012-10-08 19:39:10 +02:00
Andras Timar
6134c08251 typos
Change-Id: Idb23b390af270bdd694ecce9ab14f47d25af8f57
2012-10-08 19:36:55 +02:00
Zolnai Tamás
73ed390a7f Correct wrong memory addressing
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-08 18:23:31 +02:00
Zolnai Tamás
f73618e9de Move propex/propmerge code to C++
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-08 17:14:20 +02:00
Zolnai Tamás
f9e4d3bfe8 Make Export::handleArguments method safer
-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-07 11:42:37 +02:00
Zolnai Tamás
a418748140 Extract argument-handling to one source file
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-05 15:29:40 +02:00
Tor Lillqvist
61137e5fe3 Make isNextGroup() declaration match implementation
Change-Id: I5d8a00b83fd4e9f67b98b86818d1e2180d36e69a
2012-10-03 20:50:01 +03:00
Zolnai Tamás
2146c00da0 Ulfex ignores comments during extraction too
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-03 19:44:15 +02:00