Support Offline: Mon - Fri / 08:00am - 05:00pm (GMT +7)
Your Time: Our Time:

file Format date in french

More
4 years 7 months ago #35068 by David
Format date in french was created by David
hi,
how to put dates in french?

Thank

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

More
4 years 7 months ago #35070 by HaiND
Replied by HaiND on topic Format date in french
Hi
Can you tell me more clearly, where do you want the transalte to be, please send me a picture where you want the transalte
I will check it for you
Thanks

Best Regards
--HaiND--

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

More
4 years 7 months ago #35114 by David
Replied by David on topic Format date in french
HI,

I just want them to be displayed in French.
Apartment The scrip js displays the dates according to the local value.
At home it does not work, so I changed in fullcalendar.js for the compsant and module Shuddle
function getMomentLocaleData(localeCode) {
    return moment.localeData(localeCode) || moment.localeData('en');
}]
in
function getMomentLocaleData(localeCode) {
    return moment.localeData('fr') || moment.localeData('en');
}
but I'm not sure that it's very good and I did not find for the other modules.

Thank

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

More
4 years 6 months ago - 4 years 6 months ago #35121 by HaiND
Replied by HaiND on topic Format date in french
Hi
But the rest of the modules only show the date in English, and it's simple to understand because it's common English words.
If you really want to translate into french I will still translate but which module you need to use
I think you are very knowledgeable about code, I think you can also fix the code yourself to translate
Thanks

Best Regards
--HaiND--
Last edit: 4 years 6 months ago by HaiND.

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

More
4 years 6 months ago #35174 by David
Replied by David on topic Format date in french
Hi

It's ok, i replace :
echo date_format(date_create($item->startdate),'j F Y')
by
$date1 = date_format(date_create($item->startdate),'j F Y');
	setlocale(LC_TIME, 'fr_FR.UTF8');
	echo strftime("%d %B %G", strtotime($date1));
Thank

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

More
4 years 6 months ago #35187 by HaiND
Replied by HaiND on topic Format date in french
Hi
yes, perfect, I am also going to guide you to make changes like this
Thanks

Best Regards
--HaiND--

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

Moderators: Jackie
Time to create page: 0.048 seconds
Powered by Kunena Forum