Skip to content

Commit

Permalink
[mms] Add the 'time_format_mini' preference.
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Jul 8, 2014
1 parent 4d8e5f0 commit 98a072e
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 3 deletions.
16 changes: 13 additions & 3 deletions horde/config/prefs.php
Expand Up @@ -364,7 +364,8 @@
'desc' => _("Set your preferred language, timezone and date preferences."),
'members' => array(
'language', 'sending_charset', 'timezone', 'twentyFour', 'date_format',
'date_format_mini', 'time_format', 'first_week_day'
'date_format_mini', 'time_format', 'time_format_mini',
'first_week_day'
)
);

Expand Down Expand Up @@ -482,10 +483,19 @@
'%X' => strftime('%X') . ' (' . _("Default") . ')',
'%H:%M:%S' => strftime('%H:%M:%S') . ' (' . _("24-hour format") . ')',
'%l:%M:%S %p' => strftime('%l:%M:%S %p'),
'%R' => strftime('%R') . ' (' . _("24-hour format") . ')',
),
'desc' => _("Choose how to display times (full format):")
);

$_prefs['time_format_mini'] = array(
'value' => '%X',
'type' => 'enum',
'enum' => array(
'%X' => strftime('%X') . ' (' . _("Default") . ')',
'%H:%M' => strftime('%H:%M') . ' (' . _("24-hour format") . ')',
'%l:%M %p' => strftime('%l:%M %p'),
),
'desc' => _("Choose how to display times:")
'desc' => _("Choose how to display times (abbreviated format):")
);

$_prefs['first_week_day'] = array(
Expand Down
1 change: 1 addition & 0 deletions horde/docs/CHANGES
Expand Up @@ -2,6 +2,7 @@
v5.2.0RC3
---------

[mms] Add the 'time_format_mini' preference.
[mms] Add configuration to allow for SMTP authentication if the current Horde
access does not have an authenticated user.

Expand Down
6 changes: 6 additions & 0 deletions horde/docs/UPGRADING
Expand Up @@ -112,6 +112,12 @@ Read the comments at the top of the hooks.php file for descriptions of each
hook.


Preferences (prefs.php)
-----------------------

The 'time_format_mini' preference has been added.


Registry Options (registry.php)
-------------------------------

Expand Down
1 change: 1 addition & 0 deletions horde/package.xml
Expand Up @@ -3932,6 +3932,7 @@
<date>2014-07-01</date>
<license uri="http://www.horde.org/licenses/lgpl">LGPL-2</license>
<notes>
* [mms] Add the &apos;time_format_mini&apos; preference.
* [mms] Add configuration to allow for SMTP authentication if the current Horde access does not have an authenticated user.
</notes>
</release>
Expand Down

0 comments on commit 98a072e

Please sign in to comment.