6323 Commits

Author SHA1 Message Date
Susanna Björverud
4e47d15371 Fixed malformed utf-8 2005-03-28 13:22:49 +00:00
Jon Daniel
83ab6458fb fixed bug #12486 2005-03-28 12:37:50 +00:00
Philippe Plantier
ba438e512f Allowing back WML variables to contain spaces.
Not that I like it, but it did break too much stuff.
2005-03-28 12:29:10 +00:00
Philippe Plantier
0e25bf2c69 Fixed the list of C++ files used to extract translatable strings.
Ran update-po
2005-03-28 11:24:23 +00:00
Jordà Polo
27b59abd4d updated changelog 2005-03-28 10:14:42 +00:00
Jordà Polo
42cd48efea added chinese transliteration in the language selection dialog 2005-03-28 10:09:24 +00:00
Guillaume Melquiond
ee891ffdfc Force codeset rebinding everytime a string has to been translated.
Otherwise binary serialized strings may not have a codeset-binded
textdomain, since they don't go through the parser.
2005-03-28 10:04:21 +00:00
Susanna Björverud
37dee1c8c3 Removed underscore from before null strings, since it messes up pot-files 2005-03-28 10:03:24 +00:00
Guillaume Melquiond
3a25b0a67c Die cerr, die! 2005-03-28 09:44:05 +00:00
Richard Kettering
d53c12ed96 New animations for mermen Javelineer. 2005-03-28 09:11:05 +00:00
Jordà Polo
b2c8790dae added chinese translation 2005-03-28 09:00:14 +00:00
Richard Kettering
6d8d336c05 New images for Mermen Javelineers. 2005-03-28 08:48:50 +00:00
Guillaume Melquiond
1b5c4f28c0 Remove loading of active-pressed images for buttons, since they are not used. 2005-03-28 08:27:01 +00:00
Richard Kettering
08a0682c15 Added new images for Merman Spearman. 2005-03-28 08:15:03 +00:00
Richard Kettering
dab8946945 New images for Merman Spearman, timing adjustments for animations. 2005-03-28 08:10:56 +00:00
Jordà Polo
7801f66001 updated catalan translation 2005-03-28 08:05:50 +00:00
Guillaume Melquiond
77dc2301fa Remove bogus qualifier. 2005-03-28 07:39:48 +00:00
Jordà Polo
11db3a883c removed useless buttons (were not needed after all) 2005-03-28 07:32:44 +00:00
Jordà Polo
8502f2b255 added missing buttons 2005-03-28 06:45:19 +00:00
Philippe Plantier
ba195ecd8a [[Attack some problems with data serialization in saves]]
* Made serialized data be saved as untranslated. To achieve this, added the
  t_string class, which encapsulates a translatable string.

* Completely rewrote the (text) WML parser, making it use a tokenizer / parser
  architecture. The parser is now much more strict and validates a WML grammar.

  - Change to the WML syntax: pluses are now ignored, spaces are now forbidden
    in WML keys

* Rewrote the way the variables are interpolated. There is no more default
  interpolation, however, the vconfig class was added, which provides a
  variable-interpolating proxy to config objects.

* There is still an important known bug: this is impossible to load textmode
  save games now, because the statistics module saves some WML with spaces in
  keys, which the parser refuses. I am commiting anyway to respect the string
  freeze; the fix for this bug will come tomorrow

Hoping I do not break everything...
2005-03-27 23:06:17 +00:00
Susanna Björverud
ec9dfd3408 Updated Hungarian translation 2005-03-27 21:50:50 +00:00
Guillaume Melquiond
b5947c273d Don't put the slider in la-la-land. 2005-03-26 17:31:33 +00:00
Guillaume Melquiond
2424ad048b Move the function out of the header, and correct related dependencies. 2005-03-26 17:24:42 +00:00
Guillaume Melquiond
d501297a65 Switch to the new logging macro. 2005-03-26 17:10:32 +00:00
Guillaume Melquiond
d2154990c3 Since I'm doing unnecessary commits to these files,
...I could at least add the missing filesystem domain, so that it's done.
2005-03-26 16:22:24 +00:00
Guillaume Melquiond
136b29241d New construct to prevent the game to format and then discard log messages:
LOG_STREAM(warn, network) will produce a log stream when necessary.
2005-03-26 16:19:31 +00:00
Guillaume Melquiond
4385485a4a New construct to prevent the game to format and then discard log messages:
LOG_STREAM(warn, network) will produce a log stream when necessary.
2005-03-26 16:19:08 +00:00
Guillaume Melquiond
67d9e6b7fe Accessing the size of a buffer after having destroyed it is plain bad. 2005-03-26 15:51:05 +00:00
Guillaume Melquiond
73feb6911e Remove illegal read for empty strings.
Sanitize utf8 iterators (const members, no empty constructor).
2005-03-26 15:32:26 +00:00
Yann Dirson
9ed92a00e2 compatibility with the broken automake used in familiar 0.8 2005-03-26 15:15:08 +00:00
Guillaume Melquiond
209d14a3bd Switch to streaming output files too. 2005-03-26 14:07:18 +00:00
Richard Kettering
f10831f1d9 New images for merman hunter. 2005-03-26 11:11:18 +00:00
Guillaume Melquiond
689f7a8216 Strengthen the test for binary files a bit.
And rewrite once again the literal input function, it's only the third
time in less than 24 hours...
2005-03-26 11:11:10 +00:00
Richard Kettering
aa94b0523b New animations for merman hunter.
Also, I have increased the airtime for spears to 150ms, which I think
looks better.  This change will be propagated to other units with
pointy sticks when they get directional animations (and they all
will).
2005-03-26 10:38:44 +00:00
Richard Kettering
d9600957fd New animations for merman hunter. 2005-03-26 10:35:38 +00:00
Guillaume Melquiond
fa440065de Workaround the case of the empty literal word (NUL right on start) ...
...that would prevent some binary savefile to load. Remove endline
from the config error messages. Switch from fail to not good.
2005-03-26 09:48:25 +00:00
Guillaume Melquiond
35841b6c6d Now that we are using streams,
...we can't afford to go back at the start of it in case of wrong
detection. So let's detect the format by just peeking the first
character.
2005-03-26 09:06:17 +00:00
Susanna Björverud
8778a7c959 Updated Italian translation 2005-03-25 22:10:50 +00:00
Guillaume Melquiond
fceb130ab9 Fix comment. Thanks to Cyberjack for spotting it. 2005-03-25 20:55:56 +00:00
John W. C. McNabb
71f2104bc9 added dfool theme 2005-03-25 20:41:35 +00:00
Guillaume Melquiond
662137322f Directly output to a stream instead of a vector. 2005-03-25 20:38:06 +00:00
John W. C. McNabb
d25f6c55b8 added dfool theme 2005-03-25 20:31:03 +00:00
John W. C. McNabb
5660d8143a added dfool theme 2005-03-25 20:25:05 +00:00
Guillaume Melquiond
34889399c3 Rewriting an STL function with an utterly inefficient implementation,
...I just like it... Hmm... Right, cleaning up.
2005-03-25 20:10:39 +00:00
Guillaume Melquiond
e0e685d646 Add a writer for (un)compressed files.
Now that detect_format_and_read is no more the only function able to
deal with both binary and text formats, create a header file.
2005-03-25 19:48:48 +00:00
Guillaume Melquiond
580cb572a7 Switch the compressed writer to using stream too. 2005-03-25 19:35:27 +00:00
Guillaume Melquiond
06f73109a3 Remove unexpected qualifier. 2005-03-25 19:34:39 +00:00
John W. C. McNabb
bd7e59d6b1 added theme dialog 2005-03-25 18:52:55 +00:00
Jordà Polo
1ed408dc7c added Mikel Olasagasti (Hey_neken) as basque translator 2005-03-25 18:26:55 +00:00
Guillaume Melquiond
d21e4149d6 Now the preprocessor output is also a stream, and so is the parser input, ...
...hence they can be plugged, yay. Also introduce a scoped_istream to
prevent leaking descriptors in case of exceptions. Once again, the
stream changes are purely on the interface level for the time being,
so there can be a slight performance hit when no cache is present. But
once the cache is built, everything should be fine, even faster than
it was before the changes. And isn't that the point of a cache?
2005-03-25 18:19:20 +00:00