?
avatar MatthiasHazeleger
MatthiasHazeleger
5 Dec 2017

Steps to reproduce the issue

Create an XML calendar field, use a languagestring as format in the format field.

Example:

format="DATE_FORMAT_LC3"

Expected result

Date shown in the given format.

Example:

Tuesday, 05 December 2017

Actual result

The given languagestring.

Example:

DATE_FORMAT_LC3

System information (as much as possible)

  • Joomla v3.8.1 Stable
  • PHP v7.1.9
  • Apache

Additional comments

The 'translateformat' field doesn't really do anything useful, the documentation says it changes the shown date format using "a" language string, but that languagestring is already the default format. It would be useful if a language string could be given to it.

avatar MatthiasHazeleger MatthiasHazeleger - open - 5 Dec 2017
avatar joomla-cms-bot joomla-cms-bot - change - 5 Dec 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 5 Dec 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 5 Dec 2017
Category JavaScript
avatar infograf768
infograf768 - comment - 5 Dec 2017

@Bakual please explain this user the difference between a calendar field and a date field. :)

avatar Bakual
Bakual - comment - 5 Dec 2017

The translateformat attribute does automatically use a localised dateformat. You can only customise if it should show also the time or not.
The format attribute is ignored if translateformat is enabled. Also the format attribute can't be translated. It wouldn't make sense anyway since you need a different format when reading and when storing the date.

avatar Bakual
Bakual - comment - 5 Dec 2017

Closing as expected behavior

avatar Bakual Bakual - change - 5 Dec 2017
Status New Closed
Closed_Date 0000-00-00 00:00:00 2017-12-05 14:40:52
Closed_By Bakual
avatar Bakual Bakual - close - 5 Dec 2017

Add a Comment

Login with GitHub to post a comment