Základ lokalizace.
authorFrantišek Kučera <franta-hg@frantovo.cz>
Thu Feb 18 01:22:22 2010 +0100 (2010-02-18)
changeset 30705871ca12e9
parent 29 48dedc9654f2
child 31 bae2ead150f7
Základ lokalizace.
analýza/nekurak.net.txt
java/nekurak.net-web/src/java/cz/frantovo/nekurak/preklady.properties
java/nekurak.net-web/src/java/cz/frantovo/nekurak/preklady_cs.properties
java/nekurak.net-web/src/java/cz/frantovo/nekurak/preklady_en.properties
java/nekurak.net-web/web/index.jsp
java/nekurak.net-web/web/styl.css
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/analýza/nekurak.net.txt	Thu Feb 18 01:22:22 2010 +0100
     1.3 @@ -0,0 +1,5 @@
     1.4 +Funkce
     1.5 +	seznam hospod
     1.6 +	zda jsou kuřácké nebo nekuřácké
     1.7 +	hlasování, jaké mají být
     1.8 +
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/java/nekurak.net-web/src/java/cz/frantovo/nekurak/preklady.properties	Thu Feb 18 01:22:22 2010 +0100
     2.3 @@ -0,0 +1,1 @@
     2.4 +preklady_cs.properties
     2.5 \ No newline at end of file
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/java/nekurak.net-web/src/java/cz/frantovo/nekurak/preklady_cs.properties	Thu Feb 18 01:22:22 2010 +0100
     3.3 @@ -0,0 +1,4 @@
     3.4 +jazyk=\u010De\u0161tina
     3.5 +
     3.6 +nazev=Neku\u0159\u00E1k.net
     3.7 +popis=Datab\u00E1ze neku\u0159\u00E1ck\u00FDch restaurac\u00ED.
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/java/nekurak.net-web/src/java/cz/frantovo/nekurak/preklady_en.properties	Thu Feb 18 01:22:22 2010 +0100
     4.3 @@ -0,0 +1,4 @@
     4.4 +jazyk=angli\u010Dtina
     4.5 +
     4.6 +nazev=Neku\u0159\u00E1k.net
     4.7 +popis=Database of nonsmoking restaurants.
     5.1 --- a/java/nekurak.net-web/web/index.jsp	Thu Feb 11 10:07:38 2010 +0100
     5.2 +++ b/java/nekurak.net-web/web/index.jsp	Thu Feb 18 01:22:22 2010 +0100
     5.3 @@ -1,20 +1,23 @@
     5.4  <?xml version="1.0" encoding="UTF-8"?>
     5.5  <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
     5.6  	  xmlns:c="http://java.sun.com/jsp/jstl/core"
     5.7 +	  xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"
     5.8  	  version="2.0">
     5.9      <jsp:directive.page contentType="application/xhtml+xml"/>
    5.10      <jsp:output doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
    5.11  		doctype-root-element="html"
    5.12  		omit-xml-declaration="false"/>
    5.13  
    5.14 +    <fmt:setBundle basename="cz.frantovo.nekurak.preklady" scope="application"/>
    5.15 +
    5.16      <html xmlns="http://www.w3.org/1999/xhtml">
    5.17  	<head>
    5.18 -	    <title>Nekuřák.net</title>
    5.19 +	    <title><fmt:message key="nazev"/></title>
    5.20  	    <link href="styl.css" type="text/css" rel="StyleSheet"/>
    5.21  	</head>
    5.22  	<body>
    5.23 -	    <h1>Nekuřák.net</h1>
    5.24 -	    <p>Načítáme údaje z databáze.</p>
    5.25 +	    <h1><fmt:message key="nazev"/></h1>
    5.26 +	    <p><fmt:message key="popis"/></p>
    5.27  
    5.28  
    5.29  	    <!-- jednoduchá podmínka -->
     6.1 --- a/java/nekurak.net-web/web/styl.css	Thu Feb 11 10:07:38 2010 +0100
     6.2 +++ b/java/nekurak.net-web/web/styl.css	Thu Feb 18 01:22:22 2010 +0100
     6.3 @@ -1,3 +1,7 @@
     6.4 +body {
     6.5 +    font-family: sans-serif;
     6.6 +}
     6.7 +
     6.8  table {
     6.9      border: 1px solid gray;
    6.10      border-collapse: collapse;