]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Implement msgctxt for C# ResourceManagers.
authorBruno Haible <bruno@clisp.org>
Sun, 2 Sep 2007 09:55:09 +0000 (09:55 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:15:03 +0000 (12:15 +0200)
gettext-tools/doc/ChangeLog
gettext-tools/doc/gettext.texi
gettext-tools/doc/xgettext.texi

index f85e74af8e96cec6db014d9e75e363dec4f7cfa1..82d6e0b73af513053abdaeee4a0fd238148e6560 100644 (file)
@@ -1,3 +1,10 @@
+2007-09-02  Bruno Haible  <bruno@clisp.org>
+
+       Implement msgctxt for C# ResourceManagers.
+       * gettext.texi (Java): Mention GetParticularString and
+       GetParticularPluralString.
+       * xgettext.texi (--keyword): Update defaults for C#.
+
 2007-09-01  Bruno Haible  <bruno@clisp.org>
 
        Implement msgctxt for Java ResourceBundles.
index 7b3c63c02ef56adfee90e7aa32a76724ca0b8005..f4e66e4729c49f773f8d668fa92568820034495d 100644 (file)
@@ -9848,6 +9848,8 @@ _("abc")
 @item gettext/ngettext functions
 @code{GettextResourceManager.GetString},
 @code{GettextResourceManager.GetPluralString}
+@code{GettextResourceManager.GetParticularString}
+@code{GettextResourceManager.GetParticularPluralString}
 
 @item textdomain
 @code{new GettextResourceManager(domain)}
@@ -9949,6 +9951,12 @@ Plural handling: A message catalog in @code{.dll} format supports the plural
 handling function @code{GetPluralString}.  Whereas @code{.resources} files can
 only contain data and only support lookups that depend on a single string.
 
+@item
+Context handling: A message catalog in @code{.dll} format supports the
+query-with-context functions @code{GetParticularString} and
+@code{GetParticularPluralString}.  Whereas @code{.resources} files can
+only contain data and only support lookups that depend on a single string.
+
 @item
 The @code{GettextResourceManager} that loads the message catalogs in
 @code{.dll} format also provides for inheritance on a per-message basis.
@@ -10008,6 +10016,15 @@ a translation is missing, the @var{msgid} argument is returned unchanged.
 The @code{GetPluralString} function returns a string translation with plural
 handling, like the @code{ngettext} function in C.
 
+The @code{GetParticularString} function returns a string's translation,
+specific to a particular context, like the @code{pgettext} function in C.
+Note that when a translation is missing, the @var{msgid} argument is returned
+unchanged.
+
+The @code{GetParticularPluralString} function returns a string translation,
+specific to a particular context, with plural handling, like the
+@code{npgettext} function in C.
+
 @cindex @code{libintl} for C#
 To use this API, one needs the @code{GNU.Gettext.dll} file which is part of
 the GNU gettext package and distributed under the LGPL.
index 2be773b5636c418011c9226a972633c520aae3a2..4ed5fba286562b89b0aab56031201a78c22316d8 100644 (file)
@@ -223,7 +223,8 @@ For Java: @code{GettextResource.gettext:2},
 @code{pgettext:1c,2}, @code{npgettext:1c,2,3}, @code{getString}.
 
 @item
-For C#: @code{GetString}, @code{GetPluralString:1,2}.
+For C#: @code{GetString}, @code{GetPluralString:1,2},
+@code{GetParticularString:1c,2}, @code{GetParticularPluralString:1c,2,3}.
 
 @item
 For awk: @code{dcgettext}, @code{dcngettext:1,2}.