private static string Ru(int v, string s) { if (s == string.Empty) return string.Empty; if (s[0] == '!') { return v == 1 ? s.Substring(1) : PluralizingDictionary.RuAlt(s.Substring(1)); } var last = v % 10; if (last == 0 || last > 4 || v > 10 && v < 20) { return PluralizingDictionary.Ru(s, false); } return last == 1 ? s : PluralizingDictionary.Ru(s, true); }
private static string En(int v, string s) { return v == 1 ? s : PluralizingDictionary.En(s); }
private static string De(int v, string s) { return(v == 1 ? s : PluralizingDictionary.De(s)); }
private static string Fr(int v, string s) { return(v == 0 || v == 1 ? s : PluralizingDictionary.En(s)); }