GNU_Gettext_GettextResourceSet.html
GNU.Gettext.GettextResourceSet Class GNU.Gettext.GettextResourceSet Class
public class GettextResourceSet: System.Resources.ResourceSetBase Types
System.Resources.ResourceSet
GettextResourceSet
Library
GNU.GettextSummary
Each instance of this class encapsulates a single PO file.This API of this class is not meant to be used directly; use
GettextResourceManagerinstead.
See Also
GNU.Gettext NamespaceMembers
GettextResourceSet Constructors
GettextResourceSet() Constructor
GettextResourceSet(System.Resources.IResourceReader) Constructor
GettextResourceSet(System.IO.Stream) Constructor
GettextResourceSet(System.String) Constructor
GettextResourceSet Methods
GettextResourceSet.GetPluralString Method
GettextResourceSet.GetString(System.String) Method
GettextResourceSet.GetString(System.String, bool) Method
GettextResourceSet.PluralEval Method
GettextResourceSet Properties
GettextResourceSet() Constructor
protected GettextResourceSet();Summary
Creates a new message catalog. When using this constructor, you must override theReadResourcesmethod, in order to initialize theTableproperty. The message catalog will support plural forms only if theReadResourcesmethod installs values of typeString[]and if thePluralEvalmethod is overridden.See Also
GNU.Gettext.GettextResourceSet Class, GNU.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 typeString[]and if thePluralEvalmethod is overridden.See Also
GNU.Gettext.GettextResourceSet Class, GNU.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.resourcesfile. The message catalog will not support plural forms.See Also
GNU.Gettext.GettextResourceSet Class, GNU.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.resourcesfile. The message catalog will not support plural forms.See Also
GNU.Gettext.GettextResourceSet Class, GNU.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
- msgid
- the key string to be translated, an ASCII string
- msgidPlural
- the English plural of msgid, an ASCII string
- n
- the number, should be >= 0
Return Value
the translation, ornullif none is foundSee Also
GNU.Gettext.GettextResourceSet Class, GNU.Gettext Namespace
GettextResourceSet.GetString(System.String) Method
public override System.String GetString(System.String msgid);Summary
Returns the translation of msgid.Parameters
- msgid
- the key string to be translated, an ASCII string
Return Value
the translation of msgid, ornullif none is foundSee Also
GNU.Gettext.GettextResourceSet Class, GNU.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
- msgid
- the key string to be translated, an ASCII string
Return Value
the translation of msgid, ornullif none is foundSee Also
GNU.Gettext.GettextResourceSet Class, GNU.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 Class, GNU.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 whichGetObject()can return a non-null value.See Also
GNU.Gettext.GettextResourceSet Class, GNU.Gettext Namespace
SliTaz Cooker ยท i486