(String key, int count)
| 219 | |
| 220 | |
| 221 | static public String pluralize(String key, int count) { |
| 222 | // First check if the bundle contains an entry for this specific count |
| 223 | String customKey = key + "." + count; |
| 224 | String value = get(customKey); |
| 225 | if (value != null) { |
| 226 | return String.format(value, count); |
| 227 | } |
| 228 | // Use the general 'n' version for n items |
| 229 | return interpolate(key + ".n", count); |
| 230 | } |
| 231 | |
| 232 | |
| 233 | /** |
no test coverage detected