[Pkg-mozext-commits] [gcontactsync] 69/88: Added a default date string for anniversaries without a year for the de locale which doesn't appear to have a dateFormatMonthDay string

David Prévot taffit at moszumanska.debian.org
Thu Sep 18 20:52:31 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository gcontactsync.

commit 3cdfffba0f65b32a7c30355ec105d464fc67fc2c
Author: Josh Geenen <joshgeenen at gmail.com>
Date:   Sun Jul 6 15:26:18 2014 -0500

    Added a default date string for anniversaries without a year for the de locale which doesn't appear to have a dateFormatMonthDay string
---
 src/content/ABOverlay.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/content/ABOverlay.js b/src/content/ABOverlay.js
index 91f9e7b..04e3f1c 100644
--- a/src/content/ABOverlay.js
+++ b/src/content/ABOverlay.js
@@ -322,10 +322,10 @@ com.gContactSync.ABOverlay = {
           date.setFullYear(year);
           dateStr = date.toLocaleDateString();
         } else {
+          var formatStr = "%d-%B";
+          try {formatStr = gAddressBookBundle.getString("dateFormatMonthDay");} catch (e) {}
           // if the year doesn't exist, display Month DD (ex. January 01)
-          dateStr = date.toLocaleFormat(
-            gAddressBookBundle.getString("dateFormatMonthDay")
-          );
+          dateStr = date.toLocaleFormat(formatStr);
         }
       } else if (year) {
         dateStr = year;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/gcontactsync.git



More information about the Pkg-mozext-commits mailing list