(String key, int count)
| 206 | |
| 207 | |
| 208 | static public String pluralize(String key, int count) { |
| 209 | // First check if the bundle contains an entry for this specific count |
| 210 | String customKey = key + "." + count; |
| 211 | String value = get(customKey); |
| 212 | if (value != null) { |
| 213 | return String.format(value, count); |
| 214 | } |
| 215 | // Use the general 'n' version for n items |
| 216 | return interpolate(key + ".n", count); |
| 217 | } |
| 218 | |
| 219 | |
| 220 | /** |
no test coverage detected