Add 'src/be/nikiroo/utils/' from commit '46add0670fdee4bd936a13fe2448c5e20a7ffd0a'
[nikiroo-utils.git] / src / be / nikiroo / utils / resources / TransBundle.java
index fb9f29068171f12e8ffc7cc6ce8beebfefdae8b2..28fa2802e215eab074ff51405d7488b733f84459 100644 (file)
@@ -137,7 +137,7 @@ public class TransBundle<E extends Enum<E>> extends Bundle<E> {
                } 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<E extends Enum<E>> extends Bundle<E> {
        }
 
        /**
-        * 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<E extends Enum<E>> extends Bundle<E> {
 
                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);
                }
        }