-
AuthorPosts
-
LocaLiceR Friend
LocaLiceR
- Join date:
- January 2006
- Posts:
- 47
- Downloads:
- 4
- Uploads:
- 3
- Thanks:
- 8
- Thanked:
- 13 times in 1 posts
February 25, 2014 at 2:56 pm #195197It made me sad that the internationalization and localization efforts of the Joomla! Project have been forgotten, regarding the time. In Joomla! the display order of the date and time is highly customizable, that makes possible to set any kind of date format (see lines 253 to 258 in file en-GB.ini).
Unfortunately in Purity III the Western date format variations can be selected only 🙁 This may be a drawback for the rest of the world.
It would be likely better to return back to the Joomla! core feature
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
February 26, 2014 at 8:28 am #524422You can customize it easily by opening the file: /templates/purity_iii/templateDetails.xml, you will see this declaration:
<fieldset name="purity_iii_params" label="TPL_EXTENDED_TAB_LABEL" description="TPL_EXTENDED_TAB_LABEL">
<field name="tpl_article_info_datetime_format" type="list" default="d M Y"
global="1"
label="TPL_ARTICLE_INFO_DATETIME_FORMAT_LABEL"
description="TPL_ARTICLE_INFO_DATETIME_FORMAT_DESC">
<option value="d M Y">TPL_DATE_SHORT</option>
<option value="d F Y">TPL_DATE_FULL_MONTH</option>
<option value="l, d F Y">TPL_DATE_FULL</option>
</field>
</fieldset>You can add additional format like 3 existing formats, then translate relevant texts like TPL_DATE_FULL in the language file of this template: language/en-GB/en-GB.tpl_purity_iii.ini
LocaLiceR FriendLocaLiceR
- Join date:
- January 2006
- Posts:
- 47
- Downloads:
- 4
- Uploads:
- 3
- Thanks:
- 8
- Thanked:
- 13 times in 1 posts
February 26, 2014 at 9:58 am #524439Thank you for your excellent idea,
However, I don’t understand why to reinvent the wheel?
I will try to apply this on a multilingual site. Stay tuned 🙂
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
February 28, 2014 at 8:30 am #524739If possible, please keep me updated once you give it a try. Glad to know how it goes 🙂
LocaLiceR FriendLocaLiceR
- Join date:
- January 2006
- Posts:
- 47
- Downloads:
- 4
- Uploads:
- 3
- Thanks:
- 8
- Thanked:
- 13 times in 1 posts
March 5, 2014 at 9:57 am #525432Just took time to give try to your suggestion.
I successfully added the new options to templateDetails.xml, however, only one opzion can be selected on the JA Purity III tab in the Edit Style screen. This is not good for the sites with multilingual siite interface and monolingual content, because the date format will be the same for all the languages.
When you have multilingual content by adding content languages in Language Manager, you can select differemt date format for each language. This can be a workaround for such sites.
Adding the new dates related keys to the purity iii language ini file is not practical because you will lose whem applying the next update. I cannot add a language override to a non existing key.
Sorry to say the current date format handling is not a thought-out and winning solution in JA Purity III 🙁 It
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
March 6, 2014 at 9:47 am #525624What is the second language you’re using on your website? I will give it a try at my end.
LocaLiceR FriendLocaLiceR
- Join date:
- January 2006
- Posts:
- 47
- Downloads:
- 4
- Uploads:
- 3
- Thanks:
- 8
- Thanked:
- 13 times in 1 posts
March 6, 2014 at 3:09 pm #525664My second language is Hungarian (hu-HU).
Anyway, I can imagine a check box to be able enable or disable the date handling on template level. What do you think of it?
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
-
AuthorPosts
This topic contains 9 replies, has 2 voices, and was last updated by LocaLiceR 10 years, 8 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum