]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
fixed time elapsed if it happend in the same second 37/head
authorJohn Fischer <jfroffice@gmail.com>
Wed, 2 Nov 2011 00:26:39 +0000 (01:26 +0100)
committerJohn Fischer <jfroffice@gmail.com>
Wed, 2 Nov 2011 00:26:39 +0000 (01:26 +0100)
fix french language

lang/fr.js
moment.js

index 123742eea8833e6a5a115bb767da146e48d73900..bb2815284d5733ee670f25f5399ce61e036646ed 100644 (file)
@@ -1,7 +1,7 @@
 (function () {
     var lang = {
             months : "Janvier_Février_Mars_Avril_Mai_Juin_Juillet_Aout_Septembre_Octobre_Novembre_Décembre".split("_"),
-            monthsShort : "Jan_Fev_Mar_Avr_Mai_Juin_Juil_Aou_Sep_Oct_Nov_Dec".split("_"),
+            monthsShort : "Jan_Fév_Mar_Avr_Mai_Juin_Juil_Aou_Sep_Oct_Nov_Dec".split("_"),
             weekdays : "Dimanche_Lundi_Mardi_Mercredi_Jeudi_Vendredi_Samedi".split("_"),
             weekdaysShort : "Dim_Lun_Mar_Mer_Jeu_Ven_Sam".split("_"),
             // based on this article on writing dates in french:
index 11a646467b0acf37a600d9d69ef275a7c09e2c34..577fa3493948e36c62c2ebbb478441befc29b13c 100644 (file)
--- a/moment.js
+++ b/moment.js
             var difference = this.diff(time),
                 rel = moment.relativeTime,
                 output = relativeTime(difference);
-            return withoutSuffix ? output : (difference < 0 ? rel.past : rel.future).replace(/%s/i, output);
+            return withoutSuffix ? output : (difference <= 0 ? rel.past : rel.future).replace(/%s/i, output);
         },
 
         fromNow : function (withoutSuffix) {