Next: Pascal - Free Pascal Compiler, Previous: GNU awk, Up: Individual Programming Languages [Contents][Index]
lua
lua, lua-gettext
You need to install the lua-gettext
package from
https://gitlab.com/sukhichev/lua-gettext/blob/master/README.us.md.
Debian and Ubuntu packages of it are available. Download the
appropriate one, and install it through
‘sudo dpkg -i lua-gettext_0.0_amd64.deb’.
lua
"abc"
'abc'
[[abc]]
[=[abc]=]
[==[abc]==]
_("abc")
gettext.gettext
, gettext.dgettext
, gettext.dcgettext
,
gettext.ngettext
, gettext.dngettext
, gettext.dcngettext
textdomain
function
bindtextdomain
function
automatic
require 'gettext'
or running lua interpreter with -l gettext
option
use
xgettext
—
On platforms without gettext, the functions are not available.
—