From c20a12cee5a7eb606de73c1f42351bce56b2046e Mon Sep 17 00:00:00 2001 From: "patrick.oreilly" Date: Sun, 29 Aug 2010 19:45:10 +0000 Subject: [PATCH] Added context menu option to highlight an email address in a page and send to phone as a mailto link. (issue 187) Updated German locale. Version number bump. --- .../chrome/content/ff-overlay.js | 5 ++- .../chrome/content/ff-overlay.xul | 5 +++ .../chrome/content/overlay.js | 37 +++++++++++++------ .../chrome/locale/cs/overlay.dtd | 2 + .../chrome/locale/de/overlay.dtd | 17 +++++---- .../chrome/locale/de/overlay.properties | 16 ++++---- .../chrome/locale/de/uploads.dtd | 2 +- .../chrome/locale/en-US/overlay.dtd | 2 + .../chrome/locale/es/overlay.dtd | 2 + .../chrome/locale/fr/overlay.dtd | 2 + .../chrome/locale/ga-IE/overlay.dtd | 2 + .../chrome/locale/hi-IN/overlay.dtd | 2 + .../chrome/locale/hu/overlay.dtd | 2 + .../chrome/locale/it/overlay.dtd | 2 + .../chrome/locale/ja-JP/overlay.dtd | 2 + .../chrome/locale/nl/overlay.dtd | 2 + .../chrome/locale/ru/overlay.dtd | 2 + .../chrome/locale/sr/overlay.dtd | 2 + .../chrome/locale/sr/uploads.dtd | 1 + .../chrome/locale/sv/overlay.dtd | 2 + .../chrome/locale/zh/overlay.dtd | 2 + third_party/firefox_sendtophone/install.rdf | 2 +- 22 files changed, 84 insertions(+), 29 deletions(-) create mode 100644 third_party/firefox_sendtophone/chrome/locale/sr/uploads.dtd diff --git a/third_party/firefox_sendtophone/chrome/content/ff-overlay.js b/third_party/firefox_sendtophone/chrome/content/ff-overlay.js index 935f328..8182143 100644 --- a/third_party/firefox_sendtophone/chrome/content/ff-overlay.js +++ b/third_party/firefox_sendtophone/chrome/content/ff-overlay.js @@ -111,7 +111,10 @@ sendtophone.showFirefoxContextMenu = function(event) { gContextMenu.showItem("context-sendtophone-text", gContextMenu.isTextSelected || (gContextMenu.onTextInput && gContextMenu.target.selectionEnd > gContextMenu.target.selectionStart) ); - + gContextMenu.showItem("context-sendtophone-email", (gContextMenu.isTextSelected || + (gContextMenu.onTextInput && gContextMenu.target.selectionEnd > gContextMenu.target.selectionStart))&& + this.detectEmail(this.selectText()) + ); gContextMenu.showItem("context-sendtophone-page", !( gContextMenu.inDirList || gContextMenu.isContentSelected || gContextMenu.onTextInput || gContextMenu.onLink || gContextMenu.onImage )); }; diff --git a/third_party/firefox_sendtophone/chrome/content/ff-overlay.xul b/third_party/firefox_sendtophone/chrome/content/ff-overlay.xul index b65174d..d5161b7 100644 --- a/third_party/firefox_sendtophone/chrome/content/ff-overlay.xul +++ b/third_party/firefox_sendtophone/chrome/content/ff-overlay.xul @@ -61,6 +61,11 @@ accesskey="&sendtophoneContextText.accesskey;" insertafter="context-searchselect" oncommand="sendtophone.onMenuItemCommand(event, 'text')"/> + + + diff --git a/third_party/firefox_sendtophone/chrome/locale/de/overlay.dtd b/third_party/firefox_sendtophone/chrome/locale/de/overlay.dtd index 2ada2a0..9082ebb 100644 --- a/third_party/firefox_sendtophone/chrome/locale/de/overlay.dtd +++ b/third_party/firefox_sendtophone/chrome/locale/de/overlay.dtd @@ -1,4 +1,4 @@ - + @@ -10,15 +10,18 @@ - + - + - + - + - + - + + + + diff --git a/third_party/firefox_sendtophone/chrome/locale/de/overlay.properties b/third_party/firefox_sendtophone/chrome/locale/de/overlay.properties index 060730c..c7cfb32 100644 --- a/third_party/firefox_sendtophone/chrome/locale/de/overlay.properties +++ b/third_party/firefox_sendtophone/chrome/locale/de/overlay.properties @@ -11,13 +11,13 @@ marketLink=Market Link smsLink=SMS-Nummer smstoLink=SMS-Nummer telLink=Telefonnummer -InvalidFile=Not a valid file -SendFileToPhone=Send files to your phone. -SendFolderToPhone=Send a folder to your phone. -qrTitle=QR Image Link -ConfirmQR=A QR image has been detected\n"%s"\nDo you want to send that instead of the page? +InvalidFile=Nicht eine gültige Datei +SendFileToPhone=Senden Sie Dateien auf Ihr Handy. +SendFolderToPhone=Senden Sie einen Ordner auf Ihrem Telefon. +qrTitle=QR-Bild Link +ConfirmQR=Ein QR-Bild wurde erkannt\n"%s"\nMöchten Sie senden möchten, dass anstelle der Seite? RememberMyDecision=Auswahl merken -qrContextMenu=Send "%s" to Android -FileUploadsDisabled=It's not possible to upload files to the phone. -FileTooBig=The file is too big. +qrContextMenu=Senden "%s" auf Android +FileUploadsDisabled=Es ist nicht möglich, Dateien auf das Telefon laden. +FileTooBig=Die Datei ist zu groß. videoTitle=Video Link diff --git a/third_party/firefox_sendtophone/chrome/locale/de/uploads.dtd b/third_party/firefox_sendtophone/chrome/locale/de/uploads.dtd index 4bc5eab..319198d 100644 --- a/third_party/firefox_sendtophone/chrome/locale/de/uploads.dtd +++ b/third_party/firefox_sendtophone/chrome/locale/de/uploads.dtd @@ -1 +1 @@ - + diff --git a/third_party/firefox_sendtophone/chrome/locale/en-US/overlay.dtd b/third_party/firefox_sendtophone/chrome/locale/en-US/overlay.dtd index c71a9bd..0a08ae2 100644 --- a/third_party/firefox_sendtophone/chrome/locale/en-US/overlay.dtd +++ b/third_party/firefox_sendtophone/chrome/locale/en-US/overlay.dtd @@ -22,3 +22,5 @@ + + diff --git a/third_party/firefox_sendtophone/chrome/locale/es/overlay.dtd b/third_party/firefox_sendtophone/chrome/locale/es/overlay.dtd index 8466d1b..cdecd6f 100644 --- a/third_party/firefox_sendtophone/chrome/locale/es/overlay.dtd +++ b/third_party/firefox_sendtophone/chrome/locale/es/overlay.dtd @@ -22,3 +22,5 @@ + + diff --git a/third_party/firefox_sendtophone/chrome/locale/fr/overlay.dtd b/third_party/firefox_sendtophone/chrome/locale/fr/overlay.dtd index 9667101..a3d7712 100644 --- a/third_party/firefox_sendtophone/chrome/locale/fr/overlay.dtd +++ b/third_party/firefox_sendtophone/chrome/locale/fr/overlay.dtd @@ -22,3 +22,5 @@ + + diff --git a/third_party/firefox_sendtophone/chrome/locale/ga-IE/overlay.dtd b/third_party/firefox_sendtophone/chrome/locale/ga-IE/overlay.dtd index f3076cf..9184020 100644 --- a/third_party/firefox_sendtophone/chrome/locale/ga-IE/overlay.dtd +++ b/third_party/firefox_sendtophone/chrome/locale/ga-IE/overlay.dtd @@ -22,3 +22,5 @@ + + diff --git a/third_party/firefox_sendtophone/chrome/locale/hi-IN/overlay.dtd b/third_party/firefox_sendtophone/chrome/locale/hi-IN/overlay.dtd index ee0031c..ca5d98b 100644 --- a/third_party/firefox_sendtophone/chrome/locale/hi-IN/overlay.dtd +++ b/third_party/firefox_sendtophone/chrome/locale/hi-IN/overlay.dtd @@ -22,3 +22,5 @@ + + diff --git a/third_party/firefox_sendtophone/chrome/locale/hu/overlay.dtd b/third_party/firefox_sendtophone/chrome/locale/hu/overlay.dtd index 328a533..eece523 100644 --- a/third_party/firefox_sendtophone/chrome/locale/hu/overlay.dtd +++ b/third_party/firefox_sendtophone/chrome/locale/hu/overlay.dtd @@ -22,3 +22,5 @@ + + diff --git a/third_party/firefox_sendtophone/chrome/locale/it/overlay.dtd b/third_party/firefox_sendtophone/chrome/locale/it/overlay.dtd index 48924e2..f45a64d 100644 --- a/third_party/firefox_sendtophone/chrome/locale/it/overlay.dtd +++ b/third_party/firefox_sendtophone/chrome/locale/it/overlay.dtd @@ -22,3 +22,5 @@ + + diff --git a/third_party/firefox_sendtophone/chrome/locale/ja-JP/overlay.dtd b/third_party/firefox_sendtophone/chrome/locale/ja-JP/overlay.dtd index 26b9db2..8bf69ba 100644 --- a/third_party/firefox_sendtophone/chrome/locale/ja-JP/overlay.dtd +++ b/third_party/firefox_sendtophone/chrome/locale/ja-JP/overlay.dtd @@ -22,3 +22,5 @@ + + diff --git a/third_party/firefox_sendtophone/chrome/locale/nl/overlay.dtd b/third_party/firefox_sendtophone/chrome/locale/nl/overlay.dtd index f0d1d9c..b2f8eff 100644 --- a/third_party/firefox_sendtophone/chrome/locale/nl/overlay.dtd +++ b/third_party/firefox_sendtophone/chrome/locale/nl/overlay.dtd @@ -18,3 +18,5 @@ + + diff --git a/third_party/firefox_sendtophone/chrome/locale/ru/overlay.dtd b/third_party/firefox_sendtophone/chrome/locale/ru/overlay.dtd index 658001f..9fdef77 100644 --- a/third_party/firefox_sendtophone/chrome/locale/ru/overlay.dtd +++ b/third_party/firefox_sendtophone/chrome/locale/ru/overlay.dtd @@ -22,3 +22,5 @@ + + diff --git a/third_party/firefox_sendtophone/chrome/locale/sr/overlay.dtd b/third_party/firefox_sendtophone/chrome/locale/sr/overlay.dtd index 3270a3a..627b727 100644 --- a/third_party/firefox_sendtophone/chrome/locale/sr/overlay.dtd +++ b/third_party/firefox_sendtophone/chrome/locale/sr/overlay.dtd @@ -22,3 +22,5 @@ + + diff --git a/third_party/firefox_sendtophone/chrome/locale/sr/uploads.dtd b/third_party/firefox_sendtophone/chrome/locale/sr/uploads.dtd new file mode 100644 index 0000000..4bc5eab --- /dev/null +++ b/third_party/firefox_sendtophone/chrome/locale/sr/uploads.dtd @@ -0,0 +1 @@ + diff --git a/third_party/firefox_sendtophone/chrome/locale/sv/overlay.dtd b/third_party/firefox_sendtophone/chrome/locale/sv/overlay.dtd index 54a7a02..127269f 100644 --- a/third_party/firefox_sendtophone/chrome/locale/sv/overlay.dtd +++ b/third_party/firefox_sendtophone/chrome/locale/sv/overlay.dtd @@ -22,3 +22,5 @@ + + diff --git a/third_party/firefox_sendtophone/chrome/locale/zh/overlay.dtd b/third_party/firefox_sendtophone/chrome/locale/zh/overlay.dtd index de503ec..ef81ac7 100644 --- a/third_party/firefox_sendtophone/chrome/locale/zh/overlay.dtd +++ b/third_party/firefox_sendtophone/chrome/locale/zh/overlay.dtd @@ -22,3 +22,5 @@ + + diff --git a/third_party/firefox_sendtophone/install.rdf b/third_party/firefox_sendtophone/install.rdf index c4b4459..d32a390 100644 --- a/third_party/firefox_sendtophone/install.rdf +++ b/third_party/firefox_sendtophone/install.rdf @@ -4,7 +4,7 @@ sendtophone@martinezdelizarrondo.com 2 Fox To Phone - 1.1 + 1.2 Alfonso & Patrick Send links to your Android 2.2 phone using the new C2DM service. Based on the ChromeToPhone extension.