public string GetPluralString(int count, PluralizationRule rule) { #if SAGO_DEBUG if (LocalizeToKeys) { return(Key); } #endif if (Values != null && rule != null) { int index = rule(count); if (index >= 0 && index < Values.Length && !string.IsNullOrEmpty(Values[index])) { return(Values[index]); } } return(null); }
public static void SetPluralizationRule(Language language, PluralizationRule rule) { // TODO: Not implemented throw new System.InvalidOperationException("Not implemented"); }