Skip to content

Commit

Permalink
Use Horde_Core_Script_Package_Datejs::translateFormat() to translate …
Browse files Browse the repository at this point in the history
…between JS and PHP date formats (Bug #14303).
  • Loading branch information
yunosh committed Mar 31, 2016
1 parent a53af2f commit 3f314cd
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 4 deletions.
8 changes: 8 additions & 0 deletions nag/docs/CHANGES
Expand Up @@ -16,6 +16,14 @@ v4.3.0-git
[jan] Return ETags with browse() API method.


------
v4.2.8
------

[mjr] Honor date_format prefs in Task form (Bug #14287).
[jan] Update Greek translation (Limperis Antonis <limperis@cti.gr>).


------
v4.2.7
------
Expand Down
17 changes: 16 additions & 1 deletion nag/package.xml
Expand Up @@ -1725,12 +1725,27 @@
<stability>
<release>stable</release>
<api>stable</api></stability>
<date>2016-02-02</date>
<date>2016-03-21</date>
<license uri="http://www.horde.org/licenses/gpl">GPL-2.0</license>
<notes>
* [mjr] Honor date_format prefs in Task form (Bug #14287).
* [jan] Update Greek translation (Limperis Antonis &lt;limperis@cti.gr&gt;).
</notes>
</release>
<release>
<version>
<release>4.2.9</release>
<api>4.2.0</api></version>
<stability>
<release>stable</release>
<api>stable</api></stability>
<date>2016-03-21</date>
<license uri="http://www.horde.org/licenses/gpl">GPL-2.0</license>
<notes>
* [jan] Fix regression with date picker in tasks form (Bug #14303).
* [mjr] Fix handling EAS categories/tags.
</notes>
</release>
<release>
<version>
<release>4.3.0</release>
Expand Down
6 changes: 3 additions & 3 deletions nag/templates/javascript_defs.php
Expand Up @@ -3,9 +3,9 @@
/* Variables used in core javascript files. */
$code['conf'] = array(
'URI_AJAX' => (string)$GLOBALS['registry']->getServiceLink('ajax', 'nag'),
'date_format' => str_replace(array('%e', '%d', '%a', '%A', '%m', '%h', '%b', '%B', '%y', '%Y'),
array('d', 'dd', 'ddd', 'dddd', 'MM', 'MMM', 'MMM', 'MMMM', 'yy', 'yyyy'),
$GLOBALS['prefs']->getValue('date_format_mini')),
'date_format' => Horde_Core_Script_Package_Datejs::translateFormat(
$GLOBALS['prefs']->getValue('date_format_mini')
),
'tasklist_info_url' => (string)Horde::url('tasklists/info.php'),
'time_format' => $GLOBALS['prefs']->getValue('twentyFour') ? 'HH:mm' : 'hh:mm tt',
);
Expand Down

0 comments on commit 3f314cd

Please sign in to comment.