X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Futils%2Fresources%2FTransBundle.java;h=28fa2802e215eab074ff51405d7488b733f84459;hb=1b5197ed4ceec2025a9a40c417b37c646b756138;hp=fb9f29068171f12e8ffc7cc6ce8beebfefdae8b2;hpb=9695f59152be45182d3156f1aca76f57424a2536;p=fanfix.git diff --git a/src/be/nikiroo/utils/resources/TransBundle.java b/src/be/nikiroo/utils/resources/TransBundle.java index fb9f290..28fa280 100644 --- a/src/be/nikiroo/utils/resources/TransBundle.java +++ b/src/be/nikiroo/utils/resources/TransBundle.java @@ -137,7 +137,7 @@ public class TransBundle> extends Bundle { } else if ("DUMMY".equals(id.name().toUpperCase())) { result = "[" + key.toLowerCase() + "]"; } else if (containsKey(key)) { - result = getString(key); + result = getString(key, null); } else { result = null; } @@ -169,8 +169,7 @@ public class TransBundle> extends Bundle { } /** - * Return all the languages known by the program. - * + * Return all the languages known by the program for this bundle. * * @return the known language codes */ @@ -326,8 +325,9 @@ public class TransBundle> extends Bundle { String name = id.name() + "_NOUTF"; if (containsKey(name)) { - String value = getString(name); - writeValue(writer, name, value); + String value = getString(name, null); + boolean set = isSet(id, false); + writeValue(writer, name, value, set); } }