Revision: 8345
http://languagetool.svn.sourceforge.net/languagetool/?rev=8345&view=rev
Author: gulp21-1
Date: 2012-11-10 16:39:01 +0000 (Sat, 10 Nov 2012)
Log Message:
-----------
[extension] do not treat '+' like a space
Modified Paths:
--------------
trunk/extension/common/locales/en-US/description.txt
trunk/extension/common/tests/escapeHtmlTagsTest.txt
trunk/extension/common/tests/escapeUrlTest.html
trunk/extension/common/tests/index.html
trunk/extension/common/tests/index.html.create.bash
trunk/extension/common/tests/scriptContentsTest.html
trunk/extension/firefox/lib/main.js
trunk/extension/firefox/locale/de-DE.properties
trunk/extension/firefox/locale/en-US.properties
Modified: trunk/extension/common/locales/en-US/description.txt
===================================================================
--- trunk/extension/common/locales/en-US/description.txt 2012-11-10
16:23:17 UTC (rev 8344)
+++ trunk/extension/common/locales/en-US/description.txt 2012-11-10
16:39:01 UTC (rev 8345)
@@ -29,6 +29,10 @@
- If you select a headline and the following paragraph, you might get a
warning about wrong case because LanguageTool doesn't consider the paragraph.
- “Text“ between <script>-HTML-tags is checked, if it is part of the selection.
+<h1>Where can I report whishes, problems, or false alarms?</h1>
+
+If you have any suggestion or problems, or you want to report a false alarm,
you can leave a message in the <a
href="http://languagetool.org/forum/">LanguageTool forum<a> or on the <a
href="https://lists.sourceforge.net/lists/listinfo/languagetool-devel">mailing
list</a>. Bug reports can also be added to the <a
href="http://sourceforge.net/tracker/?group_id=110216">bug tracker</a>.
<b>Please do not use the rating feature if you want to report a problem.</b>
+
<h1>What about Thunderbird?</h1>
Those of you who want to check text in Thunderbird using LanguageTool might
want to try the <a
href="https://addons.mozilla.org/thunderbird/addon/grammar-checker/">Grammar
Checker</a> extension.
Modified: trunk/extension/common/tests/escapeHtmlTagsTest.txt
===================================================================
--- trunk/extension/common/tests/escapeHtmlTagsTest.txt 2012-11-10 16:23:17 UTC
(rev 8344)
+++ trunk/extension/common/tests/escapeHtmlTagsTest.txt 2012-11-10 16:39:01 UTC
(rev 8345)
@@ -1,5 +1,7 @@
-The script tag should not appear in the popup.
+The script tags should not appear in the panel..
<script>alert("Test");</script>
-The links should <a href="..">not not</a> mix up the text. <a
href="example.com">Another link</a>.
\ No newline at end of file
+The links should <a href="..">not not</a> mix up the text. <a
href="example.com">Another link</a>.
+
+(2 mistake)
Modified: trunk/extension/common/tests/escapeUrlTest.html
===================================================================
--- trunk/extension/common/tests/escapeUrlTest.html 2012-11-10 16:23:17 UTC
(rev 8344)
+++ trunk/extension/common/tests/escapeUrlTest.html 2012-11-10 16:39:01 UTC
(rev 8345)
@@ -5,7 +5,7 @@
</head>
<body>
-There should be no problem, when I writes 50 % & an bit more text. (2 mistakes)
+There should be no problem, when I writes 50 % + an bit more text & even
more. (3 mistakes)
</body>
</html>
Modified: trunk/extension/common/tests/index.html
===================================================================
--- trunk/extension/common/tests/index.html 2012-11-10 16:23:17 UTC (rev
8344)
+++ trunk/extension/common/tests/index.html 2012-11-10 16:39:01 UTC (rev
8345)
@@ -5,11 +5,12 @@
</head>
<body>
<table>
+<tr><td><a href="englishTest.html">englishTest.html</a></td></tr>
+<tr><td><a href="escapeHtmlTagsTest.html">escapeHtmlTagsTest.html</a></td></tr>
+<tr><td><a href="escapeHtmlTagsTest.txt">escapeHtmlTagsTest.txt</a></td></tr>
+<tr><td><a href="escapeUrlTest.html">escapeUrlTest.html</a></td></tr>
+<tr><td><a href="germanTest.html">germanTest.html</a></td></tr>
<tr><td><a href="scriptContentsTest.html">scriptContentsTest.html</a></td></tr>
-<tr><td><a href="germanTest.html">germanTest.html</a></td></tr>
-<tr><td><a href="escapeHtmlTagsTest.txt">escapeHtmlTagsTest.txt</a></td></tr>
-<tr><td><a href="escapeHtmlTagsTest.html">escapeHtmlTagsTest.html</a></td></tr>
-<tr><td><a href="englishTest.html">englishTest.html</a></td></tr>
</table>
</body>
</html>
Modified: trunk/extension/common/tests/index.html.create.bash
===================================================================
--- trunk/extension/common/tests/index.html.create.bash 2012-11-10 16:23:17 UTC
(rev 8344)
+++ trunk/extension/common/tests/index.html.create.bash 2012-11-10 16:39:01 UTC
(rev 8345)
@@ -8,14 +8,8 @@
echo "<body>" >> index.html
echo "<table>" >> index.html
-for filename in `ls -r`
+for filename in `echo *Test.*`
do
- if [[ "$filename" == *.bash ]]; then
- continue
- fi
- if [ "$filename" == "index.html" ]; then
- continue
- fi
echo "<tr><td><a href=\"$filename\">$filename</a></td></tr>" >>
index.html
done
Modified: trunk/extension/common/tests/scriptContentsTest.html
===================================================================
--- trunk/extension/common/tests/scriptContentsTest.html 2012-11-10
16:23:17 UTC (rev 8344)
+++ trunk/extension/common/tests/scriptContentsTest.html 2012-11-10
16:39:01 UTC (rev 8345)
@@ -13,5 +13,7 @@
} catch( err ) {}
</script>
+(1 mistake)
+
</body>
</html>
Modified: trunk/extension/firefox/lib/main.js
===================================================================
--- trunk/extension/firefox/lib/main.js 2012-11-10 16:23:17 UTC (rev 8344)
+++ trunk/extension/firefox/lib/main.js 2012-11-10 16:39:01 UTC (rev 8345)
@@ -20,11 +20,11 @@
selection.on("select", selectionChanged);
/**
- * escape %, ?, and & in url
+ * escape %, ?, &, and + in url
* normal escape does not work properly with umlauts
*/
function escapeUrl(string) {
- return
string.replace(/\%/g,"%25").replace(/\?/g,"%3F").replace(/\&/g,"%26");
+ return
string.replace(/\%/g,"%25").replace(/\?/g,"%3F").replace(/\&/g,"%26").replace(/\+/g,"%2B");
}
/**
@@ -47,7 +47,7 @@
function formatError(error) {
var prepend="";
- if(error.indexOf("not a language code known")!=-1) {
+ if(error.indexOf("language code")!=-1) {
prepend=_("checkLanguageCode")+"<br/>";
}
return prepend
@@ -76,8 +76,8 @@
var returnTextGrammar="";
var returnTextSpelling="";
- lang=getLanguage(response, "name");
- mothertongue=getLanguage(response, "mothertonguename");
+ var lang=getLanguage(response, "name");
+ var mothertongue=getLanguage(response, "mothertonguename");
if(lang!="") {
returnLanguage="<div class=\"status\">"+_("textLanguage")+"
"+lang+"</div>";
@@ -180,7 +180,7 @@
}
panel.port.emit("setText", "<div
class=\"status\">"+errorText+"</div>");
} else {
- text=response.text;
+ var text=response.text;
console.log("Response: "+text);
panel.show();
panel.port.emit("setText",
webServiceNote+createReport(text, selectedText));
@@ -209,7 +209,7 @@
panel.port.emit("setText", "<div
class=\"status\">"+errorText+"</div>");
}
} else {
- text=response.text;
+ var text=response.text;
console.log("Response: "+text);
panel.show();
panel.port.emit("setText", createReport(text,
selectedText));
Modified: trunk/extension/firefox/locale/de-DE.properties
===================================================================
--- trunk/extension/firefox/locale/de-DE.properties 2012-11-10 16:23:17 UTC
(rev 8344)
+++ trunk/extension/firefox/locale/de-DE.properties 2012-11-10 16:39:01 UTC
(rev 8345)
@@ -6,7 +6,7 @@
checkLtRunning=Bitte stellen Sie sicher, dass ein LanguageTool-Server auf Port
8081 läuft oder aktivieren Sie den Webdienst in den <a
href="about:addons">Add-on-Einstellungen</a>.
usingWebService=Benutzen des lokalen Servers fehlgeschlagen, verbinde mit
Webdienst …
emptyText=Keine Text ist markiert und kein Textfeld ist aktiviert. Bitte
markieren Sie einen Text oder ein Textfeld, um den Text prüfen zu lassen.
-checkLanguageCode=Bitte stellen Sie sicher, dass die Sprachcodes in <a
href="about:addons">den Add-on-Einstellungen</a> richtig sind. Benutzen Sie
Codes wie 'de-DE', nicht 'de_DE', 'de-de' oder 'deutsch'.
+checkLanguageCode=Bitte stellen Sie sicher, dass die Sprachcodes in den <a
href="about:addons">Add-on-Einstellungen</a> richtig sind. Benutzen Sie Codes
wie 'de-DE', nicht 'de_DE', 'de-de' oder 'deutsch'.
webServiceUsed=Webdienst wurde benutzt. <a href="about:addons">Einstellungen
ändern…</a>
textLanguage=Textsprache:
motherTongue=Muttersprache:
Modified: trunk/extension/firefox/locale/en-US.properties
===================================================================
--- trunk/extension/firefox/locale/en-US.properties 2012-11-10 16:23:17 UTC
(rev 8344)
+++ trunk/extension/firefox/locale/en-US.properties 2012-11-10 16:39:01 UTC
(rev 8345)
@@ -3,7 +3,7 @@
noProblemsFound=No problems have been found.
checkSelectionWithLT=Check selected text or text in text field with
LanguageTool
moreInformation=more information
-checkLtRunning=Please make sure that a LanguageTool Server is running on port
8081 or enable the web service in <a href="about:addons">the settings of the
add-on</a>.
+checkLtRunning=Please make sure that a LanguageTool Server is running on port
8081 or enable the web service in the <a href="about:addons">settings of the
add-on</a>.
usingWebService=Using local server failed, connecting with web
service …
textLanguage=Text language:
motherTongue=Mother tongue:
@@ -11,7 +11,7 @@
autodetect_title=Enable auto-detection of the text language
autodetect_description=If this option is enabled, LanguageTool tries to
auto-detect the language of the text. If a sensible auto-detection is not
possible (i.e. the text is too short), the language given below is used.
emptyText=No text is selected and no text field is active. Please select a
text or a text field in order to have the text checked.
-checkLanguageCode=Please make sure that the language codes in <a
href="about:addons">the settings of the add-on</a> are correct. Use codes like
'en-US', not 'en_US', 'en-us', or 'english'.
+checkLanguageCode=Please make sure that the language codes in the <a
href="about:addons">settings of the add-on</a> are correct. Use codes like
'en-US', not 'en_US', 'en-us', or 'english'.
language_title=Language
language_description=LanguageTool will assume that the text to be checked is
in this language. Use language codes like 'en-US' or 'de-DE'.
mothertongue_title=Mother tongue
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_nov
_______________________________________________
Languagetool-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-commits