} else if ("DUMMY".equals(id.name().toUpperCase())) {
result = "[" + key.toLowerCase() + "]";
} else if (containsKey(key)) {
- result = getString(key);
+ result = getString(key, null);
+ if (result == null) {
+ result = getMetaDef(id.name());
+ }
} else {
result = null;
}
}
/**
- * Return all the languages known by the program.
- *
+ * Return all the languages known by the program for this bundle.
*
* @return the known language codes
*/
String name = id.name() + "_NOUTF";
if (containsKey(name)) {
- String value = getString(name);
- writeValue(writer, name, value);
+ String value = getString(name, null);
+ if (value == null) {
+ value = getMetaDef(id.name());
+ }
+ boolean set = isSet(id, false);
+ writeValue(writer, name, value, set);
}
}