OK, I think I fixed the English translations and added the missing date stuff. Here's a combined patch which supercedes the previous patch, which fixes the dates for both French (leaves French dates as e.g. "Sat 10/10/2010" and English as Weekday, Month Day, Year, e.g. "Sat Oct 10, 2010":
Code:
Index: resources/language/French/strings.xml
===================================================================
--- resources/language/French/strings.xml (revision 132)
+++ resources/language/French/strings.xml (working copy)
@@ -7,7 +7,7 @@
<string id="30003">%m/%Y</string> <!-- month format -->
<string id="30004">%Y</string> <!-- year format -->
<string id="30005">Lu.|Ma.|Me.|Je.|Ve.|Sa.|Di.</string>
- <string id="30006"></string>
+ <string id="30006">janv.|fév.|mars|av.|mai|juin|juil.|août|sep.|oct.|nov.|déc.</string>
<string id="30020">Dossier images</string>
<string id="30021">Retirer de la base les images manquantes</string>
Index: resources/language/English/strings.xml
===================================================================
--- resources/language/English/strings.xml (revision 132)
+++ resources/language/English/strings.xml (working copy)
@@ -2,17 +2,31 @@
<strings>
<string id="30000">MyPicture Database</string>
<string id="30001">Database</string>
+ <!-- Date formats : use the date formatting you found in this : http://docs.python.org/library/time.html#time.strftime -->
+ <string id="30002">%a %b %d, %Y</string> <!-- date format -->
+ <string id="30003">%b %Y</string> <!-- month format -->
+ <string id="30004">%Y</string> <!-- year format -->
+ <string id="30005">Mon|Tue|Wed|Thu|Fri|Sat|Sun</string>
+ <string id="30006">Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec</string>
<string id="30020">Picture folder</string>
<string id="30021">Remove from database missing pictures</string>
- <string id="30022">Recursive scan ( all sub-folders will be scanned for pictures )</string>
- <string id="30023">Folder to scan</string>
- <string id="30024">Perform a scan now !</string>
+ <string id="30022">Recursive scan (all sub-folders will be scanned for pictures)</string>
+
+ <string id="30024">Perform the scan at startup</string>
<string id="30025">Initialize the database before scanning</string>
-
+ <string id="30026">Use image as fanart</string>
+
<string id="30050">pics</string>
+
+ <string id="30060">Geolocalization</string>
+ <string id="30061">Archive these images</string>
+ <string id="30062">Export these images to...</string>
+
+ <string id="30098">Global search</string>
+ <string id="30099">Root folders</string>
- <string id="30100">All the period %s (%s pics)</string>
+ <string id="30100">All images from %s (%s pics)</string>
<string id="30101">Browse by Dates</string>
<string id="30102">Browse by Folders</string>
<string id="30103">Browse by keywords</string>
@@ -26,9 +40,9 @@
<string id="30111">Delete this period</string>
<string id="30112">Rename this period</string>
<string id="30113">From %s to %s</string>
- <string id="30114"></string>
- <string id="30115"></string>
- <string id="30116"></string>
+ <string id="30114">Manually enter a date</string>
+ <string id="30115">Search for word</string>
+ <string id="30116">%s results for %s in %s</string>
<string id="30150">Collections</string>
<string id="30151">Remove from the collection</string>
@@ -41,17 +55,19 @@
<string id="30158">Remove this collection</string>
<string id="30159">Rename this collection</string>
<string id="30160">Create a new collection</string>
-
- <string id="30201">No folders to scan is set !</string>
- <string id="30202">Please edit plugin settings to set the picture path to scan</string>
- <string id="30203">Path to scan :</string>
- <string id="30204">Deleting missing folders...</string>
- <string id="30205">Opening database :</string>
- <string id="30206"></string>
- <string id="30207"></string>
- <string id="30208"></string>
- <string id="30209"></string>
- <string id="30210"></string>
- <string id="30211"></string>
- <string id="30212"></string>
+
+ <string id="30201">Folder to scan</string>
+ <string id="30202">Browse this folder recursively</string>
+ <string id="30203">Delete entries in database if the images are not found</string>
+ <string id="30204">Folder added</string>
+ <string id="30205">Folder deleted</string>
+ <string id="30206">Perform a scan now</string>
+ <string id="30207">Ignore this folder in the database</string>
+ <string id="30208">Add a folder to the database</string>
+
+ <string id="30300">Filename</string>
+ <string id="30301">Folder</string>
+ <string id="30302">Thumbnail</string>
+ <string id="30303">Loading map...</string>
+
</strings>
Index: default.py
===================================================================
--- default.py (revision 132)
+++ default.py (working copy)
@@ -209,6 +209,7 @@
#value = "2009"|"12/2009"|"25/12/2009"
action="showdate"
weekdayname = __language__(30005).split("|")
+ monthname = __language__(30006).split("|")
if self.args.period=="year":
listperiod=MPDB.get_years()
nextperiod="month"
@@ -224,7 +225,7 @@
allperiod="year"
action="showdate"
periodformat="%Y-%m"
- displaydate=__language__(30003)#%m/%Y
+ displaydate=__language__(30003)#%b %Y
thisdateformat="%Y"
displaythisdate=__language__(30004)#%Y
elif self.args.period=="date":
@@ -233,9 +234,9 @@
allperiod = "month"
action="showpics"
periodformat="%Y-%m-%d"
- displaydate=__language__(30002)#"%a %d/%m/%Y"
+ displaydate=__language__(30002)#"%a %b %d, %Y"
thisdateformat="%Y-%m"
- displaythisdate=__language__(30003)#"%m/%Y"
+ displaythisdate=__language__(30003)#"%b %Y"
else:
listperiod=[]
nextperiod=None
@@ -256,8 +257,9 @@
context = [(__language__(30152),"XBMC.RunPlugin(\"%s?action='addfolder'&method='date'&period='%s'&value='%s'&viewmode='scan'\")"%(sys.argv[0],nextperiod,period))]
else:
context = [(__language__(30152),"XBMC.RunPlugin(\"%s?action='addfolder'&method='date'&period='%s'&value='%s'&viewmode='scan'\")"%(sys.argv[0],self.args.period,period))]
-
- self.addDir(name = "%s (%s %s)"%(time.strftime(displaydate.replace("%a",weekdayname[time.strptime(period,periodformat).tm_wday]).encode("utf8"),time.strptime(period,periodformat)).decode("utf8"),MPDB.countPeriod(self.args.period,period),__language__(30050).encode("utf8")), #libellé
+ displaydate.replace("%a",weekdayname[time.strptime(period,periodformat).tm_wday])
+ displaydate.replace("%b",monthname[time.strptime(period,periodformat).tm_mon - 1])
+ self.addDir(name = "%s (%s %s)"%(time.strftime(displaydate.encode("utf8"),time.strptime(period,periodformat)).decode("utf8"),MPDB.countPeriod(self.args.period,period),__language__(30050).encode("utf8")), #libellé
params = [("method","date"),("period",nextperiod),("value",period),("viewmode","view")],#paramètres
action = action,#action
iconimage = os.path.join(PIC_PATH,"dates.png"),#icone