GNU.Gettext.GettextResourceSet Class
public class GettextResourceSet: System.Resources.ResourceSet Base Types
System.Resources.ResourceSet
  GettextResourceSet
Library
GNU.Gettext
Summary
Each instance of this class encapsulates a single PO file.
This API of this class is not meant to be used directly; use
GettextResourceManager instead.
See Also
GNU_Gettext.htmlGNU.Gettext Namespace Members
GettextResourceSet Constructors
#GettextResourceSet() ConstructorGettextResourceSet() Constructor #GettextResourceSet(System.Resources.IResourceReader) ConstructorGettextResourceSet(System.Resources.IResourceReader) Constructor #GettextResourceSet(System.IO.Stream) ConstructorGettextResourceSet(System.IO.Stream) Constructor #GettextResourceSet(System.String) ConstructorGettextResourceSet(System.String) Constructor GettextResourceSet Methods
#GettextResourceSet.GetPluralString MethodGettextResourceSet.GetPluralString Method #GettextResourceSet.GetString(System.String) MethodGettextResourceSet.GetString(System.String) Method #GettextResourceSet.GetString(System.String, bool) MethodGettextResourceSet.GetString(System.String, bool) Method #GettextResourceSet.PluralEval MethodGettextResourceSet.PluralEval Method GettextResourceSet Properties
#GettextResourceSet.Keys PropertyGettextResourceSet.Keys Property GettextResourceSet() Constructor
protected GettextResourceSet(); Summary
Creates a new message catalog. When using this constructor, you
must override the 
ReadResources method, in order to initialize
the 
Table property. The message catalog will support plural
forms only if the 
ReadResources method installs values of type
String[] and if the PluralEval method is overridden.
See Also
GNU_Gettext_GettextResourceSet.htmlGNU.Gettext.GettextResourceSet Class , GNU_Gettext.htmlGNU.Gettext Namespace GettextResourceSet(System.Resources.IResourceReader) Constructor
public GettextResourceSet(System.Resources.IResourceReader reader); Summary
Creates a new message catalog, by reading the string/value pairs from
the given 
reader. The message catalog will support
plural forms only if the reader can produce values of type
String[] and if the PluralEval method is overridden.
See Also
GNU_Gettext_GettextResourceSet.htmlGNU.Gettext.GettextResourceSet Class , GNU_Gettext.htmlGNU.Gettext Namespace GettextResourceSet(System.IO.Stream) Constructor
public GettextResourceSet(System.IO.Stream stream); Summary
Creates a new message catalog, by reading the string/value pairs from
the given 
stream, which should have the format of
a 
.resources file. The message catalog will not support plural
forms.
See Also
GNU_Gettext_GettextResourceSet.htmlGNU.Gettext.GettextResourceSet Class , GNU_Gettext.htmlGNU.Gettext Namespace GettextResourceSet(System.String) Constructor
public GettextResourceSet(System.String fileName); Summary
Creates a new message catalog, by reading the string/value pairs from
the file with the given 
fileName. The file should
be in the format of a 
.resources file. The message catalog will
not support plural forms.
See Also
GNU_Gettext_GettextResourceSet.htmlGNU.Gettext.GettextResourceSet Class , GNU_Gettext.htmlGNU.Gettext Namespace GettextResourceSet.GetPluralString Method
public virtual System.String GetPluralString(System.String msgid, System.String msgidPlural, long n); Summary
Returns the translation of 
msgid and
msgidPlural, choosing the right plural form
depending on the number 
n.
Parameters
msgidthe key string to be translated, an ASCII
                    string
msgidPluralthe English plural of msgid,
                          an ASCII string
nthe number, should be >= 0Return Value
the translation, or 
null if none is found
See Also
GNU_Gettext_GettextResourceSet.htmlGNU.Gettext.GettextResourceSet Class , GNU_Gettext.htmlGNU.Gettext Namespace GettextResourceSet.GetString(System.String) Method
public override System.String GetString(System.String msgid); Summary
Returns the translation of 
msgid.
Parameters
msgidthe key string to be translated, an ASCII
                    string
Return Value
the translation of 
msgid, or null if
         none is found
See Also
GNU_Gettext_GettextResourceSet.htmlGNU.Gettext.GettextResourceSet Class , GNU_Gettext.htmlGNU.Gettext Namespace GettextResourceSet.GetString(System.String, bool) Method
public override System.String GetString(System.String msgid, bool ignoreCase); Summary
Returns the translation of 
msgid, with possibly
case-insensitive lookup.
Parameters
msgidthe key string to be translated, an ASCII
                    string
Return Value
the translation of 
msgid, or null if
         none is found
See Also
GNU_Gettext_GettextResourceSet.htmlGNU.Gettext.GettextResourceSet Class , GNU_Gettext.htmlGNU.Gettext Namespace GettextResourceSet.PluralEval Method
protected virtual long PluralEval(long n); Summary
Returns the index of the plural form to be chosen for a given number.
The default implementation is the Germanic plural formula:
zero for 
n == 1, one for n != 1.
See Also
GNU_Gettext_GettextResourceSet.htmlGNU.Gettext.GettextResourceSet Class , GNU_Gettext.htmlGNU.Gettext Namespace GettextResourceSet.Keys Property
public virtual System.Collections.ICollection Keys { get; } Summary
Returns the keys of this resource set, i.e. the strings for which
GetObject() can return a non-null value.
See Also
GNU_Gettext_GettextResourceSet.htmlGNU.Gettext.GettextResourceSet Class , GNU_Gettext.htmlGNU.Gettext Namespace 