URL:
<http://gna.org/bugs/?16309>
Summary: add support for adding textdomain tags to .lua
files in change_textdomain
Project: Battle for Wesnoth
Submitted by: ivanovic
Submitted on: Dienstag 27.07.2010 um 11:17
Category: Feature Request
Severity: 2 - Minor
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: trunk
Operating System: any
_______________________________________________________
Details:
Currently the tool utils/change_textdomain does allow to add a textdomain
declaration to WML files (aka files ending with .cfg). This happens when
running "./utils/change_textdomain -t". Some time ago lua support was added
and it is possible to add translations to lua files. To have those strings
extracted by the utilities a textdomain marker that is recognized by
wmlxgettext has to be added.
The request:
Add the required textdomain marker to lua files when running
"change_textdomain -t".
How to find the files:
all files in data/ that end with .lua.
What has to be searched for / added?
Since lua has some different format for comments the default textdomain
string has to be "--! #textdomain wesnoth" instead of "#textdomain wesnoth"
(of course without quotes). The search should basically be identical to the
one done for .cfg files, the final entry just is extended by a --! to comment
the line out.
Sample of existing declaration that differs from "--! #textdomain wesnoth":
It is also possible to have a different textdomain, just like it is done for
WML files. A sample of this is eg the file
data/campaigns/Legend_of_Wesmere/lua/label.lua in trunk.
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?16309>
_______________________________________________
Nachricht geschickt von/durch Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs