|
1 | 1 | <%@ tag pageEncoding="UTF-8" trimDirectiveWhitespaces="true" %>
|
2 | 2 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
3 | 3 | <%@ taglib prefix="o" tagdir="/WEB-INF/tags/common" %>
|
| 4 | +<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %> |
4 | 5 | <%@ attribute name="title" required="true" %>
|
5 | 6 | <%@ attribute name="reqURL" required="true" %>
|
6 | 7 | <%@ attribute name="baseURL" required="true" %>
|
7 | 8 | <%@ attribute name="samlResourcesURL" required="true" %>
|
8 | 9 | <%@ attribute name="cssLinks" required="true" type="java.util.ArrayList<java.lang.String>" %>
|
9 | 10 |
|
10 | 11 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
11 |
| -<html class="no-js touch no-touch" lang="${langProps['other_lang']}"> |
| 12 | +<spring:message code="other_lang" var="other_lang"/> |
| 13 | +<html class="no-js touch no-touch" lang="${other_lang}"> |
12 | 14 | <head>
|
13 |
| - <meta cahrset="utf-8" /> |
| 15 | + <meta charset="utf-8" /> |
14 | 16 | <meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
15 | 17 | <meta name="author" content="Masarykova univerzita" />
|
16 | 18 |
|
17 |
| - <title>${langProps['unified_login']} | ${title}</title> |
| 19 | + <title><spring:message code="unified_login"/> | ${title}</title> |
18 | 20 |
|
19 | 21 | <link rel="stylesheet" type="text/css" href="https://id.muni.cz/simplesaml/module.php/muni/css/bootstrap.min.css">
|
20 | 22 | <link rel="stylesheet" type="text/css" href="https://id.muni.cz/simplesaml/module.php/muni/css/style-ie.css?1.2">
|
|
36 | 38 | </head>
|
37 | 39 |
|
38 | 40 | <body>
|
39 |
| - <c:set var="alternateURL" value="${reqURL}&lang=${langProps['other_lang']}"/> |
| 41 | + <c:set var="alternateURL" value="${reqURL}&lang=${other_lang}"/> |
40 | 42 | <p class="menu-accessibility">
|
41 |
| - <a title="${langProps['go_to_login_title']}" accesskey="2" href="#main"> |
42 |
| - ${langProps['go_to_login_text']} |
| 43 | + <a title="<spring:message code="go_to_login_title"/>" accesskey="2" href="#main"> |
| 44 | + <spring:message code="go_to_login_text"/> |
43 | 45 | </a>
|
44 | 46 | </p>
|
45 | 47 | <div class="header u-mb-0">
|
46 | 48 | <div class="row-main">
|
47 | 49 | <div class="header__wrap">
|
48 | 50 | <h1 class="header__logo">
|
49 |
| - <img src="${samlResourcesURL}/module.php/${theme}/img/${langProps['img_name']}.png" |
50 |
| - width="${langProps['img_width']}" height="${langProps['img_height']}" alt="${langProps['muni_logo']}"/> |
| 51 | + <spring:message code="muni_logo" var="alt"/> |
| 52 | + <img src="${samlResourcesURL}/module.php/${theme}/img/<spring:message code="img_name"/>.png" |
| 53 | + width="<spring:message code="img_width"/>" height="<spring:message code="img_height"/>" alt="${alt}"/> |
51 | 54 | </h1>
|
52 | 55 | <div class="header__side">
|
53 | 56 | <div class="menu-lang" role="navigation">
|
54 | 57 | <p class="menu-lang__selected">
|
55 |
| - <a href="${alternateURL}" rel="alternate" hreflang="${langProps['other_lang']}" |
56 |
| - lang="${langProps['other_lang']}" class="menu-lang__selected__link"> |
57 |
| - ${langProps['other_language']} |
| 58 | + <a href="${alternateURL}" rel="alternate" hreflang="${other_lang}" |
| 59 | + lang="${other_lang}" class="menu-lang__selected__link"> |
| 60 | + <spring:message code="other_language"/> |
58 | 61 | </a>
|
59 | 62 | </p>
|
60 | 63 | </div>
|
|
63 | 66 | <div class="row-main">
|
64 | 67 | <ul class="menu-mobile__list">
|
65 | 68 | <li class="menu-mobile__item">
|
66 |
| - <a href="${alternateURL}" rel="alternate" hreflang="${langProps['other_lang']}" |
67 |
| - class="menu-mobile__link menu-mobile__link--lang" lang="${langProps['other_lang']}"> |
68 |
| - ${langProps['other_language']} |
| 69 | + <a href="${alternateURL}" rel="alternate" hreflang="${other_lang}" |
| 70 | + class="menu-mobile__link menu-mobile__link--lang" lang="${other_lang}"> |
| 71 | + <spring:message code="other_language"/> |
69 | 72 | </a>
|
70 | 73 | </li>
|
71 | 74 | </ul>
|
|
0 commit comments