summaryrefslogtreecommitdiffstats
path: root/gettext-tools/doc/gettext.texi
diff options
context:
space:
mode:
authorĽubomír Remák <lubomirr@lubomirr.eu>2012-02-01 17:31:56 +0100
committerDaiki Ueno <ueno@gnu.org>2013-04-11 16:23:55 +0900
commite43c5e2d3ccd5280722655cdb0c85579916e02f1 (patch)
tree51810b1878700dac039bdb50bbb40582b36c5df4 /gettext-tools/doc/gettext.texi
parent8a30a1d0da206144eb78fe2c6ecc75b9aee87314 (diff)
downloadexternal_gettext-e43c5e2d3ccd5280722655cdb0c85579916e02f1.zip
external_gettext-e43c5e2d3ccd5280722655cdb0c85579916e02f1.tar.gz
external_gettext-e43c5e2d3ccd5280722655cdb0c85579916e02f1.tar.bz2
Support for Lua.
Diffstat (limited to 'gettext-tools/doc/gettext.texi')
-rw-r--r--gettext-tools/doc/gettext.texi84
1 files changed, 81 insertions, 3 deletions
diff --git a/gettext-tools/doc/gettext.texi b/gettext-tools/doc/gettext.texi
index 1b45112..f479ed8 100644
--- a/gettext-tools/doc/gettext.texi
+++ b/gettext-tools/doc/gettext.texi
@@ -409,6 +409,7 @@ The Translator's View
* qt-plural-format:: Qt Plural Format Strings
* kde-format:: KDE Format Strings
* boost-format:: Boost Format Strings
+* lua-format:: Lua Format Strings
Individual Programming Languages
@@ -433,6 +434,7 @@ Individual Programming Languages
* PHP:: PHP Hypertext Preprocessor
* Pike:: Pike
* GCC-source:: GNU Compiler Collection sources
+* Lua:: Lua
sh - Shell Script
@@ -1623,6 +1625,12 @@ Likewise for KDE, see @ref{kde-format}.
@kwindex no-boost-format@r{ flag}
Likewise for Boost, see @ref{boost-format}.
+@item lua-format
+@kwindex lua-format@r{ flag}
+@itemx no-lua-format
+@kwindex no-lua-format@r{ flag}
+Likewise for Lua, see @ref{lua-format}.
+
@end table
@kwindex msgctxt
@@ -8965,6 +8973,7 @@ strings.
* qt-plural-format:: Qt Plural Format Strings
* kde-format:: KDE Format Strings
* boost-format:: Boost Format Strings
+* lua-format:: Lua Format Strings
@end menu
@node c-format, objc-format, Translators for other Languages, Translators for other Languages
@@ -9210,7 +9219,7 @@ A directive consists of a @samp{%} followed by a non-zero decimal number.
If a @samp{%n} occurs in a format strings, all of @samp{%1}, ..., @samp{%(n-1)}
must occur as well, except possibly one of them.
-@node boost-format, , kde-format, Translators for other Languages
+@node boost-format, lua-format, kde-format, Translators for other Languages
@subsection Boost Format Strings
Boost format strings are described in the documentation of the
@@ -9221,6 +9230,12 @@ such as @samp{%1$+5d}, or may be surrounded by vertical bars, such as
@samp{%|1$+5d|} or @samp{%|1$+5|}, or consists of just an argument number
between percent signs, such as @samp{%1%}.
+@node lua-format, , boost-format, Translators for other Languages
+@subsection Lua Format Strings
+
+Lua format strings are described in the Lua reference manual, section @w{String Manipulation},
+@uref{http://www.lua.org/manual/5.1/manual.html#pdf-string.format}.
+
@node Maintainers for other Languages, List of Programming Languages, Translators for other Languages, Programming Languages
@section The Maintainer's View
@@ -9324,6 +9339,7 @@ that language, and to combine the resulting files using @code{msgcat}.
* PHP:: PHP Hypertext Preprocessor
* Pike:: Pike
* GCC-source:: GNU Compiler Collection sources
+* Lua:: Lua
@end menu
@node C, sh, List of Programming Languages, List of Programming Languages
@@ -11735,7 +11751,7 @@ On platforms without gettext, the functions are not available.
---
@end table
-@node GCC-source, , Pike, List of Programming Languages
+@node GCC-source, Lua, Pike, List of Programming Languages
@subsection GNU Compiler Collection sources
@cindex GCC-source
@@ -11784,6 +11800,68 @@ Uses autoconf macros
yes
@end table
+@node Lua, , GCC-source, List of Programming Languages
+@subsection Lua
+
+@table @asis
+@item RPMs
+lua
+
+@item File extension
+@code{lua}
+
+@item String syntax
+@itemize @bullet
+
+@item @code{"abc"}
+
+@item @code{'abc'}
+
+@item @code{[[abc]]}
+
+@item @code{[=[abc]=]}
+
+@item @code{[==[abc]==]}
+
+@item ...
+
+@end itemize
+
+@item gettext shorthand
+@code{_("abc")}
+
+@item gettext/ngettext functions
+@code{gettext.gettext}, @code{gettext.dgettext}, @code{gettext.dcgettext},
+@code{gettext.ngettext}, @code{gettext.dngettext}, @code{gettext.dcngettext}
+
+@item textdomain
+@code{textdomain} function
+
+@item bindtextdomain
+@code{bindtextdomain} function
+
+@item setlocale
+automatic
+
+@item Prerequisite
+@code{require 'gettext'} or running lua interpreter with @code{-l gettext} option
+
+@item Use or emulate GNU gettext
+use
+
+@item Extractor
+@code{xgettext}
+
+@item Formatting with positions
+---
+
+@item Portability
+On platforms without gettext, the functions are not available.
+
+@item po-mode marking
+---
+@end table
+
@c This is the template for new languages.
@ignore
@@ -11863,7 +11941,7 @@ fpk
@code{xgettext}, @code{rstconv}
@end table
-@node Glade, , RST, List of Data Formats
+@node Glade, , RST, List of Data Formats
@subsection Glade - GNOME user interface description
@table @asis