1.1 --- a/freemarkerdor/src/main/resources/cz/xelfi/quoridor/freemarkerdor/UI/index.fmt Sun Nov 08 09:54:32 2009 +0100
1.2 +++ b/freemarkerdor/src/main/resources/cz/xelfi/quoridor/freemarkerdor/UI/index.fmt Sun Nov 08 10:06:12 2009 +0100
1.3 @@ -172,9 +172,14 @@
1.4 </form>
1.5 <form action="/options">
1.6 ${bundle.LANGUAGE}
1.7 - <select name="language" id="column">
1.8 - <option value="en">${bundle.ENGLISH}</option>
1.9 - <option value="cs">${bundle.CZECH}</option>
1.10 + <#macro lang locale>
1.11 + <option
1.12 + value="${locale}" <#if bundle("LOCALE") = locale>selected</#if>
1.13 + >${bundle(locale)}</option>
1.14 + </#macro>
1.15 + <select name="language" id="column">
1.16 + <@lang "en"/>
1.17 + <@lang "cs"/>
1.18 </select>
1.19 <input type="submit" value="${bundle.CHANGE_LANGUAGE}" />
1.20 </form>