git://git.nikiroo.be
/
fanfix.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix items in Bundle
[fanfix.git]
/
src
/
be
/
nikiroo
/
utils
/
resources
/
TransBundle.java
diff --git
a/src/be/nikiroo/utils/resources/TransBundle.java
b/src/be/nikiroo/utils/resources/TransBundle.java
index fb9f29068171f12e8ffc7cc6ce8beebfefdae8b2..28fa2802e215eab074ff51405d7488b733f84459 100644
(file)
--- a/
src/be/nikiroo/utils/resources/TransBundle.java
+++ b/
src/be/nikiroo/utils/resources/TransBundle.java
@@
-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)) {
} else if ("DUMMY".equals(id.name().toUpperCase())) {
result = "[" + key.toLowerCase() + "]";
} else if (containsKey(key)) {
- result = getString(key);
+ result = getString(key
, null
);
} else {
result = 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
*/
*
* @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 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);
}
}
}
}