コード例 #1
0
 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);
 }
コード例 #2
0
 public static void SetPluralizationRule(Language language, PluralizationRule rule)
 {
     // TODO: Not implemented
     throw new System.InvalidOperationException("Not implemented");
 }