Commit Graph

649 Commits

Author SHA1 Message Date
Elias Pschernig
73c6d924a6 wmlunits: fixed some translation issues...
...and translated more stuff, added option for addons, and some minor
things
2008-04-10 14:29:39 +00:00
Gunter Labes
61bef2baae sync the footer with the main page 2008-04-09 23:26:29 +00:00
Elias Pschernig
5aed99b565 wmlunits: don't color non-race attributes red 2008-04-09 20:54:57 +00:00
Elias Pschernig
864a53b8f3 wmlunits: Defense/Resistances are now displayed as (100 - x)%,
...attacks as hp - times
2008-04-09 20:47:16 +00:00
Elias Pschernig
28849bf119 Allow using ~ in the output option of wmlunits,
...and made it work with Python 2.3.
2008-04-09 20:27:52 +00:00
Elias Pschernig
b7697a7313 Added option to specify the Wesnoth datadir to wmlunits,
...and fixed a bug where it was assumed to run from the wesnoth dir.
2008-04-09 19:38:40 +00:00
Elias Pschernig
291eb96197 finished python unit stats tool 2008-04-09 16:56:58 +00:00
Elias Pschernig
91c44fee30 Made wmlunits 250% faster. 2008-04-08 18:48:02 +00:00
Elias Pschernig
1d2e6debf4 Python version of wmlunits is done (minus some todos and bugs). 2008-04-08 17:22:38 +00:00
Patrick Parker
14247b09cd patch #1037: Filter_x renaming 2008-04-08 07:15:25 +00:00
Elias Pschernig
10eee98e63 More work on wmlunits.
Uses now an external stylesheet, performs team colorization, displays
female variants. And some bugs fixed.
2008-04-07 14:55:39 +00:00
Elias Pschernig
04d7267c4f Worked on the python unit info tool a bit. 2008-04-06 22:29:01 +00:00
Elias Pschernig
8a0d353140 Extended the wmltools python gettext helper slightly. 2008-04-06 22:27:39 +00:00
Gunter Labes
85393e624b rename wmlclient to add-on_manager.py to better convey what it does
replace most remaining references to 'campaign' with 'add-on'
2008-04-05 13:53:50 +00:00
Eric S. Raymond
0d410d5a0d Quiet down wmlunits. 2008-04-05 07:16:01 +00:00
Eric S. Raymond
124062ca13 campaigns_client.py becomes one of the installable tools for content authors.
To conform to the naming convention of the other tools it is renamed 
'wmlclient'.
2008-04-04 01:48:25 +00:00
Eric S. Raymond
3121bf5a7f Make sure all user_team_names are quoted.
Fix the glitch check for this to run even when lift is not enabled.
2008-04-03 20:29:02 +00:00
Eric S. Raymond
659f5d1894 More suppression of spurious wmllint warnings. 2008-04-03 19:13:14 +00:00
Eric S. Raymond
01f02a707b Teach wmllint to detect and warn of user_team_name members...
...without translation marks, and clean up a few.
2008-04-03 17:59:26 +00:00
Elias Pschernig
cfe78ed9b0 ESR silenced bogus warnings about missing macros...
...for ~files in the python WML parser.
2008-04-02 21:33:33 +00:00
Elias Pschernig
21b37caedd The Python parser uses the #textdomain of the surrounding text...
...when expanding macros now.
2008-04-02 21:23:12 +00:00
Eric S. Raymond
2a6dc2e5fb Prevent some spurious "undefined macro" messages from wmlunits. 2008-04-02 11:45:41 +00:00
Eric S. Raymond
84f7597007 Prevent some false positive during lifting. 2008-04-01 13:42:56 +00:00
Elias Pschernig
edce75c59f Made wmlunits output redirectable despite using Python's print command. 2008-03-31 22:07:29 +00:00
Elias Pschernig
d153541838 Added special case for tutorial to wmlunits for now...
...(ignoring custom units in the tutorial).
2008-03-31 18:08:04 +00:00
Elias Pschernig
e830b1cccb Ignore campaigns with no extra units. 2008-03-31 17:56:54 +00:00
Elias Pschernig
dae7d2f3ec uncommented campaigns i had commented out for testing 2008-03-31 17:50:13 +00:00
Eric S. Raymond
04b00af73a Implement do_not_list interpretation for wml_units. 2008-03-31 17:42:53 +00:00
Elias Pschernig
04bf030559 Made wmlunits parse complete campaigns...
...instead of just their /units subfolder, should be more similar to
what the C++ engine does.
2008-03-31 17:40:49 +00:00
Eric S. Raymond
d7d4b130e8 First cut at [base_unit]-aware lookup. 2008-03-31 15:47:07 +00:00
Eric S. Raymond
2beeda0b9f Correct a coding error introduced in last commit. 2008-03-31 15:19:08 +00:00
Eric S. Raymond
10862711e4 Collect all unit data in a single object so we can resolve basenames. 2008-03-31 15:07:31 +00:00
Eric S. Raymond
63bd89d392 Report generator doesn't need to be part of the UnitList object. 2008-03-31 14:45:47 +00:00
Eric S. Raymond
801c1409e6 Parsing is now correctly separated from report generation. 2008-03-31 14:25:49 +00:00
Eric S. Raymond
9e0c7d7e84 wmlunits now uses the textdomain information...
...included in each parsed unit item.
2008-03-31 14:12:14 +00:00
Eric S. Raymond
2d862f5646 Begin to separate unit parsing from report generation. 2008-03-31 13:35:23 +00:00
Eric S. Raymond
c6fca2eb00 Translation class is generally useful, so put it in the tools library. 2008-03-31 13:11:59 +00:00
Eric S. Raymond
515c68ce4c Two changes to wmlparser:
1) All data items collected by the parse now carry information about
   the text domain that was active when they were parsed.

2) Parser no longer ignores all #textdomain declarations other than
   'wesnoth'.

Note: the second change is potentially not backwards-compatible,
depending on how the parser client uses the data.
2008-03-31 12:58:26 +00:00
Eric S. Raymond
513921c01c Define a function for popping to the top-level dist directory. 2008-03-31 11:17:00 +00:00
Eric S. Raymond
b1a9d29509 Translation language can now be specified with a switch. 2008-03-31 11:05:04 +00:00
Eric S. Raymond
1c0660550a Factor out translation processing. 2008-03-31 10:39:59 +00:00
Eric S. Raymond
1753e856fb Start of wmlunits refactoring. 2008-03-31 09:58:49 +00:00
Eric S. Raymond
71d85e4c00 Added elias's unit lister to the data/tools directory. 2008-03-31 09:45:54 +00:00
Gunter Labes
5d7841b273 also add the image reference for the zombie bat 2008-03-29 00:06:53 +00:00
Elias Pschernig
35f37ca983 Applied patch #1023 by Walter Dörwald:
...Bug in Python source: wmlparser.DataDefine.copy()
2008-03-28 22:23:51 +00:00
Gunter Labes
de80e0cc8b actually make the script work 2008-03-28 22:18:46 +00:00
Eric S. Raymond
5d28c25057 Fix bonehead error. I never tested in non-dryrun mode! (*blush*) 2008-03-28 17:09:04 +00:00
Eric S. Raymond
1288805d49 We only need one copy of TeamColorizer. 2008-03-28 16:06:29 +00:00
Gunter Labes
c7d072c890 typo fix 2008-03-28 15:25:37 +00:00
Gunter Labes
8921771b75 add the bat zombie 2008-03-28 15:20:45 +00:00