![]() |
Wespo
2.2
An unofficial tool to create a .po file for your wesnoth add-on
|
LuaReader "parse" a single .lua file. More...
#include <luaReader.h>
Public Member Functions | |
LuaReader (WesPo *wp_x, QString &srcfile_) | |
LuaReader constructor. Initialized with WesPo pointer and the file name to parse. More... | |
void | loadLua () |
function invoked by WesPo. It is the "main" function of LuaReader | |
LuaReader "parse" a single .lua file.
LuaReader doesn't actually parse a .lua file. LuaReader is a tiny version of WmlReader. Unlike WmlReader, LuaReader parse only "#textdomain" and "# wespo" command lines. LuaReader simply collects translatable strings found in .lua files and manages textdomains and wespo commands... no more. This is why LuaReader does the "parsing" in a single step only. More details on wespo parsing in general, can be found in WmlReader class
LuaReader::LuaReader | ( | WesPo * | wp_x, |
QString & | srcfile_ | ||
) |