protected virtual System.Resources.ResourceSet InternalCreateResourceSet(Stream resourcePath) { object[] args = new object[] { resourcePath }; GettextResourceSet rs = new GettextResourceSet(resourcePath); return((System.Resources.ResourceSet)rs); }
public virtual String GetParticularPluralString(String msgctxt, String msgid, String msgidPlural, long n, CultureInfo culture) { GettextResourceSet rs = InternalGetResourceSet(culture, true, true) as GettextResourceSet; { String translation = rs.GetPluralString(msgid, msgidPlural, n); if (translation != null) { return(translation); } } return(n == 1 ? msgid : msgidPlural); }
public virtual String GetParticularString(String msgctxt, String msgid, CultureInfo culture) { GettextResourceSet rs = InternalGetResourceSet(culture, true, true) as GettextResourceSet; { String translation = rs.GetString(msgid); if (translation != null) { return(translation); } } return(msgid); }
public override String GetString(String msgid, CultureInfo culture) { GettextResourceSet rs = InternalGetResourceSet(culture, true, true) as GettextResourceSet; { String translation = rs.GetString(msgid); if (translation != null) { return(translation); } } return(msgid); }