Revision: 7195
          
http://languagetool.svn.sourceforge.net/languagetool/?rev=7195&view=rev
Author:   dnaber
Date:     2012-06-02 21:47:34 +0000 (Sat, 02 Jun 2012)
Log Message:
-----------
update hidden language now that variants are supported

Modified Paths:
--------------
    trunk/ltcommunity/grails-app/conf/Config.groovy
    trunk/ltcommunity/grails-app/views/_languageSelection.gsp

Modified: trunk/ltcommunity/grails-app/conf/Config.groovy
===================================================================
--- trunk/ltcommunity/grails-app/conf/Config.groovy     2012-06-02 21:36:30 UTC 
(rev 7194)
+++ trunk/ltcommunity/grails-app/conf/Config.groovy     2012-06-02 21:47:34 UTC 
(rev 7195)
@@ -44,7 +44,7 @@
 max.text.length = 10000     // maximum length of texts to check
 // languages not visible in the user interface (e.g. because they are 
 // not properly supported yet):
-hide.languages = ["cs"]
+hide.languages = ["cs", "ml", "be", "da", "sk", "zh", "ast", "tl", "km", "br", 
"en-GB", "en-US"]
 maxPatternElements = 5
 
 // Lucene index directories for fast rule matching - "LANG" will be replaced 
with the language code:

Modified: trunk/ltcommunity/grails-app/views/_languageSelection.gsp
===================================================================
--- trunk/ltcommunity/grails-app/views/_languageSelection.gsp   2012-06-02 
21:36:30 UTC (rev 7194)
+++ trunk/ltcommunity/grails-app/views/_languageSelection.gsp   2012-06-02 
21:47:34 UTC (rev 7195)
@@ -1,7 +1,8 @@
 
             <div class="langselection">
                    <g:each var="lang" in="${languages}">
-                       <g:if 
test="${!grailsApplication.config.hide.languages.contains(lang.shortName)}">
+                    <g:set var="languagesToHide" 
value="${grailsApplication.config.hide.languages}"/>
+                       <g:if 
test="${!languagesToHide.contains(lang.shortNameWithVariant) && 
!languagesToHide.contains(lang.shortName)}">
                                <span class="languageButton">
                                        <g:if test="${params.lang == 
lang.shortName}">
                                            <span 
class="activelang">${lang.getName()}</span>

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs

Reply via email to