Add date_format_mini preference
authorMichael M Slusarz <slusarz@curecanti.org>
Thu, 30 Sep 2010 19:36:43 +0000 (13:36 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Thu, 30 Sep 2010 19:46:52 +0000 (13:46 -0600)
horde/config/prefs.php.dist

index bf75c43..5a6086d 100644 (file)
@@ -313,7 +313,8 @@ $prefGroups['language'] = array(
     'label' => _("Locale and Time"),
     'desc' => _("Set your preferred language, timezone and date preferences."),
     'members' => array(
-        'language', 'timezone', 'twentyFour', 'date_format', 'first_week_day'
+        'language', 'timezone', 'twentyFour', 'date_format',
+        'date_format_mini', 'first_week_day'
     )
 );
 
@@ -353,7 +354,7 @@ $_prefs['date_format'] = array(
         '%x' => strftime('%x'),
         '%Y-%m-%d' => strftime('%Y-%m-%d'),
         '%d/%m/%Y' => strftime('%d/%m/%Y'),
-        '%A %B %d, %Y' => strftime('%A %B %d, %Y'),
+        '%A, %B %d, %Y' => strftime('%A, %B %d, %Y'),
         '%A, %d. %B %Y' => strftime('%A, %d. %B %Y'),
         '%A, %d %B %Y' => strftime('%A, %d %B %Y'),
         '%a, %b %e, %Y' => strftime('%a, %b %e, %Y'),
@@ -373,7 +374,33 @@ $_prefs['date_format'] = array(
         '%e. %B %y' => strftime('%e. %B %y'),
         '%B %e, %Y' => strftime('%B %e, %Y'),
     ),
-    'desc' => _("Choose how to display dates:"),
+    'desc' => _("Choose how to display dates (full format):"),
+);
+
+// date format (miniature)
+$_prefs['date_format_mini'] = array(
+    'value' => '%x',
+    'shared' => true,
+    'type' => 'enum',
+    'enum' => array(
+        '%x' => strftime('%x'),
+        '%Y-%m-%d' => strftime('%Y-%m-%d'),
+        '%d/%m/%Y' => strftime('%d/%m/%Y'),
+        '%a, %b %e, %Y' => strftime('%a, %b %e, %Y'),
+        '%a, %b %e, %y' => strftime('%a, %b %e, %y'),
+        '%a, %b %e' => strftime('%a, %b %e'),
+        '%a, %e %b %Y' => strftime('%a, %e %b %Y'),
+        '%a, %e %b %y' => strftime('%a, %e %b %y'),
+        '%a %d %b %Y' => strftime ('%a %d %b %Y'),
+        '%a %x' => strftime ('%a %x'),
+        '%a %Y-%m-%d' => strftime ('%a %Y-%m-%d'),
+        '%e %b %Y' => strftime('%e %b %Y'),
+        '%e. %b %Y' => strftime('%e. %b %Y'),
+        '%e. %m %Y' => strftime('%e %m %Y'),
+        '%e. %m.' => strftime('%e. %m.'),
+        '%b %e, %Y' => strftime('%b %e, %Y'),
+    ),
+    'desc' => _("Choose how to display dates (abbreviated format):"),
 );
 
 // what day should be displayed as the first day of the week?