Wespo  2.2
An unofficial tool to create a .po file for your wesnoth add-on
 All Classes Functions Variables
Public Member Functions | List of all members
LuaReader Class Reference

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
 

Detailed Description

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

See Also
WmlReader

Constructor & Destructor Documentation

LuaReader::LuaReader ( WesPo wp_x,
QString &  srcfile_ 
)

LuaReader constructor. Initialized with WesPo pointer and the file name to parse.

LuaReader constructor initialise also internal fileref (it is how the filename will be shown if skele.po ex: add-ons/ADDON_NAME/file.lua).

Parameters
wp_xPointer of WesPo
srcfile_lua filaname (with complete path)

The documentation for this class was generated from the following files: