]> WPIA git - gigi.git/blobdiff - src/org/cacert/gigi/output/template/Template.java
fix: output booleans as yes/no directly using the template system
[gigi.git] / src / org / cacert / gigi / output / template / Template.java
index dfb7b46382f92c8b36e9a207fb28687016bf9eb5..8c633c422934d415b7da3b813bc5d44512f00753 100644 (file)
@@ -224,6 +224,8 @@ public class Template implements Outputable {
             ((Outputable) s).output(out, l, vars);
         } else if (s instanceof DayDate) {
             out.print(DateSelector.getDateFormat().format(((DayDate) s).toDate()));
+        } else if (s instanceof Boolean) {
+            out.print(((Boolean) s) ? l.getTranslation("yes") : l.getTranslation("no"));
         } else if (s instanceof Date) {
             SimpleDateFormat sdfUI = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
             SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'");