Revision: 9650
          
http://languagetool.svn.sourceforge.net/languagetool/?rev=9650&view=rev
Author:   gulp21-1
Date:     2013-03-09 23:13:55 +0000 (Sat, 09 Mar 2013)
Log Message:
-----------
[extension/fx] different menu items for selection and text field

Modified Paths:
--------------
    trunk/extension/firefox/CHANGES
    trunk/extension/firefox/lib/main.js
    trunk/extension/firefox/locale/de-DE.properties
    trunk/extension/firefox/locale/en-US.properties

Modified: trunk/extension/firefox/CHANGES
===================================================================
--- trunk/extension/firefox/CHANGES     2013-03-09 23:04:58 UTC (rev 9649)
+++ trunk/extension/firefox/CHANGES     2013-03-09 23:13:55 UTC (rev 9650)
@@ -1,5 +1,5 @@
 0.2 (??/03/2013, LT 2.1)
-- possibility to check text using a context menu item
+- possibility to check selection or text field using a context menu item
 - updated detection of speller rules (esp. German)
 - tell the server that the requests comes from this extension by prepending 
useragent=languagetoolfx to the URL
 - prevent some error messages to be printed to the error console

Modified: trunk/extension/firefox/lib/main.js
===================================================================
--- trunk/extension/firefox/lib/main.js 2013-03-09 23:04:58 UTC (rev 9649)
+++ trunk/extension/firefox/lib/main.js 2013-03-09 23:13:55 UTC (rev 9650)
@@ -276,9 +276,16 @@
        onClick: widgetOnClick
 });
 
-cm.Item({
+var contextmenuitemSelection=cm.Item({
        label: _("checkSelectionWithLTShort"),
-       context: cm.SelectionContext(), // TODO or in TEXTAREA (CSS selector)
+       context: cm.SelectionContext(),
        contentScript: 'self.on("click", self.postMessage);',
+       onMessage: widgetClicked
+});
+
+var contextmenuitemTextarea=cm.Item({
+       label: _("checkTextareaWithLTShort"),
+       context: cm.SelectorContext("textarea"),
+       contentScript: 'self.on("click", self.postMessage);',
        onMessage: widgetOnClick
 });

Modified: trunk/extension/firefox/locale/de-DE.properties
===================================================================
--- trunk/extension/firefox/locale/de-DE.properties     2013-03-09 23:04:58 UTC 
(rev 9649)
+++ trunk/extension/firefox/locale/de-DE.properties     2013-03-09 23:13:55 UTC 
(rev 9650)
@@ -2,6 +2,8 @@
 pleaseWaitWhileChecking=Bitte warten Sie, während der Text überprüft 
wird …
 noProblemsFound=Es wurden keine Probleme gefunden.
 checkSelectionWithLT=Markierten Text oder Text in Textfeld mit LanguageTool 
überprüfen
+checkTextareaWithLTShort=Textfeld mit LanguageTool überprüfen
+checkSelectionWithLTShort=Auswahl mit LanguageTool überprüfen
 moreInformation=mehr Informationen
 checkLtRunning=Bitte stellen Sie sicher, dass ein LanguageTool-Server unter %s 
läuft oder <a href="javascript:enableWebService();">aktivieren Sie den 
Webdienst</a>. (Wenn der Webdienst aktiviert wird, wird der Text über das 
Internet verschickt; bitte lesen Sie die <a 
href="https://addons.mozilla.org/firefox/addon/languagetoolfx/privacy/";>Datenschutzerklärung</a>
 für Details. Der Webdienst kann jederzeit in den Add-on-Einstellungen 
deaktiviert werden.)
 usingWebService=Benutzen des lokalen Servers fehlgeschlagen, verbinde mit 
Webdienst&nbsp;&hellip;

Modified: trunk/extension/firefox/locale/en-US.properties
===================================================================
--- trunk/extension/firefox/locale/en-US.properties     2013-03-09 23:04:58 UTC 
(rev 9649)
+++ trunk/extension/firefox/locale/en-US.properties     2013-03-09 23:13:55 UTC 
(rev 9650)
@@ -2,7 +2,8 @@
 pleaseWaitWhileChecking=Please wait while the text is being 
checked&nbsp;&hellip;
 noProblemsFound=No problems have been found.
 checkSelectionWithLT=Check selected text or text in text field with 
LanguageTool
-checkSelectionWithLTShort=Check with LanguageTool
+checkTextareaWithLTShort=Check text field with LanguageTool
+checkSelectionWithLTShort=Check selection with LanguageTool
 moreInformation=more information
 checkLtRunning=Please make sure that a LanguageTool Server is running on %s, 
or <a href="javascript:enableWebService();">enable the web service</a>. (When 
enabling the web service, the text is sent over the internet; please read the 
<a 
href="https://addons.mozilla.org/firefox/addon/languagetoolfx/privacy/";>privacy 
policy</a> for details. The web service can be disabled in the settings of the 
add-on at any time.)
 usingWebService=Using local server failed, connecting with web 
service&nbsp;&hellip;

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


------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
Languagetool-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-commits

Reply via email to