]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Document pgettext and npgettext for Java.
authorBruno Haible <bruno@clisp.org>
Sat, 1 Sep 2007 21:40:13 +0000 (21:40 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:15:02 +0000 (12:15 +0200)
gettext-tools/doc/ChangeLog
gettext-tools/doc/gettext.texi
gettext-tools/doc/xgettext.texi

index 7877fb88639e51f2ebbf5b0bdfc1ee38a9da289a..f85e74af8e96cec6db014d9e75e363dec4f7cfa1 100644 (file)
@@ -1,3 +1,10 @@
+2007-09-01  Bruno Haible  <bruno@clisp.org>
+
+       Implement msgctxt for Java ResourceBundles.
+       * gettext.texi (Java): Mention pgettext and npgettext.
+       * xgettext.texi (--keyword): Update defaults for Java.
+       Suggested by Felix Berger.
+
 2007-08-18  Bruno Haible  <bruno@clisp.org>
 
        * gettext.texi (Why): Don't oppose commercial software to free
index c5e629a980beca4ef5a01dbce7e76f597d729467..7b3c63c02ef56adfee90e7aa32a76724ca0b8005 100644 (file)
@@ -9651,7 +9651,8 @@ java, java2
 _("abc")
 
 @item gettext/ngettext functions
-@code{GettextResource.gettext}, @code{GettextResource.ngettext}
+@code{GettextResource.gettext}, @code{GettextResource.ngettext},
+@code{GettextResource.pgettext}, @code{GettextResource.npgettext}
 
 @item textdomain
 ---, use @code{ResourceBundle.getResource} instead
@@ -9729,16 +9730,15 @@ a PO file with plural handling.
 @item
 The @code{gnu.gettext.GettextResource} API.
 
-Reference documentation in Javadoc 1.1 style format
-is in the @uref{javadoc1/tree.html,javadoc1 directory} and
-in Javadoc 2 style format
-in the @uref{javadoc2/index.html,javadoc2 directory}.
+Reference documentation in Javadoc 1.1 style format is in the
+@uref{javadoc2/index.html,javadoc2 directory}.
 
 Its @code{gettext} function returns a string translation.  Note that when
 a translation is missing, the @var{msgid} argument is returned unchanged.
 
 This has the advantage of having the @code{ngettext} function for plural
-handling.
+handling and the @code{pgettext} and @code{npgettext} for strings constraint
+to a particular context.
 
 @cindex @code{libintl} for Java
 To use this API, one needs the @code{libintl.jar} file which is part of
index d519f13657bf423f61e8f7053d4a3457384eff10..2be773b5636c418011c9226a972633c520aae3a2 100644 (file)
@@ -218,8 +218,9 @@ For Scheme: @code{gettext}, @code{ngettext:1,2}, @code{gettext-noop}.
 
 @item
 For Java: @code{GettextResource.gettext:2},
-@code{GettextResource.ngettext:2,3}, @code{gettext}, @code{ngettext:1,2},
-@code{getString}.
+@code{GettextResource.ngettext:2,3}, @code{GettextResource.pgettext:2c,3},
+@code{GettextResource.npgettext:2c,3,4}, @code{gettext}, @code{ngettext:1,2},
+@code{pgettext:1c,2}, @code{npgettext:1c,2,3}, @code{getString}.
 
 @item
 For C#: @code{GetString}, @code{GetPluralString:1,2}.