Alexander van Gessel
e01fa5e73c
Don't skip tags because there's a comment containing an equals sign
...
There used to be an issue with this fix, but I can no longer reproduce it.
2013-12-06 14:29:41 +01:00
Alexander van Gessel
a2b50480b7
Have wmlxgettext die when it encounters an empty translatable string
2012-09-23 02:08:37 +01:00
Alexander van Gessel
7e7e4d33b7
Attempt to create a definite ordering for metadata in POT files,
...
...so two people doing a pot-update don't get differently ordered files
2012-03-05 16:22:31 +01:00
Alexander van Gessel
faf744aff3
Allow wesnoth.textdomain to be called with brackets
2012-02-27 13:29:43 +01:00
Alexander van Gessel
e126e54423
Add metadata and -- po: comments to lua handler
2012-02-26 15:36:08 +01:00
Alexander van Gessel
c749fa12f9
Add multiline string capability
2012-02-26 15:36:05 +01:00
Alexander van Gessel
945b02c5fa
Add a lua specialization to wmlxgettext...
...
...that can handle all .lua files I've tested
2012-02-26 15:36:02 +01:00
Alexander van Gessel
18b0becd93
Make some use of the 'first line of translatable string' variable
2012-02-26 15:35:59 +01:00
Alexander van Gessel
cbea9b7720
Turn some package variables into lexical ones
2012-02-26 03:23:39 +01:00
Alexander van Gessel
99e19bb048
Factor out WML file reading loop
2012-02-26 03:23:36 +01:00
Alexander van Gessel
982680a7c9
Move the only used function from wmltrans.pm to wmlxgettext and scrap the module
2012-02-26 03:23:33 +01:00
Alexander van Gessel
028fb2291a
Allow # wmlxgettext: comments to influence wmlxgettext's tagstack
2012-02-22 02:45:41 +01:00
Alexander van Gessel
e20c2548ca
Make wmltrans inclusion from wmlxgettext work a little better
2012-02-21 18:51:08 +01:00
Alexander van Gessel
30e0b761c7
Do not parse the #enddef in a string + #enddef line twice
2011-11-14 05:46:00 +01:00
Alexander van Gessel
50d8b6fed7
Make #po: comments appear on their own lines
2011-11-14 05:16:01 +01:00
Alexander van Gessel
b3057c85c2
Fix define handling of wmlxgettext (bug #18622 )
2011-11-14 04:10:16 +01:00
Alexander van Gessel
6295ffe1ce
Add #po: comment recognition to perl wmlxgettext
2011-11-14 01:24:30 +01:00
Guillaume Melquiond
4028293906
Forced wmlxgettext to use utf8 instead of the current locale.
...
(Fix for bug #17068 , patch by Gabor Udvari.)
2010-12-20 07:06:50 +00:00
Guillaume Melquiond
0c85a3a440
Fixed wmlxgettext so that it understands escaped quotes.
2009-07-19 12:02:09 +00:00
Mark de Wever
1fc818664e
Also extract the id for comments.
...
In trunk the [message]description has been renamed to [message]id. At
the moment when a message id is used it's not extracted to the comment
in the po files. This untested patch should fix that. The description
still seems to be used for [race] so didn't remove that.
2008-11-29 11:22:41 +00:00
Benoît Timbert
762a7f1e47
Apply a patch from caslav.ilic: Fix the extraction of info variables...
...
...when the value is quoted.
2008-03-22 17:10:00 +00:00
Benoît Timbert
526f983612
Even more robust version...
...
...(see http://www.wesnoth.org/forum/viewtopic.php?f=7&t=20198 )
2008-03-16 00:48:02 +00:00
Benoît Timbert
8783dbb82b
Apply a fix from caslav.ilic:
...
now the context analyser parses the entire file and no longer crash if
#textdomain is not used at the top level (see
http://forum.wesnoth.org/viewtopic.php?f=7&t=20198 for full details)
2008-03-15 18:06:34 +00:00
Benoît Timbert
6bcc6d52bf
Apply patch #993 by caslav.ilic : wmlxgettext improvements
2008-03-09 23:26:32 +00:00
Nils Kneuper
5493cd1539
removed a part that *should* not be needed anymore
...
if any new untranslated strings appear, please tell me
2007-08-03 14:03:21 +00:00
Yann Dirson
dda5cb55ba
made wmlxgettext to restore the textdomain on #enddef,
...
...to match the new preprocessor behaviour
2005-05-08 12:30:04 +00:00
Yann Dirson
876d57c1d6
d'oh - revert last change, we may need a stack after all
2005-05-08 12:14:40 +00:00
Yann Dirson
d9ce1d893b
no need to use a stack
2005-05-08 11:59:04 +00:00
Yann Dirson
e0c6daf64c
Added --domain (and --initialdomain) to wmlxgettext,
...
...to select the single textdomain to extract from the files. It is
not really complete (not knowing about the WML scope of #textdomain,
and assuming textual scope), but sufficient for now. Changed default
string-extraction rules to use --domain. Added #textdomain in
"library" wml files from standard campaigns, in places where it would
be missing should those files be #included from different campaigns,
but mostly so their strings get extracted.
2005-05-04 22:56:15 +00:00
Yann Dirson
f31ea38d9c
fixed wmlxgettext to support multiple strings on a single line
2004-11-25 10:34:47 +00:00
Yann Dirson
34b10e6a73
missing (albeit cosmetic) newline in output
2004-11-14 22:24:49 +00:00
Yann Dirson
24e7ffda5f
make wmlxgettext output strings sorted as "msgcat --sort-by-file" would do
2004-11-14 22:19:49 +00:00
Yann Dirson
31aee272d6
oops, do not drop all line-endings allogether !
2004-11-09 00:34:35 +00:00
Yann Dirson
08cee34459
behave properly when WML files have msdos line-endings in multiline strings
2004-11-09 00:27:46 +00:00
Yann Dirson
840ad864aa
behave properly when WML files have msdos line-endings in multiline strings
2004-11-09 00:06:42 +00:00
Yann Dirson
490c64ac95
add --directory option to wmlxgettext...
...
so that running out of source tree works as expected
2004-10-21 19:54:39 +00:00
Yann Dirson
145540f989
fixed wmlxgettext for header generation
2004-10-17 12:47:50 +00:00
Cédric Duval
bec7be4bee
Fixed wmlxgettext not finding cfg files when updating pots.
2004-10-14 13:07:05 +00:00
Yann Dirson
397b97861e
better handling of trailing spaces in magic unit attributes
2004-10-03 21:38:48 +00:00
Yann Dirson
b35fbd6b2e
allow wmlxgettext to extract several strings from a single input line
2004-09-05 16:23:22 +00:00
Yann Dirson
47a421f7ac
improved wmlxgettext to catch strings in other places than attribute assignments
2004-09-05 16:13:06 +00:00
Yann Dirson
6192e52096
automagically get weapon and ability strings
2004-08-10 21:28:47 +00:00
Yann Dirson
7492ccf2a0
fixed lookup of multiline strings on import
2004-08-09 20:55:54 +00:00
Yann Dirson
62fd4153e1
new wmlxgettext to extract translatable strings
2004-08-09 18:45:28 +00:00