URL:
<http://gna.org/bugs/?9498>
Summary: Tool to automatically add a description= field to
attacks
Project: Battle for Wesnoth
Submitted by: ivanovic
Submitted on: Freitag 13.07.2007 um 15:59
Category: Feature Request
Severity: 3 - Normal
Priority: 3 - Low
Item Group: None of the others
Status: None
Privacy: Public
Assigned to: esr
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: any
Operating System: any
_______________________________________________________
Details:
It would be nice to have a script that is able to add a special string to
attacks to allow translations of the weapons. Here is an example of what is
to be done:
Atm a unit might look like this:
(some general stuff that does not matter)
[attack]
(some content might be written before the name tag though the normal case
is that there is nothing)
name=my weapon
(....)
[/attack]
Every case of these block should be transfered to look exactly like this:
[attack]
(some content might be written before the name tag though the normal case
is that there is nothing)
name=my weapon
description=_ "my weapon"
(....)
[/attack]
Short and comprehensive:
Add a line with description=_ "$i" below the line with name=$i in every
[attack] (...) [/attack] block in a given file.
Be aware that exactly the string behind name= should be copied into the " "
behind the new line with description=_ " ". In a given file there might be
several [attack] [/attack] blocks, this should happen in all of these
blocks.
ATM there are five attack-tags inside the folder data/core/units/*/ that
already behave the "correct" way (the one all stuff should be transformed
into):
grep '\ description' */*.cfg
humans/Outlaw_Ruffian.cfg: description= _ "club"
monsters/Fire_Dragon.cfg: description= _"bite"
monsters/Fire_Dragon.cfg: description= _"tail"
monsters/Fire_Dragon.cfg: description= _"fire breath"
monsters/Skeletal_Dragon.cfg: description= _"claws"
Best for this script would be if the following conditions could be met:
1) giving the script a file/folder that is scanned (no autoscanning on
everything, just folderwise, no recursive stuff needed)
2) automatic detection if the ' description=' tag is already existant, if it
is, do nothing (for the beginning it would be okay to not have this since the
5 existing cases can be modified to not include it, for later on it would be
nice to have this script for "auto conversion" if needed)
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?9498>
_______________________________________________
Nachricht geschickt von/durch Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs