public class GettextResourceManager: System.Resources.ResourceManager
System.Resources.ResourceManager
GettextResourceManager
GNU.Gettext
Each instance of this class can be used to lookup translations for a
given resource name. For each CultureInfo
, it performs the lookup
in several assemblies, from most specific over territory-neutral to
language-neutral.
GNU.Gettext Namespace
GettextResourceManager Constructors
GettextResourceManager(System.String) Constructor
GettextResourceManager(System.String, System.Reflection.Assembly) Constructor
GettextResourceManager Methods
GettextResourceManager.GetPluralString(System.String, System.String, long, System.Globalization.CultureInfo) Method
GettextResourceManager.GetPluralString(System.String, System.String, long) Method
GettextResourceManager.GetString(System.String, System.Globalization.CultureInfo) Method
GettextResourceManager.GetString(System.String) Method
public GettextResourceManager(System.String baseName);
Constructor.
- baseName
- the resource name, also the assembly base name
GNU.Gettext.GettextResourceManager Class, GNU.Gettext Namespace
public GettextResourceManager(System.String baseName, System.Reflection.Assembly assembly);
Constructor.
- baseName
- the resource name, also the assembly base name
GNU.Gettext.GettextResourceManager Class, GNU.Gettext Namespace
public virtual System.String GetPluralString(System.String msgid, System.String msgidPlural, long n, System.Globalization.CultureInfo culture);
Returns the translation of msgid and msgidPlural in a given culture, choosing the right plural form depending on the number n.
- 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
the translation, or msgid or msgidPlural if none is found
GNU.Gettext.GettextResourceManager Class, GNU.Gettext Namespace
public virtual System.String GetPluralString(System.String msgid, System.String msgidPlural, long n);
Returns the translation of msgid and msgidPlural in the current culture, choosing the right plural form depending on the number n.
- 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
the translation, or msgid or msgidPlural if none is found
GNU.Gettext.GettextResourceManager Class, GNU.Gettext Namespace
public override System.String GetString(System.String msgid, System.Globalization.CultureInfo culture);
Returns the translation of msgid in a given culture.
- msgid
- the key string to be translated, an ASCII string
the translation of msgid, or msgid if none is found
GNU.Gettext.GettextResourceManager Class, GNU.Gettext Namespace
public override System.String GetString(System.String msgid);
Returns the translation of msgid in the current culture.
- msgid
- the key string to be translated, an ASCII string
the translation of msgid, or msgid if none is found
GNU.Gettext.GettextResourceManager Class, GNU.Gettext Namespace