# HG changeset patch # User František Kučera # Date 1266501681 -3600 # Node ID 9f9840afa18fd288f42b9284818911a697d94d36 # Parent 2d84736776a9695c42f4ecb814f5afa2fe6f27b9 Formátování a lokalizace. diff -r 2d84736776a9 -r 9f9840afa18f java/nekurak.net-web/src/java/cz/frantovo/nekurak/preklady_cs.properties --- a/java/nekurak.net-web/src/java/cz/frantovo/nekurak/preklady_cs.properties Thu Feb 18 10:42:38 2010 +0100 +++ b/java/nekurak.net-web/src/java/cz/frantovo/nekurak/preklady_cs.properties Thu Feb 18 15:01:21 2010 +0100 @@ -2,3 +2,8 @@ nazev=Neku\u0159\u00E1k.net popis=Datab\u00E1ze neku\u0159\u00E1ck\u00FDch restaurac\u00ED. + +odradkovani=Prvn\u00ED \u0159\u00E1dek\nDruh\u00FD \u0159\u00E1dek +dlouhyRadek=n\u011Bjak\u00FD stra\u0161n\u011B \ +dlouh\u00FD text +dalsiKlic=hodnota diff -r 2d84736776a9 -r 9f9840afa18f java/nekurak.net-web/web/WEB-INF/web.xml --- a/java/nekurak.net-web/web/WEB-INF/web.xml Thu Feb 18 10:42:38 2010 +0100 +++ b/java/nekurak.net-web/web/WEB-INF/web.xml Thu Feb 18 15:01:21 2010 +0100 @@ -30,4 +30,8 @@ javax.sql.DataSource Container + + javax.servlet.jsp.jstl.fmt.fallbackLocale + cs + diff -r 2d84736776a9 -r 9f9840afa18f java/nekurak.net-web/web/formatovani.jsp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/java/nekurak.net-web/web/formatovani.jsp Thu Feb 18 15:01:21 2010 +0100 @@ -0,0 +1,78 @@ + + + + + + + + + + + + + + + + + + + + + + + <fmt:message key="nazev"/> + + + + + +

Formátování

+ +

Čísla

+

Formát čísla: ###,###.###

+

1234567890 →

+

1234567.890 →

+

1234567.123999 →

+ +

Datum

+ +

dd.MM. yyyy HH:mm:ss →

+

dd.MM. yyyy →

+

dd.MMM yyyy →

+

dd.MMMM yyyy →

+ + + + +

Lokalizace

+

K lokalizaci používáme značku &lt;fmt:message key="klic"/&gt;

+

Zvolený jazyk:

+ + + + + +

Obsah proměnné: ${xJazyk}.

+ +
+ +

+ + + + + + + + + +