Revision: 7898
          
http://languagetool.svn.sourceforge.net/languagetool/?rev=7898&view=rev
Author:   dnaber
Date:     2012-08-20 20:21:49 +0000 (Mon, 20 Aug 2012)
Log Message:
-----------
fix pre-selection of language box for Esperanto

Modified Paths:
--------------
    trunk/ltcommunity/grails-app/views/homepage/checkText.gsp

Modified: trunk/ltcommunity/grails-app/views/homepage/checkText.gsp
===================================================================
--- trunk/ltcommunity/grails-app/views/homepage/checkText.gsp   2012-08-20 
19:54:46 UTC (rev 7897)
+++ trunk/ltcommunity/grails-app/views/homepage/checkText.gsp   2012-08-20 
20:21:49 UTC (rev 7898)
@@ -50,7 +50,11 @@
                 <select name="lang">
                     <g:each in="${languages}" var="lang">
                         <g:set var="codeWithCountry" 
value="${lang.countryVariants?.size() == 1 && lang.countryVariants[0] != 'ANY' 
? lang.shortName + '-' +lang.countryVariants[0] : lang.shortName}"/>
-                        <g:set var="selected" 
value="${language?.getShortNameWithVariant() == codeWithCountry ? 'selected' : 
''}"/>
+                        <g:set var="iteratedLangName" 
value="${language?.getShortNameWithVariant()}"/>
+                        <g:if test="${iteratedLangName == 'eo-ANY'}">
+                            <g:set var="iteratedLangName" value="eo"/>
+                        </g:if>
+                        <g:set var="selected" value="${iteratedLangName == 
codeWithCountry ? 'selected' : ''}"/>
                         <g:if test="${!lang.hasVariant()}">
                             <option ${selected} 
value="${codeWithCountry}">${lang.name}</option>
                         </g:if>

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs

Reply via email to