From: Michael M Slusarz Date: Thu, 30 Sep 2010 19:36:43 +0000 (-0600) Subject: Add date_format_mini preference X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=5e28536b9a7027b540f1fd01a4acdac3afadc742;p=horde.git Add date_format_mini preference --- diff --git a/horde/config/prefs.php.dist b/horde/config/prefs.php.dist index bf75c4366..5a6086d39 100644 --- a/horde/config/prefs.php.dist +++ b/horde/config/prefs.php.dist @@ -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?