summaryrefslogtreecommitdiffstats
path: root/gettext-tools/doc
diff options
context:
space:
mode:
Diffstat (limited to 'gettext-tools/doc')
-rw-r--r--gettext-tools/doc/ChangeLog9
-rw-r--r--gettext-tools/doc/gettext.texi84
-rw-r--r--gettext-tools/doc/xgettext.texi13
3 files changed, 99 insertions, 7 deletions
diff --git a/gettext-tools/doc/ChangeLog b/gettext-tools/doc/ChangeLog
index ed7e356..5b597d6 100644
--- a/gettext-tools/doc/ChangeLog
+++ b/gettext-tools/doc/ChangeLog
@@ -1,3 +1,12 @@
+2013-04-11 Ľubomír Remák <lubomirr@lubomirr.eu>
+
+ Support for Lua.
+ * gettext.texi (PO Files): Mention lua-format.
+ (lua-format): New subsection.
+ (Lua): New subsection.
+ * xgettext.texi: Document Lua source language. Document that it is
+ applicable to --flag.
+
2013-04-02 Daiki Ueno <ueno@gnu.org>
* gettext.texi (PO Files): Use '@pxref' instead of '@xref'.
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
diff --git a/gettext-tools/doc/xgettext.texi b/gettext-tools/doc/xgettext.texi
index 4c59f4c..b6dd0dc 100644
--- a/gettext-tools/doc/xgettext.texi
+++ b/gettext-tools/doc/xgettext.texi
@@ -73,7 +73,7 @@ are @code{C}, @code{C++}, @code{ObjectiveC}, @code{PO}, @code{Shell},
@code{Python}, @code{Lisp}, @code{EmacsLisp}, @code{librep}, @code{Scheme},
@code{Smalltalk}, @code{Java}, @code{JavaProperties}, @code{C#}, @code{awk},
@code{YCP}, @code{Tcl}, @code{Perl}, @code{PHP}, @code{GCC-source},
-@code{NXStringTable}, @code{RST}, @code{Glade}.
+@code{NXStringTable}, @code{RST}, @code{Glade}, @code{Lua}.
@item -C
@itemx --c++
@@ -137,7 +137,7 @@ Extract all strings.
This option has an effect with most languages, namely C, C++, ObjectiveC,
Shell, Python, Lisp, EmacsLisp, librep, Java, C#, awk, Tcl, Perl, PHP,
-GCC-source, Glade.
+GCC-source, Glade, Lua.
@item -k[@var{keywordspec}]
@itemx --keyword[=@var{keywordspec}]
@@ -180,7 +180,7 @@ escaped.
This option has an effect with most languages, namely C, C++, ObjectiveC,
Shell, Python, Lisp, EmacsLisp, librep, Java, C#, awk, Tcl, Perl, PHP,
-GCC-source, Glade.
+GCC-source, Glade, Lua.
The default keyword specifications, which are always looked for if not
explicitly disabled, are language dependent. They are:
@@ -245,6 +245,11 @@ For PHP: @code{_}, @code{gettext}, @code{dgettext:2}, @code{dcgettext:2},
@item
For Glade 1: @code{label}, @code{title}, @code{text}, @code{format},
@code{copyright}, @code{comments}, @code{preview_text}, @code{tooltip}.
+
+@item
+For Lua: @code{_}, @code{gettext.gettext}, @code{gettext.dgettext:2},
+@code{gettext.dcgettext:2}, @code{gettext.ngettext:1,2},
+@code{gettext.dngettext:2,3}, @code{gettext.dcngettext:2,3}.
@end itemize
To disable the default keyword specifications, the option @samp{-k} or
@@ -297,7 +302,7 @@ lead to a crash at runtime.
@*
This option has an effect with most languages, namely C, C++, ObjectiveC,
Shell, Python, Lisp, EmacsLisp, librep, Scheme, Java, C#, awk, YCP, Tcl, Perl, PHP,
-GCC-source.
+GCC-source, Lua.
@item -T
@itemx --trigraphs