Lines Matching refs:plural
113 pluralField = catalog.getClass().getField("plural");
136 Object plural = null;
141 plural = pluralMethod.invoke(catalog, new Object[0]);
148 // msgfmt versions <= 0.13.1 create a static plural field.
150 plural = pluralField.get(catalog);
155 if (plural instanceof String[]) {
156 // A GNU gettext created class with plural handling, Java2 format.
161 String key_plural = (value instanceof String[] ? ((String[])plural)[i++] : null);
165 if (i != ((String[])plural).length)
166 throw new RuntimeException("wrong plural field length");
167 } else if (plural instanceof Hashtable) {
168 // A GNU gettext created class with plural handling, Java format.
173 String key_plural = (value instanceof String[] ? (String)((Hashtable)plural).get(key) : null);
177 } else if (plural == null) {
178 // No plural handling.
185 throw new RuntimeException("wrong plural field value");