Revision: 6501
          
http://languagetool.svn.sourceforge.net/languagetool/?rev=6501&view=rev
Author:   dnaber
Date:     2012-02-11 15:45:18 +0000 (Sat, 11 Feb 2012)
Log Message:
-----------
improve title tags

Modified Paths:
--------------
    
trunk/ltcommunity/grails-app/controllers/org/languagetool/CorpusMatchController.groovy
    
trunk/ltcommunity/grails-app/controllers/org/languagetool/HomepageController.groovy
    
trunk/ltcommunity/grails-app/controllers/org/languagetool/RuleController.groovy
    trunk/ltcommunity/grails-app/i18n/messages.properties
    trunk/ltcommunity/grails-app/views/corpusMatch/list.gsp
    trunk/ltcommunity/grails-app/views/homepage/index.gsp
    trunk/ltcommunity/grails-app/views/rule/list.gsp

Modified: 
trunk/ltcommunity/grails-app/controllers/org/languagetool/CorpusMatchController.groovy
===================================================================
--- 
trunk/ltcommunity/grails-app/controllers/org/languagetool/CorpusMatchController.groovy
      2012-02-11 01:57:45 UTC (rev 6500)
+++ 
trunk/ltcommunity/grails-app/controllers/org/languagetool/CorpusMatchController.groovy
      2012-02-11 15:45:18 UTC (rev 6501)
@@ -78,9 +78,10 @@
         eq('languageCode', langCode)
         eq('isVisible', true)
       }
+      Language langObj = Language.getLanguageForShortName(langCode)
       [ corpusMatchList: matches,
         languages: Language.REAL_LANGUAGES, lang: langCode, totalMatches: 
allMatchesCount,
-        matchesByRule: matchesByRule]
+        matchesByRule: matchesByRule, language: langObj]
     }
 
     def markUseful = {

Modified: 
trunk/ltcommunity/grails-app/controllers/org/languagetool/HomepageController.groovy
===================================================================
--- 
trunk/ltcommunity/grails-app/controllers/org/languagetool/HomepageController.groovy
 2012-02-11 01:57:45 UTC (rev 6500)
+++ 
trunk/ltcommunity/grails-app/controllers/org/languagetool/HomepageController.groovy
 2012-02-11 15:45:18 UTC (rev 6501)
@@ -75,13 +75,14 @@
           }
           matches.add(cmi)
         }
+        Language langObject = Language.getLanguageForShortName(langCode)
         // force some order so we show the same order again as before login
         // (people might log in specifically to vote, we don't show random
         // items in that case):
         Collections.sort(matches)
         render(view:'index',model:[matches: matches, langCode: langCode,
                                    lang: langCode,             // used in 
_corpusMatches.gsp
-                                   languages: Language.REAL_LANGUAGES])
+                                   languages: Language.REAL_LANGUAGES, 
language: langObject])
     }
 
     /**

Modified: 
trunk/ltcommunity/grails-app/controllers/org/languagetool/RuleController.groovy
===================================================================
--- 
trunk/ltcommunity/grails-app/controllers/org/languagetool/RuleController.groovy 
    2012-02-11 01:57:45 UTC (rev 6500)
+++ 
trunk/ltcommunity/grails-app/controllers/org/languagetool/RuleController.groovy 
    2012-02-11 15:45:18 UTC (rev 6501)
@@ -88,7 +88,8 @@
       }
     }
     [ ruleList: rules, ruleCount: ruleCount, languages: 
Language.REAL_LANGUAGES,
-      disabledRuleIDs: disabledRuleIDs, patternRuleIdToUserRuleId: 
patternRuleIdToUserRuleId ]
+      disabledRuleIDs: disabledRuleIDs, patternRuleIdToUserRuleId: 
patternRuleIdToUserRuleId,
+      language: langObj]
   }
 
   private filterRules(List rules, String filter) {

Modified: trunk/ltcommunity/grails-app/i18n/messages.properties
===================================================================
--- trunk/ltcommunity/grails-app/i18n/messages.properties       2012-02-11 
01:57:45 UTC (rev 6500)
+++ trunk/ltcommunity/grails-app/i18n/messages.properties       2012-02-11 
15:45:18 UTC (rev 6501)
@@ -80,7 +80,8 @@
 ltc.rule.show.corpus.link=There are {0} matches of this rule in our Wikipedia 
check result.
 ltc.rule.show.corpus.link.show=Show those matches
 
-ltc.rule.browse.title=Browse Rules: {0} matches
+ltc.rule.browse.title=Browse LanguageTool Rules: {0} matches for {1}
+ltc.rule.browse.head=Browse Rules: {0} matches
 ltc.rule.browse.active=Active?
 ltc.rule.browse.active.yes=yes
 ltc.rule.browse.description=Description

Modified: trunk/ltcommunity/grails-app/views/corpusMatch/list.gsp
===================================================================
--- trunk/ltcommunity/grails-app/views/corpusMatch/list.gsp     2012-02-11 
01:57:45 UTC (rev 6500)
+++ trunk/ltcommunity/grails-app/views/corpusMatch/list.gsp     2012-02-11 
15:45:18 UTC (rev 6501)
@@ -4,7 +4,7 @@
 <html>
     <head>
         <meta name="layout" content="main" />
-        <title><g:message code="ltc.corpus.match.title"/></title>
+        <title><g:message code="ltc.corpus.match.title"/> - ${language}</title>
     </head>
     <body>
 

Modified: trunk/ltcommunity/grails-app/views/homepage/index.gsp
===================================================================
--- trunk/ltcommunity/grails-app/views/homepage/index.gsp       2012-02-11 
01:57:45 UTC (rev 6500)
+++ trunk/ltcommunity/grails-app/views/homepage/index.gsp       2012-02-11 
15:45:18 UTC (rev 6501)
@@ -3,7 +3,7 @@
 
 <html>
     <head>
-        <title><g:message code="ltc.home.title"/></title>
+        <title>${language} <g:message code="ltc.home.title"/></title>
                <meta name="layout" content="main" />
                <g:javascript library="prototype" />
     </head>

Modified: trunk/ltcommunity/grails-app/views/rule/list.gsp
===================================================================
--- trunk/ltcommunity/grails-app/views/rule/list.gsp    2012-02-11 01:57:45 UTC 
(rev 6500)
+++ trunk/ltcommunity/grails-app/views/rule/list.gsp    2012-02-11 15:45:18 UTC 
(rev 6501)
@@ -5,7 +5,7 @@
 <html>
     <head>
         <meta name="layout" content="main" />
-        <title><g:message code="ltc.rule.browse.title" args="${[ruleCount]}" 
/></title>
+        <title><g:message code="ltc.rule.browse.title" args="${[ruleCount, 
language]}" /></title>
     </head>
     <body>
     
@@ -13,7 +13,7 @@
         
             <g:render template="/languageSelection"/>
 
-            <h1><g:message code="ltc.rule.browse.title" args="${[ruleCount]}" 
/></h1>
+            <h1><g:message code="ltc.rule.browse.head" args="${[ruleCount]}" 
/></h1>
             
             <g:if test="${flash.message}">
                 <div class="message">${flash.message}</div>

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


------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Languagetool-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs

Reply via email to