[Pkg-mozext-commits] [automatic-save-folder] 20/133: Add : Added the week of the year %W%, and the day of the week variables %w% , %l% (lowercase L) and %D%
David Prévot
taffit at moszumanska.debian.org
Mon Apr 27 20:33:48 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 57979a57b7355cc6be1fb800ff85454bc4bb5a6e
Author: Cyan <Cyan at d0063192-6b2e-11de-89a9-0b20f3e2dceb>
Date: Sat Oct 17 17:59:26 2009 +0000
Add :
Added the week of the year %W%, and the day of the week variables %w% , %l% (lowercase L) and %D%
git-svn-id: http://automatic-save-folder.googlecode.com/svn/trunk@20 d0063192-6b2e-11de-89a9-0b20f3e2dceb
---
content/asf_download.js | 17 ++++++++++++++
locale/en-US/asf.properties | 36 ++++++++++++++++++++---------
locale/fr-FR/asf.properties | 36 ++++++++++++++++++++---------
locale/it-IT/asf.properties | 56 ++++++++++++++++++++++++++++-----------------
4 files changed, 102 insertions(+), 43 deletions(-)
diff --git a/content/asf_download.js b/content/asf_download.js
index 5e8783b..5ef6cda 100644
--- a/content/asf_download.js
+++ b/content/asf_download.js
@@ -280,6 +280,11 @@ Copyright (C) 2007-2009 Eric Cassar (Cyan).
if (!path) return false;
if (this.trim(path).length==0) return false;
+ Date.prototype.getWeek = function() // Add the getWeek() function do date()
+ {
+ var onejan = new Date(this.getFullYear(),0,1);
+ return Math.ceil((((this - onejan) / 86400000) + onejan.getDay()+1)/7);
+ }
var objdate = new Date();
// make the array with the month's name in the stringbundle of the locale language path.
@@ -290,11 +295,18 @@ Copyright (C) 2007-2009 Eric Cassar (Cyan).
var fullmonthname = new Array();
var abbrmonthname = new Array();
+ var fulldayname = new Array();
+ var abbrdayname = new Array();
for (var i = 1 ; i<= 12 ; i++)
{
fullmonthname[i-1] = stringbundle.GetStringFromName("month"+i+"_full");
abbrmonthname[i-1] = stringbundle.GetStringFromName("month"+i+"_abbr");
}
+ for (var i = 0 ; i<= 6 ; i++)
+ {
+ fulldayname[i] = stringbundle.GetStringFromName("day"+i+"_full");
+ abbrdayname[i] = stringbundle.GetStringFromName("day"+i+"_abbr");
+ }
const ZERO = "0"; // leading zero
@@ -434,6 +446,11 @@ Copyright (C) 2007-2009 Eric Cassar (Cyan).
.replace(/%n%/g, objdate.getMonth()+1) // 8, 9, 10, (no leading 0)
.replace(/%F%/g, fullmonthname[objdate.getMonth()]) // full month name
.replace(/%M%/g, abbrmonthname[objdate.getMonth()]) // abbreviated month name
+ // Week
+ .replace(/%W%/g, ((objdate.getWeek()) <10) ? (ZERO + (objdate.getWeek())) : objdate.getWeek()) // = number of the week : 01 to 54
+ .replace(/%w%/g, objdate.getDay()) // = Day of the week, from 0 (sunday) to 6 (saturday)
+ .replace(/%l%/g, fulldayname[objdate.getDay()]) // = Full day name
+ .replace(/%D%/g, abbrdayname[objdate.getDay()]) // = Abbreviated day name
// Day
.replace(/%d%/g, ((objdate.getDate()) <10) ? (ZERO + (objdate.getDate())) : objdate.getDate()) // = number of the day : 01 to 31
.replace(/%j%/g, objdate.getDate()) // = number of the day 1 to 31 (no leading 0)
diff --git a/locale/en-US/asf.properties b/locale/en-US/asf.properties
index 11f42f9..4c87346 100644
--- a/locale/en-US/asf.properties
+++ b/locale/en-US/asf.properties
@@ -1,28 +1,42 @@
extensions.asf at mangaheart.org.description=Automatically select the destination folder for your download, matching the filename and domain.
month1_full=January
-month1_abbr=Jan
month2_full=February
-month2_abbr=Feb
month3_full=March
-month3_abbr=Mar
month4_full=April
-month4_abbr=Apr
month5_full=May
-month5_abbr=May
month6_full=June
-month6_abbr=Jun
month7_full=July
-month7_abbr=Jul
month8_full=August
-month8_abbr=Aug
month9_full=September
-month9_abbr=Sep
month10_full=October
-month10_abbr=Oct
month11_full=November
-month11_abbr=Nov
month12_full=December
+month1_abbr=Jan
+month2_abbr=Feb
+month3_abbr=Mar
+month4_abbr=Apr
+month5_abbr=May
+month6_abbr=Jun
+month7_abbr=Jul
+month8_abbr=Aug
+month9_abbr=Sep
+month10_abbr=Oct
+month11_abbr=Nov
month12_abbr=Dec
+day0_full=Sunday
+day1_full=Monday
+day2_full=Tuesday
+day3_full=Wednesday
+day4_full=Thursday
+day5_full=Friday
+day6_full=Saturday
+day0_abbr=Sun
+day1_abbr=Mon
+day2_abbr=Tue
+day3_abbr=Wed
+day4_abbr=Thu
+day5_abbr=Fri
+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.
\ No newline at end of file
diff --git a/locale/fr-FR/asf.properties b/locale/fr-FR/asf.properties
index 9d984ce..48ea608 100644
--- a/locale/fr-FR/asf.properties
+++ b/locale/fr-FR/asf.properties
@@ -1,28 +1,42 @@
extensions.asf at mangaheart.org.description=Sélectionne automatiquement le dossier d'enregistrement suivant le nom du fichier et le site d'hébergement.
month1_full=Janvier
-month1_abbr=Jan
month2_full=Février
-month2_abbr=Fev
month3_full=Mars
-month3_abbr=Mar
month4_full=Avril
-month4_abbr=Avr
month5_full=Mai
-month5_abbr=Mai
month6_full=Juin
-month6_abbr=Jun
month7_full=Juillet
-month7_abbr=Jul
month8_full=Août
-month8_abbr=Aoû
month9_full=Septembre
-month9_abbr=Sep
month10_full=Octobre
-month10_abbr=Oct
month11_full=Novembre
-month11_abbr=Nov
month12_full=Décembre
+month1_abbr=Jan
+month2_abbr=Fev
+month3_abbr=Mar
+month4_abbr=Avr
+month5_abbr=Mai
+month6_abbr=Jun
+month7_abbr=Jul
+month8_abbr=Aoû
+month9_abbr=Sep
+month10_abbr=Oct
+month11_abbr=Nov
month12_abbr=Déc
+day0_full=Dimanche
+day1_full=Lundi
+day2_full=Mardi
+day3_full=Mercredi
+day4_full=Jeudi
+day5_full=Vendredi
+day6_full=Samedi
+day0_abbr=Dim
+day1_abbr=Lun
+day2_abbr=Mar
+day3_abbr=Mer
+day4_abbr=Jeu
+day5_abbr=Ven
+day6_abbr=Sam
select_default_folder=Sélectionnez le dossier de destination par défaut, lorsqu'aucun filtre n'est trouvé.
select_folder=Sélectionnez le dossier de destination pour ce filtre.
\ No newline at end of file
diff --git a/locale/it-IT/asf.properties b/locale/it-IT/asf.properties
index b8767eb..ba60969 100644
--- a/locale/it-IT/asf.properties
+++ b/locale/it-IT/asf.properties
@@ -1,28 +1,42 @@
extensions.asf at mangaheart.org.description=Seleziona automaticamente la cartella di destinazione dei tuoi download, in base al nome del file e dominio.
-month1_full=January
-month1_abbr=Jan
-month2_full=February
+month1_full=Gennaio
+month2_full=Febbraio
+month3_full=Marzo
+month4_full=Aprile
+month5_full=Maggio
+month6_full=Giugno
+month7_full=Luglio
+month8_full=Agosto
+month9_full=Settembre
+month10_full=Ottobre
+month11_full=Novembre
+month12_full=Dicembre
+month1_abbr=Gen
month2_abbr=Feb
-month3_full=March
month3_abbr=Mar
-month4_full=April
month4_abbr=Apr
-month5_full=May
-month5_abbr=May
-month6_full=June
-month6_abbr=Jun
-month7_full=July
-month7_abbr=Jul
-month8_full=August
-month8_abbr=Aug
-month9_full=September
-month9_abbr=Sep
-month10_full=October
-month10_abbr=Oct
-month11_full=November
+month5_abbr=Mag
+month6_abbr=Giu
+month7_abbr=Lug
+month8_abbr=Ago
+month9_abbr=Set
+month10_abbr=Ott
month11_abbr=Nov
-month12_full=December
-month12_abbr=Dec
+month12_abbr=Dic
+day0_full=Domenica
+day1_full=Lunedì
+day2_full=Martedì
+day3_full=Mercoledì
+day4_full=Giovedì
+day5_full=Venerdì
+day6_full=Sabato
+day0_abbr=DOM
+day1_abbr=LUN
+day2_abbr=MAR
+day3_abbr=MER
+day4_abbr=GIO
+day5_abbr=VEN
+day6_abbr=SAB
select_default_folder=Seleziona la cartella predefinita se nessun filtro corrisponde
-select_folder=Please select the destination folder for this filter.
\ No newline at end of file
+select_folder=Select the destination folder for this filter.
\ No newline at end of file
--
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