[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-gettext] [PATCH 2/3] Document python-brace-for mat.

From: Daiki Ueno
Subject: [bug-gettext] [PATCH 2/3] Document python-brace-for mat.
Date: Fri, 14 Dec 2012 17:47:43 +0900

 gettext-tools/doc/gettext.texi | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/gettext-tools/doc/gettext.texi b/gettext-tools/doc/gettext.texi
index 9abfe1f..fe9fac8 100644
--- a/gettext-tools/doc/gettext.texi
+++ b/gettext-tools/doc/gettext.texi
@@ -1503,6 +1503,12 @@ Likewise for Shell, see @ref{sh-format}.
 @kwindex address@hidden flag}
 Likewise for Python, see @ref{python-format}.
address@hidden python-brace-format
address@hidden address@hidden flag}
address@hidden no-python-brace-format
address@hidden address@hidden flag}
+Likewise for Python brace, see @ref{python-format}.
 @item lisp-format
 @kwindex address@hidden flag}
 @itemx no-lisp-format
@@ -9035,6 +9041,11 @@ a variable reference is ignored.
 @node python-format, lisp-format, sh-format, Translators for other Languages
 @subsection Python Format Strings
+There are two kinds format strings in Python: those acceptable to the
+Python built-in @code{%} operator, labelled as @samp{python-format},
+and those acceptable to the @code{string.format} function,
+labelled as @samp{python-brace-format}.
 Python format strings are described in
 @w{Python Library reference} /
 @w{2. Built-in Types, Exceptions and Functions} /
@@ -9043,6 +9054,16 @@ Python format strings are described in
 @w{ String Formatting Operations}.
+Python brace format strings are described in
address@hidden Library reference} /
address@hidden Text Processing Services} /
address@hidden string — Common string operations} /
address@hidden String Formatting}.
+In brief, Python brace format uses placeholders put between
+braces (@address@hidden and @address@hidden).  The placeholder must have the 
+of simple identifiers.
 @node lisp-format, elisp-format, python-format, Translators for other Languages
 @subsection Lisp Format Strings

reply via email to

[Prev in Thread] Current Thread [Next in Thread]