Date Field display is not what selected

More
11 years 10 months ago #32882 by grabit
Date is not translated in Joomfish.

I tried to translate it with and without attributes but no change.

An Apple a days keeps the doctor away

Please Log in or Create an account to join the conversation.

More
11 years 10 months ago #32885 by ggppdk
inside date.php field try this at the end of function

onDisplayFieldValue()

Code:
static $addedmsg = false; if (!$addedmsg) { $addedmsg = true; JFactory::getApplication()->enqueueMessage( "Fieldname: ". $field->name. " : ".$field->display." for item: ". $item->title); }

This will add the value of the first encountered field as a Joomla Head Message, just to make check sure what field is really outputting


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
11 years 10 months ago #32950 by grabit
I have the right message like:

Fieldname: dateconcert : Friday, 18 January 6:00 am for item: January 18 - Jacmel


printing exactly the same thing as it is in the module or in the list with the same difference (with or without am or pm)

An Apple a days keeps the doctor away

Please Log in or Create an account to join the conversation.

More
11 years 10 months ago #32954 by ggppdk

(Note that %P will print the lowercase am/pm indicator for your locale, which may be blank.)


The above is from Joomla documentation for J1.5 date formats


I see that in your site it works for English but not for French

i guess French locale is not defining AM / PM strings ??


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
11 years 10 months ago #32960 by grabit
What is weird is that in FC item list template (default) the am/pm is present in english but not in french and in module the am/pm is present in french but not in english.

An Apple a days keeps the doctor away

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.358 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline