]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
OCaml: Tweak documentation.
authorBruno Haible <bruno@clisp.org>
Sat, 11 Oct 2025 22:09:13 +0000 (00:09 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 11 Oct 2025 22:12:58 +0000 (00:12 +0200)
* gettext-tools/doc/lang-ocaml.texi: Add note regarding format strings.

gettext-tools/doc/lang-ocaml.texi

index 905f8ff0e69971998fb8af0c49d7b1b785a83729..b5d1c94c7624e7596976f2fe81e79b06cb46f6d7 100644 (file)
@@ -53,7 +53,11 @@ as second parameter of @code{Gettext.Program})
 @code{xgettext}
 
 @item Formatting with positions
-@code{Printf.fprintf "%2$d %1$d"}
+In the source code: @code{Printf.fprintf "%d %d"}
+@*In the msgid: @code{"%d %d"}
+@*In the msgstr: @code{"%2$d %1$d"}
+@*Note: This does not work yet; it depends on the completion of
+@uref{https://github.com/gildor478/ocaml-gettext/issues/39}.
 
 @item Portability
 fully portable