Example #1
0
        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);
        }
Example #2
0
 private static string En(int v, string s) {
     return v == 1 ? s : PluralizingDictionary.En(s);
 }
Example #3
0
 private static string De(int v, string s)
 {
     return(v == 1 ? s : PluralizingDictionary.De(s));
 }
Example #4
0
 private static string Fr(int v, string s)
 {
     return(v == 0 || v == 1 ? s : PluralizingDictionary.En(s));
 }