]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Support for KDE format strings.
authorBruno Haible <bruno@clisp.org>
Mon, 1 Oct 2007 00:41:02 +0000 (00:41 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:15:06 +0000 (12:15 +0200)
gettext-tools/doc/ChangeLog
gettext-tools/doc/gettext.texi
gettext-tools/doc/xgettext.texi

index 81867b0ac16648848f7bc139fc376a0df73ef5e2..e389838fd28155ca3d5013456147336f7d826dc9 100644 (file)
@@ -1,3 +1,10 @@
+2007-09-30  Bruno Haible  <bruno@clisp.org>
+
+       * gettext.texi (PO Files): Mention kde-format.
+       (kde-format): New subsection.
+       (qt-format): Update for Qt 4.
+       * xgettext.texi: Document --kde option.
+
 2007-09-09  Bruno Haible  <bruno@clisp.org>
 
        * gettext.texi (Compendium): Upgrade node from a subsection to a
index 4546e8abf6821d884b3817d048abb76a23ed1263..4736739d9d3827944f1eb2a6296532abab48f7c9 100644 (file)
@@ -403,6 +403,7 @@ The Translator's View
 * php-format::                  PHP Format Strings
 * gcc-internal-format::         GCC internal Format Strings
 * qt-format::                   Qt Format Strings
+* kde-format::                  KDE Format Strings
 * boost-format::                Boost Format Strings
 
 Individual Programming Languages
@@ -1594,6 +1595,12 @@ Likewise for the GCC sources, see @ref{gcc-internal-format}.
 @kwindex no-qt-format@r{ flag}
 Likewise for Qt, see @ref{qt-format}.
 
+@item kde-format
+@kwindex kde-format@r{ flag}
+@itemx no-kde-format
+@kwindex no-kde-format@r{ flag}
+Likewise for KDE, see @ref{kde-format}.
+
 @item boost-format
 @kwindex boost-format@r{ flag}
 @itemx no-boost-format
@@ -8596,6 +8603,7 @@ strings.
 * php-format::                  PHP Format Strings
 * gcc-internal-format::         GCC internal Format Strings
 * qt-format::                   Qt Format Strings
+* kde-format::                  KDE Format Strings
 * boost-format::                Boost Format Strings
 @end menu
 
@@ -8805,15 +8813,23 @@ denotes a programming language, @samp{O} denotes a binary operator,
 @samp{P} denotes a function parameter, @samp{Q} denotes an assignment
 operator, @samp{V} denotes a const/volatile qualifier.
 
-@node qt-format, boost-format, gcc-internal-format, Translators for other Languages
+@node qt-format, kde-format, gcc-internal-format, Translators for other Languages
 @subsection Qt Format Strings
 
 Qt format strings are described in the documentation of the QString class
-@uref{file:/usr/lib/qt-3.0.5/doc/html/qstring.html}.
+@uref{file:/usr/lib/qt-4.3.0/doc/html/qstring.html}.
 In summary, a directive consists of a @samp{%} followed by a digit. The same
 directive cannot occur more than once in a format string.
 
-@node boost-format,  , qt-format, Translators for other Languages
+@node kde-format, boost-format, qt-format, Translators for other Languages
+@subsection KDE Format Strings
+
+KDE 4 format strings are defined as follows:
+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
 @subsection Boost Format Strings
 
 Boost format strings are described in the documentation of the
index 4ed5fba286562b89b0aab56031201a78c22316d8..b9e9cc1cc80986e69fea52ffbca2ce992aa46bfa 100644 (file)
@@ -314,6 +314,13 @@ Recognize Qt format strings.
 @*
 This option has an effect only with the language C++.
 
+@item --kde
+@opindex --kde@r{, @code{xgettext} option}
+@cindex KDE format strings
+Recognize KDE 4 format strings.
+@*
+This option has an effect only with the language C++.
+
 @item --boost
 @opindex --boost@r{, @code{xgettext} option}
 @cindex Boost format strings