Revision: 9760
http://languagetool.svn.sourceforge.net/languagetool/?rev=9760&view=rev
Author: dnaber
Date: 2013-03-23 14:57:42 +0000 (Sat, 23 Mar 2013)
Log Message:
-----------
allow i18n of the rule editor
Modified Paths:
--------------
trunk/ltcommunity/grails-app/i18n/messages.properties
trunk/ltcommunity/grails-app/i18n/messages_en.properties
trunk/ltcommunity/grails-app/views/ruleEditor/_checkRuleProblem.gsp
trunk/ltcommunity/grails-app/views/ruleEditor/_corpusResult.gsp
trunk/ltcommunity/grails-app/views/ruleEditor/_submitRule.gsp
trunk/ltcommunity/grails-app/views/ruleEditor/checkRule.gsp
trunk/ltcommunity/grails-app/views/ruleEditor/createXml.gsp
trunk/ltcommunity/grails-app/views/ruleEditor/expert.gsp
trunk/ltcommunity/grails-app/views/ruleEditor/index.gsp
Modified: trunk/ltcommunity/grails-app/i18n/messages.properties
===================================================================
--- trunk/ltcommunity/grails-app/i18n/messages.properties 2013-03-23
10:34:41 UTC (rev 9759)
+++ trunk/ltcommunity/grails-app/i18n/messages.properties 2013-03-23
14:57:42 UTC (rev 9760)
@@ -26,7 +26,6 @@
typeMismatch.java.lang.Short=Property {0} must be a valid number
typeMismatch.java.math.BigDecimal=Property {0} must be a valid number
typeMismatch.java.math.BigInteger=Property {0} must be a valid number
-
default.paginate.prev=Previous
default.paginate.next=Next
@@ -170,4 +169,74 @@
ltc.wikicheck.rules.message=The spell checking rule and the following rules
have been disabled because they currently cause many false alarms on Wikipedia
text\:
ltc.wikicheck.rules.activate.all=You can add <tt style\="background-color\:
\#eeeeee">&disabled\=none</tt> to the URL of this page to activate all
rules except spell checking.
+ltc.editor.title=Create a new LanguageTool rule
+ltc.editor.advanced.mode=Advanced Mode
+ltc.editor.simple.mode=Simple Mode
+ltc.editor.nojs=This page requires Javascript
+ltc.editor.intro=LanguageTool finds errors based on rules. Most of these rules
are expressed as XML, and this page will help you to create your own simple
rules in XML.
+ltc.editor.language=Language
+ltc.editor.wrong.words=Wrong words
+ltc.editor.bad.sentence=Sentence with error
+ltc.editor.good.sentence=Sentence with the error corrected
+ltc.editor.show.help=Show Help
+ltc.editor.hide.help=Hide Help
+ltc.editor.help.word=matches the word "foo", ignoring case
+ltc.editor.help.phrase=matches the phrase "foo bar"
+ltc.editor.help.word.case.sensitive=matches the word "foo", but not "FOO" or
"Foo"
+ltc.editor.help.regex=matches the word "foo", "bar" or "blah"
+ltc.editor.help.question.mark=matches the word "walk" or "walks", i.e. the "s"
is optional
+ltc.editor.continue=Continue
+ltc.editor.corpus.intro=We''ve checked your pattern against {0} documents \
+ from the {1} <a href="http://www.wikipedia.org">Wikipedia</a> \
+ (<g:link action="indexOverview">index size overview</g:link>) and found no
matches. \
+ That''s a good sign, it means your rule doesn't trigger any false alarms at
least \
+ in the documents we checked.
+ltc.editor.corpus.intro.problem=We''ve checked your pattern against {0}
documents \
+ from the {1} <a href="http://www.wikipedia.org">Wikipedia</a> \
+ (<g:link action="indexOverview">index size overview</g:link>) and found the
following matches. \
+ Please consider modifying your rule if these matches are false alarms. Hover
over the \
+ words to display their part-of-speech tags.
+ltc.editor.corpus.correct.example.sentence=Your example sentences are also
correct.
+ltc.editor.corpus.timeout=Sorry, there was a timeout when searching our
Wikipedia data for matches. This can happen \
+ for patterns with some regular expressions, for example if the pattern
starts with .*. \
+ These kinds of patterns are currently not supported by this tool. You can
continue \
+ creating the rule anyway.
+ltc.editor.corpus.limit=Showing only the first ${limit} matches.
+ltc.editor.error.message=Error Message
+ltc.editor.error.marker=Use double quotes to mark the correction.
+ltc.editor.rule.name=Rule Name
+ltc.editor.optional=optional
+ltc.editor.create.xml=Create XML
+ltc.editor.xml.intro=This is the XML that you need to add inside a
<tt><category></tt> in the file<br/> \
+ <tt>rules/{0}/grammar.xml</tt>. After re-starting LanguageTool, the rule \
+ will work locally for you.
+ltc.editor.documentation.link=LanguageTool rules can be much more powerful -
this page \
+ can only create simple rules. See <a target="devdocumentation"
href="http://www.languagetool.org/development/">our \
+ development documentation</a> for more features.
+ltc.editor.continue.with.xml=Once you know the LanguageTool XML syntax, you
can continue editing that:
+ltc.editor.edit.xml=Edit XML
+ltc.editor.submit.rule=If your rule might be useful to others, please consider
submitting it to the \
+ LanguageTool team, either via <a target="_blank" href="{0}">our forum</a> \
+ or via <a target="_blank" href="{1}">our mailing list</a>. \
+ Thank you!
+ltc.editor.rule.problems=There are problems with your rule:
+ltc.editor.rule.not.enabled=Your rule is not enabled - please remove the
default="off" from the XML
+ltc.editor.rule.language.selection=Please make sure you selected the correct
language for your rule - your selection was: <b>{0}</b>
+ltc.editor.example.intro=The example sentences are used to test your rule.
Your first \
+ example sentence should contain the error so it can be found with the "Wrong
words" pattern. \
+ The second example sentence should not contain the error. \
+ If you need help, <a target="_blank" href="{0}">please ask in our forum</a>.
+ltc.editor.regex.warning=Note that you have used special characters like the
dot (<tt>.</tt>), \
+ a question mark (<tt>?</tt>), or similar. This means that the word with that
character is interpreted \
+ as a <a target="_blank"
href="http://en.wikipedia.org/wiki/Regular_expression">regular expression</a>.
If you \
+ don't want that you have to write your XML manually for now, as this tool
sometimes cannot safely \
+ tell what you mean by those characters.
+
+ltc.editor.expert.title=Check a LanguageTool XML rule
+ltc.editor.expert.beta.warning=Warning: This mode is still experimental
+ltc.editor.expert.intro=Enter a single LanguageTool XML style/grammar rule
(everything and including \
+ from <tt><rule></tt> to <tt></rule></tt>, \
+ as found in <tt>grammar.xml</tt>) here to check it. The rule syntax is
described in \
+ <a href="{0}">our documentation</a>.
+ltc.editor.expert.check.xml=Check XML
Modified: trunk/ltcommunity/grails-app/i18n/messages_en.properties
===================================================================
--- trunk/ltcommunity/grails-app/i18n/messages_en.properties 2013-03-23
10:34:41 UTC (rev 9759)
+++ trunk/ltcommunity/grails-app/i18n/messages_en.properties 2013-03-23
14:57:42 UTC (rev 9760)
@@ -141,4 +141,74 @@
ltc.wikicheck.rules.message=The spell checking rule and the following rules
have been disabled because they currently cause many false alarms on Wikipedia
text\:
ltc.wikicheck.rules.activate.all=You can add <tt style\="background-color\:
\#eeeeee">&disabled\=none</tt> to the URL of this page to activate all
rules except spell checking.
+ltc.editor.title=Create a new LanguageTool rule
+ltc.editor.advanced.mode=Advanced Mode
+ltc.editor.simple.mode=Simple Mode
+ltc.editor.nojs=This page requires Javascript
+ltc.editor.intro=LanguageTool finds errors based on rules. Most of these rules
are expressed as XML, and this page will help you to create your own simple
rules in XML.
+ltc.editor.language=Language
+ltc.editor.wrong.words=Wrong words
+ltc.editor.bad.sentence=Sentence with error
+ltc.editor.good.sentence=Sentence with the error corrected
+ltc.editor.show.help=Show Help
+ltc.editor.hide.help=Hide Help
+ltc.editor.help.word=matches the word "foo", ignoring case
+ltc.editor.help.phrase=matches the phrase "foo bar"
+ltc.editor.help.word.case.sensitive=matches the word "foo", but not "FOO" or
"Foo"
+ltc.editor.help.regex=matches the word "foo", "bar" or "blah"
+ltc.editor.help.question.mark=matches the word "walk" or "walks", i.e. the "s"
is optional
+ltc.editor.continue=Continue
+ltc.editor.corpus.intro=We''ve checked your pattern against {0} documents \
+ from the {1} <a href="http://www.wikipedia.org">Wikipedia</a> \
+ (<g:link action="indexOverview">index size overview</g:link>) and found no
matches. \
+ That''s a good sign, it means your rule doesn't trigger any false alarms at
least \
+ in the documents we checked.
+ltc.editor.corpus.intro.problem=We''ve checked your pattern against {0}
documents \
+ from the {1} <a href="http://www.wikipedia.org">Wikipedia</a> \
+ (<g:link action="indexOverview">index size overview</g:link>) and found the
following matches. \
+ Please consider modifying your rule if these matches are false alarms. Hover
over the \
+ words to display their part-of-speech tags.
+ltc.editor.corpus.correct.example.sentence=Your example sentences are also
correct.
+ltc.editor.corpus.timeout=Sorry, there was a timeout when searching our
Wikipedia data for matches. This can happen \
+ for patterns with some regular expressions, for example if the pattern
starts with .*. \
+ These kinds of patterns are currently not supported by this tool. You can
continue \
+ creating the rule anyway.
+ltc.editor.corpus.limit=Showing only the first ${limit} matches.
+ltc.editor.error.message=Error Message
+ltc.editor.error.marker=Use double quotes to mark the correction.
+ltc.editor.rule.name=Rule Name
+ltc.editor.optional=optional
+ltc.editor.create.xml=Create XML
+ltc.editor.xml.intro=This is the XML that you need to add inside a
<tt><category></tt> in the file<br/> \
+ <tt>rules/{0}/grammar.xml</tt>. After re-starting LanguageTool, the rule \
+ will work locally for you.
+ltc.editor.documentation.link=LanguageTool rules can be much more powerful -
this page \
+ can only create simple rules. See <a target="devdocumentation"
href="http://www.languagetool.org/development/">our \
+ development documentation</a> for more features.
+ltc.editor.continue.with.xml=Once you know the LanguageTool XML syntax, you
can continue editing that:
+ltc.editor.edit.xml=Edit XML
+ltc.editor.submit.rule=If your rule might be useful to others, please consider
submitting it to the \
+ LanguageTool team, either via <a target="_blank" href="{0}">our forum</a> \
+ or via <a target="_blank" href="{1}">our mailing list</a>. \
+ Thank you!
+ltc.editor.rule.problems=There are problems with your rule:
+ltc.editor.rule.not.enabled=Your rule is not enabled - please remove the
default="off" from the XML
+ltc.editor.rule.language.selection=Please make sure you selected the correct
language for your rule - your selection was: <b>{0}</b>
+ltc.editor.example.intro=The example sentences are used to test your rule.
Your first \
+ example sentence should contain the error so it can be found with the "Wrong
words" pattern. \
+ The second example sentence should not contain the error. \
+ If you need help, <a target="_blank" href="{0}">please ask in our forum</a>.
+ltc.editor.regex.warning=Note that you have used special characters like the
dot (<tt>.</tt>), \
+ a question mark (<tt>?</tt>), or similar. This means that the word with that
character is interpreted \
+ as a <a target="_blank"
href="http://en.wikipedia.org/wiki/Regular_expression">regular expression</a>.
If you \
+ don't want that you have to write your XML manually for now, as this tool
sometimes cannot safely \
+ tell what you mean by those characters.
+
+ltc.editor.expert.title=Check a LanguageTool XML rule
+ltc.editor.expert.beta.warning=Warning: This mode is still experimental
+ltc.editor.expert.intro=Enter a single LanguageTool XML style/grammar rule
(everything and including \
+ from <tt><rule></tt> to <tt></rule></tt>, \
+ as found in <tt>grammar.xml</tt>) here to check it. The rule syntax is
described in \
+ <a href="{0}">our documentation</a>.
+ltc.editor.expert.check.xml=Check XML
Modified: trunk/ltcommunity/grails-app/views/ruleEditor/_checkRuleProblem.gsp
===================================================================
--- trunk/ltcommunity/grails-app/views/ruleEditor/_checkRuleProblem.gsp
2013-03-23 10:34:41 UTC (rev 9759)
+++ trunk/ltcommunity/grails-app/views/ruleEditor/_checkRuleProblem.gsp
2013-03-23 14:57:42 UTC (rev 9760)
@@ -3,33 +3,26 @@
<td width="150"></td>
<td>
- <div class="errors">There are problems with your rule:
+ <div class="errors"><g:message code="ltc.editor.rule.problems"/>
<ul>
<g:if test="${isOff}">
- <li>Your rule is not enabled - please remove the
default="off" from the XML</li>
+ <li><g:message code="ltc.editor.rule.not.enabled"/></li>
</g:if>
<g:else>
<g:each in="${problems}" var="problem">
<li>${problem.encodeAsHTML()}</li>
</g:each>
- <li>Please make sure you selected the correct language for
your rule - your selection was: <b>${params.language.encodeAsHTML()}</b></li>
+ <li><g:message code="ltc.editor.rule.language.selection"
args="${[params.language.encodeAsHTML()]}"/></li>
</g:else>
</ul>
</div>
- <p style="width:450px;margin-top: 5px">The example sentences are used
to test your rule. Your first
- example sentence should contain the error so it can be found with the
"Wrong words" pattern.
- The second example sentence should not contain the error.
- If you need help, <a target="_blank"
href="http://www.languagetool.org/forum/">please ask in our forum</a>.</p>
+ <p style="width:450px;margin-top: 5px"><g:message
code="ltc.editor.example.intro"
args="${['http://www.languagetool.org/forum/']}"/></p>
<g:if test="${hasRegex && !expertMode}">
- <p style="width:450px;margin-top: 5px">Note that you have used
special characters like the dot (<tt>.</tt>),
- a question mark (<tt>?</tt>), or similar. This means that the word
with that character is interpreted
- as a <a target="_blank"
href="http://en.wikipedia.org/wiki/Regular_expression">regular expression</a>.
If you
- don't want that you have to write your XML manually for now, as
this tool sometimes cannot safely
- tell what you mean by those characters.</p>
+ <p style="width:450px;margin-top: 5px"><g:message
code="ltc.editor.regex.warning"/></p>
</g:if>
</td>
Modified: trunk/ltcommunity/grails-app/views/ruleEditor/_corpusResult.gsp
===================================================================
--- trunk/ltcommunity/grails-app/views/ruleEditor/_corpusResult.gsp
2013-03-23 10:34:41 UTC (rev 9759)
+++ trunk/ltcommunity/grails-app/views/ruleEditor/_corpusResult.gsp
2013-03-23 14:57:42 UTC (rev 9760)
@@ -4,30 +4,17 @@
<g:if test="${searcherResult.getMatchingSentences().size() == 0}">
- <p style="width:700px;">We've checked your pattern against
${docsChecked} documents
- from the ${params.language.encodeAsHTML()} <a
href="http://www.wikipedia.org">Wikipedia</a>
- (<g:link action="indexOverview">index size overview</g:link>) and
found no matches.
- That's a good sign, it means your rule doesn't trigger any false
alarms at least
- in the documents we checked.</p>
+ <p style="width:700px;"><g:message code="ltc.editor.corpus.intro"
args="${[docsChecked, params.language.encodeAsHTML()]}"/></p>
- <p>Your example sentences are also correct.</p>
+ <p><g:message code="ltc.editor.corpus.correct.example.sentence"/></p>
</g:if>
<g:else>
- <p style="width:700px;">We've checked your pattern against
${docsChecked} documents
- from the ${params.language.encodeAsHTML()}
- <a href="http://www.wikipedia.org">Wikipedia</a> and found the
following matches.
+ <p style="width:700px;"><g:message
code="ltc.editor.corpus.intro.problem" args="${[docsChecked,
params.language.encodeAsHTML()]}"/>
<g:if test="${searcherResult.getMatchingSentences().size() == limit}">
- (showing only the first ${limit} matches)
+ <g:message code="ltc.editor.corpus.limit"/>
</g:if>
- Please consider modifying your rule if these matches are false alarms.
Hover over the
- words to display their part-of-speech tags:
- <g:if test="${!expertMode}">
- As this page does not support our full rule syntax you might want
to learn
- more in <a target="devdocumentation"
href="http://www.languagetool.org/development/">our development
- documentation</a>.
- </g:if>
</p>
<ul style="margin-bottom: 30px">
@@ -61,10 +48,7 @@
<g:else>
<g:if test="${timeOut}">
<p class="warn">
- Sorry, there was a timeout when searching our Wikipedia data for
matches. This can happen
- for patterns with some regular expressions, for example if the
pattern starts with .*.
- These kinds of patterns are currently not supported by this tool.
You can continue
- creating the rule anyway.
+ <g:message code="ltc.editor.corpus.timeout"/>
</p>
</g:if>
</g:else>
Modified: trunk/ltcommunity/grails-app/views/ruleEditor/_submitRule.gsp
===================================================================
--- trunk/ltcommunity/grails-app/views/ruleEditor/_submitRule.gsp
2013-03-23 10:34:41 UTC (rev 9759)
+++ trunk/ltcommunity/grails-app/views/ruleEditor/_submitRule.gsp
2013-03-23 14:57:42 UTC (rev 9760)
@@ -1,4 +1 @@
-<p>If your rule might be useful to others, please consider submitting it to the
-LanguageTool team, either via <a target="_blank"
href="http://www.languagetool.org/forum/">our forum</a>
-or via <a target="_blank"
href="https://lists.sourceforge.net/lists/listinfo/languagetool-devel">our
mailing list</a>.
-Thank you!</p>
+<p><g:message code="ltc.editor.submit.rule"
args="${['http://www.languagetool.org/forum/',
'https://lists.sourceforge.net/lists/listinfo/languagetool-devel']}"/></p>
Modified: trunk/ltcommunity/grails-app/views/ruleEditor/checkRule.gsp
===================================================================
--- trunk/ltcommunity/grails-app/views/ruleEditor/checkRule.gsp 2013-03-23
10:34:41 UTC (rev 9759)
+++ trunk/ltcommunity/grails-app/views/ruleEditor/checkRule.gsp 2013-03-23
14:57:42 UTC (rev 9760)
@@ -3,7 +3,7 @@
<table style="border: 0px">
<tr>
- <td valign="top" width="150">Error Message</td>
+ <td valign="top" width="150"><g:message
code="ltc.editor.error.message"/></td>
<%
String preset = "Did you mean \"bad\"?";
%>
@@ -14,12 +14,12 @@
class="preFilledField" type="text" name="message"
value='${messagePreset ? messagePreset : preset}'/>
<br/>
- <span class="metaInfo">Use double quotes to mark the correction.</span>
+ <span class="metaInfo"><g:message
code="ltc.editor.error.marker"/></span>
</td>
</tr>
<tr>
- <td>Rule Name<br/>
- <span class="metaInfo">optional</span>
+ <td><g:message code="ltc.editor.rule.name"/><br/>
+ <span class="metaInfo"><g:message code="ltc.editor.optional"/></span>
</td>
<td><g:textField id="name"
onkeypress="return handleReturnForXmlCreation(event);"
@@ -37,7 +37,7 @@
<g:submitToRemote name="createXmlButton"
onLoading="onLoadingResult('createXmlSpinner',
'createXmlButton')"
onComplete="onResultComplete('createXmlSpinner',
'createXmlButton')"
- action="createXml" update="xml" value="Create XML"/>
+ action="createXml" update="xml"
value="${message(code:'ltc.editor.create.xml')}"/>
<img id="createXmlSpinner" style="display: none"
src="${resource(dir:'images', file:'spinner.gif')}" alt="wait symbol"/>
</td>
</tr>
Modified: trunk/ltcommunity/grails-app/views/ruleEditor/createXml.gsp
===================================================================
--- trunk/ltcommunity/grails-app/views/ruleEditor/createXml.gsp 2013-03-23
10:34:41 UTC (rev 9759)
+++ trunk/ltcommunity/grails-app/views/ruleEditor/createXml.gsp 2013-03-23
14:57:42 UTC (rev 9760)
@@ -10,23 +10,19 @@
</g:if>
<g:else>
- <p style="width:450px;margin-top: 0px; margin-bottom: 5px">This is
the XML that you need to add inside a <tt><category></tt> in the file<br/>
- <tt>rules/${language.getShortName()}/grammar.xml</tt>. After
re-starting LanguageTool, the rule
- will work locally for you.</p>
+ <p style="width:450px;margin-top: 0px; margin-bottom:
5px"><g:message code="ltc.editor.xml.intro"
args="${[language.getShortName()]}"/></p>
<pre style="background-color: #eeeeee; padding:
10px">${xml.encodeAsHTML().replaceAll(">(.*?)<",
"><strong>\$1</strong><")}</pre>
- <p style="width:450px;margin-top: 5px">LanguageTool rules can be
much more powerful - this page
- can only create simple rules. See <a target="devdocumentation"
href="http://www.languagetool.org/development/">our development
documentation</a>
- for more features.</p>
+ <p style="width:450px;margin-top: 5px"><g:message
code="ltc.editor.documentation.link"/></p>
<g:render template="submitRule"/>
- <p>Once you know the LanguageTool XML syntax, you can continue
editing that:</p>
+ <p style="width:450px;"><g:message
code="ltc.editor.continue.with.xml"/></p>
<g:form action="expert" method="post" target="ltRuleEditor">
<input name="xml" type="hidden" value="${xml.encodeAsHTML()}"/>
- <g:submitButton name="Edit XML"/>
+ <g:submitButton name="${message(code:'ltc.editor.edit.xml')}"/>
</g:form>
</g:else>
Modified: trunk/ltcommunity/grails-app/views/ruleEditor/expert.gsp
===================================================================
--- trunk/ltcommunity/grails-app/views/ruleEditor/expert.gsp 2013-03-23
10:34:41 UTC (rev 9759)
+++ trunk/ltcommunity/grails-app/views/ruleEditor/expert.gsp 2013-03-23
14:57:42 UTC (rev 9760)
@@ -5,7 +5,7 @@
<head>
<g:javascript library="prototype" />
<meta name="layout" content="iframemain" />
- <title>Check a LanguageTool XML rule</title>
+ <title><g:message code="ltc.editor.expert.title" /></title>
<script type="text/javascript">
function copyXml() {
@@ -49,17 +49,15 @@
<div class="content">
- <noscript class="warn">This page requires Javascript</noscript>
+ <noscript class="warn"><g:message
code="ltc.editor.nojs"/></noscript>
<g:form name="ruleForm" method="post" action="checkRule">
- <p style="width:550px;text-align: right"><g:link
action="index">Simple Mode</g:link></p>
+ <p style="width:550px;text-align: right"><g:link
action="index"><g:message code="ltc.editor.simple.mode"/></g:link></p>
- <p class="warn">Warning: This mode is still experimental</p>
+ <p class="warn"><g:message
code="ltc.editor.expert.beta.warning"/></p>
- <p>Enter a single LanguageTool XML style/grammar rule
(everything and including from <tt><rule></tt> to <tt></rule></tt>,
- as found in <tt>grammar.xml</tt>) here to check it. The rule
syntax is described in
- <a href="http://www.languagetool.org/development/">our
documentation</a>.</p>
+ <p><g:message code="ltc.editor.expert.intro"
args="${['http://www.languagetool.org/development/']}"/></p>
<g:select style="margin-bottom: 5px" name="language"
from="${languageNames}" value="English"/><br/>
@@ -88,7 +86,7 @@
before="copyXml()"
onLoading="onLoadingResult()"
onComplete="onResultComplete()"
- action="checkXml" update="checkResult"
value="Check XML"/>
+ action="checkXml" update="checkResult"
value="${message(code:'ltc.editor.expert.check.xml')}"/>
<img id="checkResultSpinner" style="display: none"
src="${resource(dir:'images', file:'spinner.gif')}" alt="wait symbol"/>
<br/>
Modified: trunk/ltcommunity/grails-app/views/ruleEditor/index.gsp
===================================================================
--- trunk/ltcommunity/grails-app/views/ruleEditor/index.gsp 2013-03-23
10:34:41 UTC (rev 9759)
+++ trunk/ltcommunity/grails-app/views/ruleEditor/index.gsp 2013-03-23
14:57:42 UTC (rev 9760)
@@ -6,7 +6,7 @@
<head>
<g:javascript library="prototype" />
<meta name="layout" content="iframemain" />
- <title>Create a new LanguageTool rule</title>
+ <title><g:message code="ltc.editor.title"/></title>
<script type="text/javascript">
function onLoadingResult(divName, buttonName) {
@@ -45,7 +45,7 @@
<div class="content">
- <noscript class="warn">This page requires Javascript</noscript>
+ <noscript class="warn"><g:message
code="ltc.editor.nojs"/></noscript>
<g:form name="ruleForm" method="post" action="checkRule">
@@ -55,18 +55,17 @@
<table style="border: 0px">
<tr>
<td colspan="2">
- <p style="width:550px;text-align: right"><g:link
action="expert">Advanced Mode</g:link></p>
+ <p style="width:550px;text-align: right"><g:link
action="expert"><g:message code="ltc.editor.advanced.mode"/></g:link></p>
- <p style="width:550px">LanguageTool finds errors
based on rules. Most of these rules are expressed
- as XML, and this page will help you to create your
own simple rules in XML.</p>
+ <p style="width:550px"><g:message
code="ltc.editor.intro"/></p>
</td>
</tr>
<tr>
- <td width="150">Language</td>
+ <td width="150"><g:message
code="ltc.editor.language"/></td>
<td><g:select name="language" from="${languageNames}"
value="English"/></td>
</tr>
<tr>
- <td valign="top">Wrong words</td>
+ <td valign="top"><g:message
code="ltc.editor.wrong.words"/></td>
<td><g:textField id="pattern"
onkeypress="return handleReturn(event);"
onfocus="\$('pattern').setStyle({color:
'black'})"
@@ -74,30 +73,30 @@
<br/>
<div id="patternHelpLink">
- <a
onclick="showDiv('patternHelp');hideDiv('patternHelpLink')" href="#">Show
Help</a>
+ <a
onclick="showDiv('patternHelp');hideDiv('patternHelpLink')" href="#"><g:message
code="ltc.editor.show.help"/></a>
</div>
<div id="patternHelp" style="display: none">
- <a
onclick="showDiv('patternHelpLink');hideDiv('patternHelp')" href="#">Hide
Help</a><br/>
+ <a
onclick="showDiv('patternHelpLink');hideDiv('patternHelp')" href="#"><g:message
code="ltc.editor.hide.help"/></a><br/>
<table>
<tr style="background-color: #eeeeee">
<td>foo</td>
- <td>matches the word "foo", ignoring
case</td>
+ <td><g:message
code="ltc.editor.help.word"/></td>
</tr>
<tr>
<td>foo bar</td>
- <td>matches the phrase "foo bar"</td>
+ <td><g:message
code="ltc.editor.help.phrase"/></td>
</tr>
<tr style="background-color: #eeeeee">
<td>(?-i)foo</td>
- <td>matches the word "foo", but not "FOO"
or "Foo"</td>
+ <td><g:message
code="ltc.editor.help.word.case.sensitive"/></td>
</tr>
<tr>
<td>foo|bar|blah</td>
- <td>matches the word "foo", "bar" or
"blah"</td>
+ <td><g:message
code="ltc.editor.help.regex"/></td>
</tr>
<tr style="background-color: #eeeeee">
<td>walks?</td>
- <td>matches the word "walk" or "walks",
i.e. the "s" is optional</td>
+ <td><g:message
code="ltc.editor.help.question.mark"/></td>
</tr>
</table>
</div>
@@ -105,8 +104,7 @@
</td>
</tr>
<tr>
- <td>Sentence<br/>
- with error</td>
+ <td><g:message code="ltc.editor.bad.sentence"/></td>
<td><g:textField id="incorrectExample1"
onkeypress="return handleReturn(event);"
onfocus="\$('incorrectExample1').setStyle({color: 'black'})"
@@ -116,8 +114,7 @@
</td>
</tr>
<tr>
- <td>Sentence<br/>
- with the error corrected</td>
+ <td><g:message code="ltc.editor.good.sentence"/></td>
<td><g:textField id="correctExample1"
onkeypress="return handleReturn(event);"
onfocus="\$('correctExample1').setStyle({color: 'black'})"
@@ -132,7 +129,7 @@
<g:submitToRemote name="checkRuleButton"
onLoading="onLoadingResult('checkResultSpinner', 'checkRuleButton')"
onComplete="onResultComplete('checkResultSpinner', 'checkRuleButton')"
- action="checkRule"
update="checkResult" value="Continue"/>
+ action="checkRule"
update="checkResult" value="${message(code:'ltc.editor.continue')}"/>
<img id="checkResultSpinner" style="display: none"
src="${resource(dir:'images', file:'spinner.gif')}" alt="wait symbol"/>
</td>
</tr>
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Languagetool-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-commits