Tlačítka pro přepínání jazyků.
authorFrantišek Kučera <franta-hg@frantovo.cz>
Fri, 26 Feb 2010 12:45:48 +0100
changeset 4474bded83c0eb
parent 43 394ec61e99d7
child 45 bcc5f56a4c12
Tlačítka pro přepínání jazyků.
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/WEB-INF/casti/detail.jsp
java/nekurak.net-web/web/WEB-INF/casti/prepinaniJazyku.jsp
java/nekurak.net-web/web/grafika/jazyk_cs.png
java/nekurak.net-web/web/grafika/jazyk_en.png
java/nekurak.net-web/web/index.jsp
java/nekurak.net-web/web/styl.css
     1.1 --- a/java/nekurak.net-web/src/java/cz/frantovo/nekurak/preklady_cs.properties	Thu Feb 25 16:01:46 2010 +0100
     1.2 +++ b/java/nekurak.net-web/src/java/cz/frantovo/nekurak/preklady_cs.properties	Fri Feb 26 12:45:48 2010 +0100
     1.3 @@ -10,6 +10,11 @@
     1.4  pridatPodnik=P\u0159idat podnik
     1.5  prihlasenyUzivatel=P\u0159ihl\u00E1\u0161en\u00FD u\u017Eivatel
     1.6  
     1.7 +prepinaniJazyku.cestina=\u010De\u0161tina
     1.8 +prepinaniJazyku.cestina.tip=str\u00E1nka ji\u017E je v \u010De\u0161tin\u011B
     1.9 +prepinaniJazyku.anglictina=angli\u010Dtina
    1.10 +prepinaniJazyku.anglictina.tip=p\u0159epnout na angli\u010Dtinu
    1.11 +
    1.12  chybovaStranka.404.nazev=404 Str\u00E1nka nenalezena
    1.13  chybovaStranka.404.popis=Takovou str\u00E1nku tu bohu\u017Eel nem\u00E1me.
    1.14  chybovaStranka.500.nazev=500 Intern\u00ED chyba serveru
     2.1 --- a/java/nekurak.net-web/src/java/cz/frantovo/nekurak/preklady_en.properties	Thu Feb 25 16:01:46 2010 +0100
     2.2 +++ b/java/nekurak.net-web/src/java/cz/frantovo/nekurak/preklady_en.properties	Fri Feb 26 12:45:48 2010 +0100
     2.3 @@ -4,17 +4,22 @@
     2.4  popis=Database of nonsmoking restaurants.
     2.5  licence=\u00A9 2010 nekurak.net. License: Affero GPL.
     2.6  
     2.7 -chybovaStranka.404.nazev=404 Page not found
     2.8 -chybovaStranka.404.popis=Sorry, we do not have that page here.
     2.9 -chybovaStranka.500.nazev=500 Internal server error
    2.10 -chybovaStranka.500.popis=Sorry, something went bad.
    2.11 -
    2.12  uvod=Overview
    2.13  prihlasitSe=Log in
    2.14  odhlasitSe=Log out
    2.15  pridatPodnik=Add place
    2.16  prihlasenyUzivatel=Your username
    2.17  
    2.18 +prepinaniJazyku.cestina=Czech
    2.19 +prepinaniJazyku.cestina.tip=switch to Czech
    2.20 +prepinaniJazyku.anglictina=English
    2.21 +prepinaniJazyku.anglictina.tip=page is already in English
    2.22 +
    2.23 +chybovaStranka.404.nazev=404 Page not found
    2.24 +chybovaStranka.404.popis=Sorry, we do not have that page here.
    2.25 +chybovaStranka.500.nazev=500 Internal server error
    2.26 +chybovaStranka.500.popis=Sorry, something went bad.
    2.27 +
    2.28  uvod.naposledyPridanePodniky=Recently added places
    2.29  uvod.www=web page
    2.30  uvod.adresa=Address
     3.1 --- a/java/nekurak.net-web/web/WEB-INF/casti/detail.jsp	Thu Feb 25 16:01:46 2010 +0100
     3.2 +++ b/java/nekurak.net-web/web/WEB-INF/casti/detail.jsp	Fri Feb 26 12:45:48 2010 +0100
     3.3 @@ -5,8 +5,6 @@
     3.4  	  xmlns:fn="http://java.sun.com/jsp/jstl/functions"
     3.5  	  version="2.0">
     3.6  
     3.7 -    <jsp:useBean id="uvod" class="cz.frantovo.nekurak.web.Uvod" scope="request"/>
     3.8 -
     3.9      <p>TODO: Detail podniku (<c:out value="${param.podnik}"/>).</p>
    3.10  
    3.11  </jsp:root>
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/java/nekurak.net-web/web/WEB-INF/casti/prepinaniJazyku.jsp	Fri Feb 26 12:45:48 2010 +0100
     4.3 @@ -0,0 +1,15 @@
     4.4 +<?xml version="1.0" encoding="UTF-8"?>
     4.5 +<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
     4.6 +	  xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"
     4.7 +	  version="2.0">
     4.8 +
     4.9 +    <div id="prepinaniJazyku">
    4.10 +	<fmt:message key="prepinaniJazyku.cestina" var="prepinaniJazykuCestina"/>
    4.11 +	<fmt:message key="prepinaniJazyku.cestina.tip" var="prepinaniJazykuCestinaTip"/>
    4.12 +	<fmt:message key="prepinaniJazyku.anglictina" var="prepinaniJazykuAnglictina"/>
    4.13 +	<fmt:message key="prepinaniJazyku.anglictina.tip" var="prepinaniJazykuAnglictinaTip"/>
    4.14 +	<a href="?jazyk=cs"><img src="grafika/jazyk_cs.png" alt="${prepinaniJazykuCestina}" title="${prepinaniJazykuCestinaTip}"/></a>
    4.15 +	<a href="?jazyk=en"><img src="grafika/jazyk_en.png" alt="${prepinaniJazykuAnglictina}" title="${prepinaniJazykuAnglictinaTip}"/></a>
    4.16 +    </div>
    4.17 +
    4.18 +</jsp:root>
     5.1 Binary file java/nekurak.net-web/web/grafika/jazyk_cs.png has changed
     6.1 Binary file java/nekurak.net-web/web/grafika/jazyk_en.png has changed
     7.1 --- a/java/nekurak.net-web/web/index.jsp	Thu Feb 25 16:01:46 2010 +0100
     7.2 +++ b/java/nekurak.net-web/web/index.jsp	Fri Feb 26 12:45:48 2010 +0100
     7.3 @@ -59,6 +59,8 @@
     7.4  
     7.5  		</ul>
     7.6  
     7.7 +		<jsp:include page="/WEB-INF/casti/prepinaniJazyku.jsp" flush="false"/>
     7.8 +
     7.9  		<div id="obsah">
    7.10  
    7.11  		    <c:choose>
    7.12 @@ -80,7 +82,7 @@
    7.13  
    7.14  		<div id="paticka">
    7.15  		    <p>
    7.16 -			<fmt:message key="licence"/>
    7.17 +			<fmt:message key="licence"/>&amp;#160;
    7.18  			<a href="nekurak.net-src.zip">nekurak.net-src.zip</a>
    7.19  			<a href="nekurak.net-src.zip.SHA-512">.</a>
    7.20  		    </p>
     8.1 --- a/java/nekurak.net-web/web/styl.css	Thu Feb 25 16:01:46 2010 +0100
     8.2 +++ b/java/nekurak.net-web/web/styl.css	Fri Feb 26 12:45:48 2010 +0100
     8.3 @@ -56,9 +56,27 @@
     8.4      color: gray;
     8.5  }
     8.6  
     8.7 +#prepinaniJazyku {
     8.8 +    position: relative;
     8.9 +    left: 940px;
    8.10 +    top: -29px;
    8.11 +    width: 60px;
    8.12 +    margin: 0px;
    8.13 +    padding: 0px;
    8.14 +}
    8.15 +
    8.16 +#prepinaniJazyku a {
    8.17 +    margin-left: 4px;
    8.18 +}
    8.19 +
    8.20 +#prepinaniJazyku img {
    8.21 +    border: none;
    8.22 +}
    8.23 +
    8.24  #obsah {
    8.25      width: 980px;
    8.26      border: 1px solid silver;
    8.27 +    margin-top: -28px;
    8.28      margin-bottom: 4px;
    8.29      padding-left: 10px;
    8.30      padding-right: 10px;