Alexander van Gessel
faf744aff3
Allow wesnoth.textdomain to be called with brackets
2012-02-27 13:29:43 +01:00
Fabian Müller
ab8469354c
Implemented the label placement editor tool.
2012-02-27 07:09:06 +00:00
Alexander van Gessel
dcea6b06d4
Use a config writer rather than debug output to save maps
2012-02-26 17:01:23 +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
Oleg Tsarev
92d3f47a04
Revert back incorrect changes introduced by 4 previous revisions
2012-02-26 01:49:16 +00:00
Oleg Tsarev
5f9be8c8ad
Now I call set_modified after rebuild info in save_index.
...
It prevents the reload summary from save file
2012-02-26 00:57:49 +00:00
Oleg Tsarev
c348e4a264
Fixed error from previous commit
2012-02-26 00:42:10 +00:00
Oleg Tsarev
8e0e250463
Fixed error from previous commit
2012-02-26 00:38:44 +00:00
Oleg Tsarev
137ea6a9ef
Fixed the update of save_index.
...
Now I first wait while file would be written, and after that rebuild
index from saved file
2012-02-26 00:36:21 +00:00
Ignacio R. Morelle
cd28fbfaa0
addon/info: New display_type() class method
...
Used to be <anonymous>::get_translatable_addon_type() in addon/manager_ui.cpp.
2012-02-26 00:28:29 +00:00
Oleg Tsarev
24b4cfa4e1
Save changes in save_index after remove the information
2012-02-26 00:01:38 +00:00
Steven Panek
ab12593f82
Ran umcpropfix.
2012-02-25 23:29:46 +00:00
Ignacio R. Morelle
a535f59fda
addon/info: New display_title() class method
...
Used to be <anonymous>::auto_addon_title() in addon/manager_ui.cpp.
2012-02-25 22:05:17 +00:00
Ignacio R. Morelle
1c80791474
addon/info: Move make_addon_title() from addon/manager.cpp
2012-02-25 22:05:01 +00:00
Anonymissimus
d1360bff02
modify_unit: re-add part of the "kill units" behavior...
...
...which I removed in 2012-01-22T22:35:44Z!anonymissimus@arcor.de
(fix for bug #19498 )
2012-02-25 20:49:43 +00:00
Anonymissimus
db9c2d6f13
strip some trailing whitespace
2012-02-25 20:49:04 +00:00
Ignacio R. Morelle
40af2f47d2
addon/validation: Simplify addon_name_legal()
...
Instead of using generic STL algorithms, use std::basic_string<...>
member methods that are presumably better optimized to work with
strings. In particular, use find_first_of() instead of repeated calls to
the find algorithm.
Also get rid of a redundant and suboptimal check for an empty string.
2012-02-25 19:45:38 +00:00
Steven Panek
acbfa7d79b
Extended 2012-02-22T22:21:00Z!alarantalara@gmail.com to the regular Wolf.
2012-02-25 19:08:07 +00:00
Anonymissimus
8a1af406f3
VC9 projectfile update
2012-02-25 18:01:21 +00:00
Anonymissimus
8457d8b8ef
change "Trying to recall unit failed!" error to emit useful information
2012-02-25 18:01:06 +00:00
Anonymissimus
e6d88f55d9
let a warning have more information
2012-02-25 18:00:29 +00:00
Oleg Tsarev
e96c623eea
Fixed bug #19495 : stderr spam about missing savefiles
2012-02-25 17:56:57 +00:00
Ignacio R. Morelle
0d692f13e9
addon/validation: Add unit test suite
...
Only addon_name_legal() is covered right now.
2012-02-25 07:41:12 +00:00
Ignacio R. Morelle
f3f89c5e8f
addon/mg: Get rid of a lot of duplicate logic in uninstall_local_addons()
...
This removes prepare_addons_list_for_display(), which is just part of a
very round-about duplicate callpath that is equivalent to
installed_addons().
2012-02-25 07:08:10 +00:00
Ignacio R. Morelle
c49045378a
gui2/taddon_uninstall_list: Use make_addon_title()...
...
...instead of an identical <anonymous>::make_addon_name() function
2012-02-25 07:07:43 +00:00
Ignacio R. Morelle
b1105366d5
ai/composite: Use normal #include instead of system #include
2012-02-25 05:40:07 +00:00
Ignacio R. Morelle
9543d0a183
ai/lua: Use normal #include instead of system #include
2012-02-25 05:39:53 +00:00
Ignacio R. Morelle
c5b39e4feb
gui2/tmp_change_control: Use normal #include instead of system #include
2012-02-25 05:39:36 +00:00
Ignacio R. Morelle
8722a00135
addon/validation: Fix regression where type=other is not recognized anymore
2012-02-25 05:21:38 +00:00
Ignacio R. Morelle
3613a09872
addon/mg: Move addons_list generation logic to addon/info
2012-02-25 04:25:30 +00:00
Oleg Tsarev
f90bf86bca
Now deleted game removed from index too
2012-02-25 04:14:53 +00:00
Oleg Tsarev
deaf1c0c3c
Fixed bug #19495 : stderr spam about missing savefiles
2012-02-25 04:14:41 +00:00
Fabian Müller
745cdd55a8
Classes for handling map label placement in the editor.
2012-02-25 03:00:08 +00:00
Ignacio R. Morelle
ed956d99b2
addon/mg: Remove orphaned typedef
2012-02-25 02:51:47 +00:00
Ignacio R. Morelle
7a1863124a
addon/mg: Remove exception type orphaned by 2012-02-25T02:06:18Z!shadowm@wesnoth.org
2012-02-25 02:51:32 +00:00
Ignacio R. Morelle
7b16b67e80
addon: Rename get_addon_info() and set_addon_info()...
...
...to better reflect their function
They have been renamed to get_addon_pbl_info() and set_addon_pbl_info(),
respectively. This also makes sense given the existing have_addon_pbl_info()
function.
2012-02-25 02:45:35 +00:00
Ignacio R. Morelle
21f5c99e55
addon/client: Prettify add-on ids for status display...
...
...when .title is missing in the .pbl
2012-02-25 02:41:59 +00:00
Ignacio R. Morelle
86eb697cd9
addon/client: Use the standard parser.cpp write() function...
...
...to generate _info.cfg
Through addon_info::write() we can get rid of the previous, annoying
variable interpolation hack and generalize more logic. Instead of using
the parser.cpp write() function on a file stream, we use a string stream
whose contents are inserted into the add-on archive before unpacking, as
usual.
2012-02-25 02:25:54 +00:00
Ignacio R. Morelle
a9b1e42e31
addon/info: Implement write() method, to serialize data back to WML
2012-02-25 02:25:39 +00:00
Ignacio R. Morelle
ce938dd0dc
addon/mg: Remove GUI1 callpath left-over in uninstall_local_addons()
2012-02-25 02:06:51 +00:00
Ignacio R. Morelle
ad75fae11a
addon/mg: Minor refactoring on manage_addons() and uninstall_local_addons()
...
* Both functions and their support elements are now in manager_ui.cpp
* We no longer use an exception to signal the need to refresh the WML
cache back to the game controller
* We no longer pass a pseudo-optional pointer to bool around
2012-02-25 02:06:18 +00:00
Steven Panek
adb3e1ad49
Updated the Ukrainian translation.
2012-02-24 22:44:27 +00:00
Nils Kneuper
c59c0f2a2b
updated Polish translation
2012-02-24 20:59:59 +00:00
Ignacio R. Morelle
b2795ea838
addon/info: Documentation fix
2012-02-24 18:19:05 +00:00