Formátování booleovských hodnot (true/false).
1.1 --- a/java/sql-vyuka/src/java/cz/frantovo/sql/vyuka/preklady_cs.properties Sun May 31 22:51:11 2009 +0200
1.2 +++ b/java/sql-vyuka/src/java/cz/frantovo/sql/vyuka/preklady_cs.properties Sun May 31 23:13:47 2009 +0200
1.3 @@ -26,3 +26,8 @@
1.4 historie.kdy=Kdy
1.5 historie.prikaz=SQL p\u0159\u00EDkaz
1.6 historie.zahlaviTip=Posledn\u00ED proveden\u00E9 SQL p\u0159\u00EDkazy.
1.7 +
1.8 +boolean.pravda=true
1.9 +boolean.nepravda=false
1.10 +boolean.pravda.tip=pravda (ano)
1.11 +boolean.nepravda.tip=nepravda (ne)
2.1 --- a/java/sql-vyuka/web/ajax.jspx Sun May 31 22:51:11 2009 +0200
2.2 +++ b/java/sql-vyuka/web/ajax.jspx Sun May 31 23:13:47 2009 +0200
2.3 @@ -77,6 +77,20 @@
2.4 <fmt:formatNumber value="${bunka}" pattern="###,###.###"/>
2.5 </td>
2.6 </c:when>
2.7 + <c:when test="${bunka.class == 'class java.lang.Boolean'}">
2.8 + <td>
2.9 + <c:choose>
2.10 + <c:when test="${bunka}">
2.11 + <fmt:message key="boolean.pravda.tip" var="pravda"/>
2.12 + <abbr title="${pravda}"><fmt:message key="boolean.pravda"/></abbr>
2.13 + </c:when>
2.14 + <c:otherwise>
2.15 + <fmt:message key="boolean.nepravda.tip" var="nepravda"/>
2.16 + <abbr title="${nepravda}"><fmt:message key="boolean.nepravda"/></abbr>
2.17 + </c:otherwise>
2.18 + </c:choose>
2.19 + </td>
2.20 + </c:when>
2.21 <c:otherwise>
2.22 <td>
2.23 <c:out value="${bunka}" />