[Pkg-mozext-commits] [automatic-save-folder] 42/133: Fix : - When saving with a right-click, if no file hosted domain were returned, the full current URL was used instead of the domain only. - Corrected an exception when downloading with right-click and no hosted domain was returned (like when saving a screenshot using Abduction! Add-on) [Thanks to Wiiwaker] - few locales spelling corrections.
David Prévot
taffit at moszumanska.debian.org
Mon Apr 27 20:33:50 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch wip
in repository automatic-save-folder.
commit eedb317dfa9e3c29f39f6ea0e83351ce66d2e505
Author: Cyan <Cyan at d0063192-6b2e-11de-89a9-0b20f3e2dceb>
Date: Sat Dec 12 22:09:36 2009 +0000
Fix :
- When saving with a right-click, if no file hosted domain were returned,
the full current URL was used instead of the domain only.
- Corrected an exception when downloading with right-click and no hosted domain
was returned (like when saving a screenshot using Abduction! Add-on)
[Thanks to Wiiwaker]
- few locales spelling corrections.
git-svn-id: http://automatic-save-folder.googlecode.com/svn/trunk@42 d0063192-6b2e-11de-89a9-0b20f3e2dceb
---
content/asf_right_click.js | 25 ++++++++++++++++++++++---
locale/en-US/about.dtd | 4 ++--
locale/en-US/asf.properties | 6 +++---
locale/en-US/help.dtd | 2 +-
locale/en-US/regexp.dtd | 6 +++---
locale/fr-FR/about.dtd | 10 +++++-----
locale/fr-FR/asf.dtd | 2 +-
locale/fr-FR/help.dtd | 4 ++--
8 files changed, 39 insertions(+), 20 deletions(-)
diff --git a/content/asf_right_click.js b/content/asf_right_click.js
index ed8b52b..f725bd3 100644
--- a/content/asf_right_click.js
+++ b/content/asf_right_click.js
@@ -276,7 +276,16 @@ var automatic_save_folder = {
// var domain = document.getElementById("source").value ;
// var filename = document.getElementById("location").value ;
- var domain = aFpP.fileInfo.uri.scheme+"://"+aFpP.fileInfo.uri.host ;
+ try
+ {
+ var domain = aFpP.fileInfo.uri.scheme+"://"+aFpP.fileInfo.uri.host ;
+ }
+ catch(e) // If the saved data is not from an URL, use the current website URL (example : Abduction! add-on screenshot function saving the current page into image)
+ {
+ var domain = document.getElementById("urlbar").value;
+ domain = domain.match(/^(.*?:\/\/)?.*?[^\/]+/);
+ domain = domain[0];
+ }
var filename = aFpP.fileInfo.fileName
// For Ctrl+S, if pagename.ext is not on the URL document.title is used as filename, add .htm to the filename
@@ -542,8 +551,18 @@ var automatic_save_folder = {
const ZERO = "0"; // leading zero
// load the domain and the filename of the saved file
- var domain = aFpP.fileInfo.uri.host ;
- var scheme = aFpP.fileInfo.uri.scheme ;
+ try
+ {
+ var domain = aFpP.fileInfo.uri.host ;
+ var scheme = aFpP.fileInfo.uri.scheme ;
+ }
+ catch(e) // If the saved data is not from an URL, use the current website URL (example : Abduction! add-on screenshot function saving the current page into image)
+ {
+ var domain = document.getElementById("urlbar").value;
+ domain = domain.match(/^(.*?:\/\/)?.*?[^\/]+/);
+ var scheme = domain[1];
+ domain = domain[0];
+ }
var filename = aFpP.fileInfo.fileName ;
var file_name = aFpP.fileInfo.fileBaseName ;
var extension = aFpP.fileInfo.fileExt ;
diff --git a/locale/en-US/about.dtd b/locale/en-US/about.dtd
index dfdb53c..2e347a1 100644
--- a/locale/en-US/about.dtd
+++ b/locale/en-US/about.dtd
@@ -29,7 +29,7 @@
<!ENTITY about.version.094 "+ Add filtering on Right-Click menus "Save link as...", "Save image as..." and "Save as...(Ctrl+S)"
(Need at least Firefox 2.0 and is not compatible with Download Sort add-on. If you have both activated, Download Sort prevails)
+ ASF is now working with Private browsing, and will prevent saving any data to Firefox preferences.
- Two things to note which change ASF behaviour: 1) The previous hosted domain will not be updated, and 2) If the destination folder doesn't exist it will not be created or suggested, and the last working folder from non private mode will be used instead.
+ Two things to note which change ASF behavior: 1) The previous hosted domain will not be updated, and 2) If the destination folder doesn't exist it will not be created or suggested, and the last working folder from non private mode will be used instead.
+ Add dynamic variables %F% for the month name, and %M% for the abbreviated one.
+ Add dynamic variables for weeks: Week number %W%, Day of the week %w%, %l% or %D%
+ Make Windows and Mac OSX works with Firefox option "browser.preferences.instantApply" to save the filters right after a modification (Option by default on Linux)
@@ -141,7 +141,7 @@ I removed the "Accept" button and replaced it with a scripted one "S
<!ENTITY about.thanks.title "Thanks to">
-<!ENTITY about.programmation.title "Programmation">
+<!ENTITY about.programmation.title "Programming">
<!ENTITY about.programmation.content "I would like to thanks specially:<br />
- DownThemAll and Download sort extension's authors, from who I learned a lot by looking at their source code.<br />
- http://captain.at, late xulplanet.com, http://xulfr.org, for their Xul and javascript ressources.<br />
diff --git a/locale/en-US/asf.properties b/locale/en-US/asf.properties
index a18ad68..161ab22 100644
--- a/locale/en-US/asf.properties
+++ b/locale/en-US/asf.properties
@@ -40,6 +40,6 @@ day6_abbr=Sat
select_default_folder=Please select the default folder if no filter is found.
select_folder=Please select the destination folder for this filter.
-nodata.domain=The domain is empty. Please choose 'All' or enter filter for the domain
-nodata.filename=The filename is empty. Please choose 'All' or enter a filter for the filename
-nodata.folder=The folder is empty. Please select the destination folder for this filter
+nodata.domain=The domain is empty. Please choose 'All' or enter a filter for the domain.
+nodata.filename=The filename is empty. Please choose 'All' or enter a filter for the filename.
+nodata.folder=The folder is empty. Please select the destination folder for this filter.
diff --git a/locale/en-US/help.dtd b/locale/en-US/help.dtd
index 777eb80..ce4c16c 100644
--- a/locale/en-US/help.dtd
+++ b/locale/en-US/help.dtd
@@ -6,7 +6,7 @@
<!ENTITY info.capturefilter "Capture Filter">
<!ENTITY info.important.title "Important">
-<!ENTITY info.important.text1 "The filtering on common downloads (simple click, or automatic download) works only if the download window "What should Firefox do with this file?" is shown:<br />">
+<!ENTITY info.important.text1 "The filtering on common downloads (simple click, or automatic download) works only if the download window "What should Firefox do with this file?" is shown:">
<!-- Screenshot from your language, place it in skin folder. Take a screen of the 'What should Firefox do with this file?' saving window (you can resize the picture if you find it a little too big)-->
<!ENTITY info.important.pict1 "screen_save_en.png">
<!ENTITY info.important.text2 "So, be sure to check if Firefox doesn't use another process preventing the window to appear by following this method:">
diff --git a/locale/en-US/regexp.dtd b/locale/en-US/regexp.dtd
index b631cf4..90edcb2 100644
--- a/locale/en-US/regexp.dtd
+++ b/locale/en-US/regexp.dtd
@@ -6,11 +6,11 @@
<!ENTITY Note1.text "All the filters are case insensitive.">
<!ENTITY Note2.title "Note 2">
<!ENTITY Note2.text "The regexp in this plugin needs to be capture inside a / / statement.
-All the examples below are writen without the / / at the beginning and the end of the filters in order to be easily readable.
+All the examples below are written without the / / at the beginning and the end of the filters in order to be easily readable.
When you check the checkbox 'regexp' in the filter window, the / / will be added automatically.">
<!ENTITY Title_1 "The special tags">
-<!ENTITY Intro_3 "The same way the * character (asterisk) is used in common filter to replace an undertermined number of letters,
+<!ENTITY Intro_3 "The same way the * character (asterisk) is used in common filter to replace an undetermined number of letters,
the regular expression use many special characters to match different group of letters :">
<!ENTITY The.dot.title "The dot .">
@@ -29,7 +29,7 @@ so this is what is used when you select "All" in the filter creation win
The filtering will be correct for 'http://test.com' but will not for 'ftp://http_test.com' because http is not at the begining but in the middle.">
<!ENTITY The.dollar.title "The dollar $">
-<!ENTITY The.dollar.text "Le dollar dollar $ is used to detect the end of the line. 'com$' will match every string ending with 'com'.<br />
+<!ENTITY The.dollar.text "The dollar $ is used to detect the end of the line. 'com$' will match every string ending with 'com'.<br />
The filtering will be correct for 'http://test.com' but will not for 'http://computer.net' because 'com' is not at the end of the line but in the middle.">
<!ENTITY The.braces.title "The braces {}">
diff --git a/locale/fr-FR/about.dtd b/locale/fr-FR/about.dtd
index 704eb7b..eddd6b9 100644
--- a/locale/fr-FR/about.dtd
+++ b/locale/fr-FR/about.dtd
@@ -28,16 +28,16 @@
<!-- Conserver les retour à la ligne car le tag < pre > est utilisé, gardez les deux espaces en début de ligne pour l'indentation -->
<!ENTITY about.version.094 "+ Ajout du filtrage avec les menus du clic-droit "Enregistrer la cible sous...", "Enregistrer l'image sous..." et "Enregistrer sous...(Ctrl+S)"
(Ne fonctionne qu'à partir de Firefox 2.0 et est incompatible avec l'extension Download Sort. Si les deux extensions sont activées, Download Sort est prioritaire)
-+ ASF fonctionne maintenant avec la Navigation Privée, empéchant toutes données d'être enregistrées dans les préférences de Firefox.
++ ASF fonctionne maintenant avec la Navigation Privée, empêchant toutes données d'être enregistrées dans les préférences de Firefox.
Deux choses à noter qui modifient le fonctionnement d'ASF : 1) Le précédent domaine d'hébergement ne sera pas mémorisé, et 2) Si le dossier de destination n'existe pas, il ne sera ni créé ni suggéré, et le dernier dossier valide connu en Navigation Non Privée sera utilisé à la place.
+ Ajout des variables dynamiques %F% pour le nom du mois, et %M% pour son abréviation.
-+ Ajout des varables dynamiques pour la semaine : Numéro de la semaine %W%, Jour de la semaine %w%, %l% ou %D%
++ Ajout des variables dynamiques pour la semaine : Numéro de la semaine %W%, Jour de la semaine %w%, %l% ou %D%
+ Prise en compte pour Windows et Mac OSX de l'option "browser.preferences.instantApply" afin de sauvegarder les filtres des leur modification (option par défaut sur Linux).
+ Ajout du Glisser-déposer (Drag and Drop) dans la liste des filtres pour les repositionner rapidement.
-+ Ajout d'une option pour choisir le mode d'enregistrement de Firefox ("Toujours demander où enregistrer les fichiers" ou "Enregistrer les fichiers dans le dossier"), et selectionner manuellement le dossier plutôt que de forcer sur "Défini par les filtres" (browser.download.folderList=2)
++ Ajout d'une option pour choisir le mode d'enregistrement de Firefox ("Toujours demander où enregistrer les fichiers" ou "Enregistrer les fichiers dans le dossier"), et sélectionner manuellement le dossier plutôt que de forcer sur "Défini par les filtres" (browser.download.folderList=2)
+ Ajout d'une option pour accepter automatiquement la fenêtre "Que doit faire Firefox de ce fichier ?". Utilisez la avec l'option de sauvegarde de Firefox "Enregistrer le fichier dans le dossier" pour une meilleure efficacité.
+ Ajout d'une option pour utiliser l'adresse du site courant avec le domaine du filtre si le domaine d'hébergement ne correspond pas.
-+ Affichage de l'icone d'ASF dans le gestionnaire d'extensions même lorsque l'extension est désactivée, plutôt que la pièce de puzzle verte (Firefox 3.6+)
++ Affichage de l'icône d'ASF dans le gestionnaire d'extensions même lorsque l'extension est désactivée, plutôt que la pièce de puzzle verte (Firefox 3.6+)
* Dans le menu déroulant sur la fenêtre de sauvegarde : Listing des dossiers par ordre alphabétique, suppression des doublons et nom de dossier dynamique si l'option est activée.
* Séparation de l'onglet "informations" en deux onglets "Aide" et "À propos...".
* Ajout d'infobulles à la place du texte explicatif sous les options (Quelques problèmes rencontrés avec Firefox2).
@@ -72,7 +72,7 @@ Autres mises à jour :
* Meilleure visibilité : Les zones de texte s'agrandissent maintenant avec le changement de taille des fenêtres de préférence et d'aides.
* Modification complète du script en Global Namespace, demandé par mozilla.org afin de sous-mettre l'extension en zone public.
* Simplifications des fonctions du script et ajout des commentaires du code.
-! Enregistrement des données au format unicode (Les filtres présents dans les versions précédentes contenant des caractères accentués peuvent ne plus fonctionner. Vous devrez les redéfinir).
+! Enregistrement des données au format Unicode (Les filtres présents dans les versions précédentes contenant des caractères accentués peuvent ne plus fonctionner. Vous devrez les redéfinir).
! Correction du paramètre d'édition par double-clic sur un filtre venant d'être ajouté.
! Correction du bug qui empêchait la lecture des préférences non définies ou inexistantes dans about:config. (Merci à Martin)">
diff --git a/locale/fr-FR/asf.dtd b/locale/fr-FR/asf.dtd
index b06001d..ba2854a 100644
--- a/locale/fr-FR/asf.dtd
+++ b/locale/fr-FR/asf.dtd
@@ -87,7 +87,7 @@
<!ENTITY asf.addedit.regexphelp.label "Aide pour les Regexp.">
<!ENTITY asf.addedit.inforegexp1 "Les filtres peuvent être :">
-<!ENTITY asf.addedit.inforegexp2 "Définis : fichier_a_telecharger.zip">
+<!ENTITY asf.addedit.inforegexp2 "Définis : fichier_à_télécharger.zip">
<!ENTITY asf.addedit.inforegexp3 "Partiels : fichier*.zip">
<!ENTITY asf.addedit.inforegexp4 "Expression régulière : .*(.rar|.zip)$">
diff --git a/locale/fr-FR/help.dtd b/locale/fr-FR/help.dtd
index 50c4eb5..a00c971 100644
--- a/locale/fr-FR/help.dtd
+++ b/locale/fr-FR/help.dtd
@@ -6,7 +6,7 @@
<!ENTITY info.capturefilter "Filtre de capture">
<!ENTITY info.important.title "Important">
-<!ENTITY info.important.text1 "Le filtrage sur les téléchargements normaux (simple clic, ou téléchargement automatique) ne fonctionne que si la fenêtre de téléchargement "Que doit faire Firefox avec ce fichier ?" s'affiche :<br />">
+<!ENTITY info.important.text1 "Le filtrage sur les téléchargements normaux (simple clic, ou téléchargement automatique) ne fonctionne que si la fenêtre de téléchargement "Que doit faire Firefox avec ce fichier ?" s'affiche :">
<!-- Screenshot from your language. Take a screen of the 'What should Firefox do with this file?' saving window (you can resize the picture if you find it a little too big) -->
<!ENTITY info.important.pict1 "screen_save_80fr.png">
<!ENTITY info.important.text2 "Par conséquent, vérifiez que Firefox ne lance pas un traitement différent sur le fichier empêchant la fenêtre de s'afficher en suivant ces instructions :">
@@ -69,7 +69,7 @@ $1f correspond au contenu de la 1ere parenthèse du filtre sur le nom de fichier
Le fichier "Firefox Setup 3.5.4.exe" sera donc enregistré dans le répertoire D:\Téléchargements\Firefox\3.5.4\">
<!ENTITY info.advancedexample.text11 "Pour créer ou non des sous-dossiers différents suivant le contenu du nom de fichier :">
-<!ENTITY info.advancedexample.text12 "Exemple de consignes : Nous souhaitons télécharger des vidéos nommées "Mes_vacances_date-du-sejour.avi".<br />
+<!ENTITY info.advancedexample.text12 "Exemple de consignes : Nous souhaitons télécharger des vidéos nommées "Mes_vacances_date-du-séjour.avi".<br />
Les vidéos comportent des sous-titres .srt pour expliquer le voyage, des fichiers .zip sont également disponibles contenant des photos du séjour, les vidéos peuvent être distribuées en .avi, .torrent ou .nzb (newsgroup).<br />
<br />Les ".avi" et ".srt" devront aller dans le dossier D:\video\vacances. <br />
Les ".zip", ".torrent" et ".nzb" devront aller respectivement dans leur sous-dossier D:\video\vacances\zip, D:\video\vacances\torrent et D:\video\vacances\nzb.">
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/automatic-save-folder.git
More information about the Pkg-mozext-commits
mailing list