Registrační e-mail pošleme lokalizovaný do jazyka,
authorFrantišek Kučera <franta-hg@frantovo.cz>
Tue Mar 23 12:11:04 2010 +0100 (2010-03-23)
changeset 82df86ad0c0e55
parent 81 4dddecffde5c
child 83 6767606d6342
Registrační e-mail pošleme lokalizovaný do jazyka,
ve kterém uživatel vyplňoval registrační formulář.
java/nekurak.net-ejb/src/java/cz/frantovo/nekurak/email/Postak.java
java/nekurak.net-lib/src/cz/frantovo/nekurak/preklady_en.properties
java/nekurak.net-web/web/WEB-INF/casti/registrovatUzivatele.jsp
     1.1 --- a/java/nekurak.net-ejb/src/java/cz/frantovo/nekurak/email/Postak.java	Tue Mar 23 11:26:28 2010 +0100
     1.2 +++ b/java/nekurak.net-ejb/src/java/cz/frantovo/nekurak/email/Postak.java	Tue Mar 23 12:11:04 2010 +0100
     1.3 @@ -41,7 +41,6 @@
     1.4  	} catch (Exception e) {
     1.5  	    throw new NekurakVyjimka("Selhalo odesílání e-mailu pro: " + komu, e);
     1.6  	}
     1.7 -
     1.8      }
     1.9  
    1.10      /**
     2.1 --- a/java/nekurak.net-lib/src/cz/frantovo/nekurak/preklady_en.properties	Tue Mar 23 11:26:28 2010 +0100
     2.2 +++ b/java/nekurak.net-lib/src/cz/frantovo/nekurak/preklady_en.properties	Tue Mar 23 12:11:04 2010 +0100
     2.3 @@ -48,3 +48,6 @@
     2.4  dto.podnik.cisloPopisne=no.
     2.5  dto.podnik.cisloPopisne.tip=street number
     2.6  dto.podnik.mesto=City
     2.7 +
     2.8 +registrace.email.predmet=Welcome at Neku\u0159\u00E1k.net
     2.9 +registrace.email.text=It is pleasure for us to welcome new user: {0} \nYour nickname: {1}
    2.10 \ No newline at end of file
     3.1 --- a/java/nekurak.net-web/web/WEB-INF/casti/registrovatUzivatele.jsp	Tue Mar 23 11:26:28 2010 +0100
     3.2 +++ b/java/nekurak.net-web/web/WEB-INF/casti/registrovatUzivatele.jsp	Tue Mar 23 12:11:04 2010 +0100
     3.3 @@ -28,6 +28,7 @@
     3.4  		<c:choose>
     3.5  		    <c:when test="${param.heslo == param.heslo_kontrola}">
     3.6  			<jsp:setProperty name="uzivatel" property="*"/>
     3.7 +			<jsp:setProperty name="uzivatel" property="jazyk" value="${sessionScope['javax.servlet.jsp.jstl.fmt.locale.session']}"/>
     3.8  			<jsp:setProperty name="uzivatelPredRegistraci" property="uzivatel" value="${uzivatel}"/>
     3.9  			<jsp:setProperty name="registraceUzivatele" property="uzivatel" value="${uzivatelPredRegistraci}"/>
    3.10