Revision: 8455
          
http://languagetool.svn.sourceforge.net/languagetool/?rev=8455&view=rev
Author:   gulp21-1
Date:     2012-11-26 18:43:21 +0000 (Mon, 26 Nov 2012)
Log Message:
-----------
[extension] possibility to change url of local server
            textfield + iframe tests added

Modified Paths:
--------------
    trunk/extension/common/tests/headlineTest.html
    trunk/extension/common/tests/index.html
    trunk/extension/firefox/TODO
    trunk/extension/firefox/lib/main.js
    trunk/extension/firefox/locale/de-DE.properties
    trunk/extension/firefox/locale/en-US.properties
    trunk/extension/firefox/package.json

Added Paths:
-----------
    trunk/extension/common/tests/iframeTest.html
    trunk/extension/common/tests/textFieldTest.html

Modified: trunk/extension/common/tests/headlineTest.html
===================================================================
--- trunk/extension/common/tests/headlineTest.html      2012-11-25 21:50:56 UTC 
(rev 8454)
+++ trunk/extension/common/tests/headlineTest.html      2012-11-26 18:43:21 UTC 
(rev 8455)
@@ -7,6 +7,8 @@
 <h1>Regul&auml;re Ausdr&uuml;cke</h1>
 <p>Ein regul&auml;rer Ausdruck kann sehr kompliziert aussehen. Aber davon 
sollte man sich nicht abschrecken lassen.</p>
 
+<h1>Regul&auml;re Ausdr&uuml;cke</h1><p>Ein regul&auml;rer Ausdruck kann sehr 
kompliziert aussehen. Aber davon sollte man sich nicht abschrecken lassen.</p>
+
 (0 Fehler)
 
 </body>

Added: trunk/extension/common/tests/iframeTest.html
===================================================================
--- trunk/extension/common/tests/iframeTest.html                                
(rev 0)
+++ trunk/extension/common/tests/iframeTest.html        2012-11-26 18:43:21 UTC 
(rev 8455)
@@ -0,0 +1,12 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+<title>iframeTest</title>
+</head>
+<body>
+Checking the contents of the text field should work without selecting any text.
+<iframe src="textFieldTest.html" width="500px" height="300px" name="myframe">
+<p>You browser does not support frames.</p>
+</iframe>
+</body>
+</html>

Modified: trunk/extension/common/tests/index.html
===================================================================
--- trunk/extension/common/tests/index.html     2012-11-25 21:50:56 UTC (rev 
8454)
+++ trunk/extension/common/tests/index.html     2012-11-26 18:43:21 UTC (rev 
8455)
@@ -11,8 +11,10 @@
 <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="headlineTest.html">headlineTest.html</a></td></tr>
+<tr><td><a href="iframeTest.html">iframeTest.html</a></td></tr>
 <tr><td><a href="newlineTest.html">newlineTest.html</a></td></tr>
 <tr><td><a href="scriptContentsTest.html">scriptContentsTest.html</a></td></tr>
+<tr><td><a href="textFieldTest.html">textFieldTest.html</a></td></tr>
 </table>
 </body>
 </html>

Added: trunk/extension/common/tests/textFieldTest.html
===================================================================
--- trunk/extension/common/tests/textFieldTest.html                             
(rev 0)
+++ trunk/extension/common/tests/textFieldTest.html     2012-11-26 18:43:21 UTC 
(rev 8455)
@@ -0,0 +1,15 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+<title>textFieldTest</title>
+</head>
+<body>
+<form action="textarea.htm">
+<p>You can check this text:<br>
+<textarea name="user_text" cols="50" rows="10">Paste your own text 
here&hellip; or check this text too see an few of of the problems that 
LanguageTool can detecd.
+
+(4 mistakes)</textarea>
+</p>
+</form>
+</body>
+</html>

Modified: trunk/extension/firefox/TODO
===================================================================
--- trunk/extension/firefox/TODO        2012-11-25 21:50:56 UTC (rev 8454)
+++ trunk/extension/firefox/TODO        2012-11-26 18:43:21 UTC (rev 8455)
@@ -7,11 +7,12 @@
   "Text" in between <script>...</script> should probably be ignored.
 
 - if you select a headline and the following paragraph you'll get an error 
because
-  LT doesn't consider the paragraph
+  LT doesn't consider the paragraph (use html instead of text property?)
 
-- make "http//localhost:8081" configurable
-
 - using the plugin on Swiss text is confusing, as the language detection
   will probably return de-DE, thus there will be quite a lot of spelling
   errors (example: http://de.wikipedia.org/wiki/Z%C3%BCrich). Same for other
-  variants.
\ No newline at end of file
+  variants.
+
+- checking text in text fields which are in an iframe cannot be checked without
+  selecting the text (e.g. lt forum)

Modified: trunk/extension/firefox/lib/main.js
===================================================================
--- trunk/extension/firefox/lib/main.js 2012-11-25 21:50:56 UTC (rev 8454)
+++ trunk/extension/firefox/lib/main.js 2012-11-26 18:43:21 UTC (rev 8455)
@@ -202,7 +202,7 @@
        });
        
        var checkTextLocal=Request({
-               url: "http://localhost:8081";,
+               url: simpleprefs.prefs.localServerUrl,
                onComplete: function (response) {
                        if(response.status!=200) {
                                console.log("Response status: 
"+response.status);

Modified: trunk/extension/firefox/locale/de-DE.properties
===================================================================
--- trunk/extension/firefox/locale/de-DE.properties     2012-11-25 21:50:56 UTC 
(rev 8454)
+++ trunk/extension/firefox/locale/de-DE.properties     2012-11-26 18:43:21 UTC 
(rev 8455)
@@ -17,6 +17,8 @@
 language_description=LanguageTool wird davon ausgehen, dass der zu prüfenden 
Text in dieser Sprache geschrieben ist.
 mothertongue_title=Muttersprache
 mothertongue_description=Wählen Sie hier Ihre Muttersprache aus, um in 
fremdsprachigen Texten vor falschen Freunden gewarnt zu werden.
+localServerUrl_title=URL des lokalen Servers
+localServerUrl_description=Sie können den Port, auf dem der 
LanguageTool-Server läuft, ändern oder eine komplett andere URL eingeben, z. B. 
wenn Sie einen zentralen Server in Ihrer Firma verwenden.
 enableWebService_title=Den Webdienst benutzen, wenn eine Verbindung mit dem 
lokalen Server nicht erfolgreich ist
 enableWebService_description=Die Erweiterung versucht zuerst, eine Verbindung 
mit einem lokal laufenden LanguageTool-Server herzustellen. Wenn dies 
fehlschlägt und diese Option aktiviert ist, verbindet sich die Erweiterung mit 
api.languagetool.org, um den Text zu prüfen. Bitte beachten Sie jedoch, dass 
die Verbindung nicht verschlüsselt ist. Bitte lesen Sie die Add-on-Beschreibung 
und die Datenschutzerklärung für Einzelheiten.
 mothertongue_options.none selected=Keine ausgewählt

Modified: trunk/extension/firefox/locale/en-US.properties
===================================================================
--- trunk/extension/firefox/locale/en-US.properties     2012-11-25 21:50:56 UTC 
(rev 8454)
+++ trunk/extension/firefox/locale/en-US.properties     2012-11-26 18:43:21 UTC 
(rev 8455)
@@ -17,6 +17,8 @@
 language_description=LanguageTool will assume that the text to be checked is 
written in this language.
 mothertongue_title=Mother tongue
 mothertongue_description=Select your mother tongue here in order to be warned 
of false friends in foreign-language texts.
+localServerUrl_title=URL of the local server
+localServerUrl_description=You can change the port on which the LanguageTool 
server is running, or enter a completely different URL, e.g. if you are using a 
central server in your company.
 enableWebService_title=Use web service when connecting with the local server 
is not successful
 enableWebService_description=At first, the extension tries to connect to a 
locally running LanguageTool server. If this fails and this option is enabled, 
the extension connects to api.languagetool.org to check the text. Please note, 
however, that the connection is not encrypted. Please read the add-on 
description and the privacy policy for details.
-mothertongue_options.noneSelected=none selected
+mothertongue_options.none selected=none selected

Modified: trunk/extension/firefox/package.json
===================================================================
--- trunk/extension/firefox/package.json        2012-11-25 21:50:56 UTC (rev 
8454)
+++ trunk/extension/firefox/package.json        2012-11-26 18:43:21 UTC (rev 
8455)
@@ -332,6 +332,12 @@
                        }
                ]
        }, {
+               "name": "localServerUrl",
+               "title": "localServerUrl_title",
+               "description": "localServerUrl_description",
+               "type": "string",
+               "value": "http://localhost:8081";
+       }, {
                "name": "enableWebService",
                "title": "enableWebService_title",
                "description": "enableWebService_description",

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


------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Languagetool-commits mailing list
Languagetool-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-commits

Reply via email to