-
AuthorPosts
-
November 23, 2007 at 1:31 am #123958
Hello,
Before to start, excuse me for my english ๐ I’m french guy !
I like to know how to change the date format in article ?
I’ll like to have a long format like in the demo website : i.e : Monday, 26 February 2007For the moment I have only : 26-02-2007
Thanks for your help ๐
November 23, 2007 at 1:39 am #233291Thanks for your answer.
yes I know the date is include in png logo !
But i’m not speaking about the logo, I’m just speaking about the frontpage articles.
(Just under “Cool Workspace” in the demo)Salsabil FriendSalsabil
- Join date:
- February 2006
- Posts:
- 54
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 6
- Thanked:
- 2 times in 1 posts
November 23, 2007 at 9:02 am #233300open /language/english.php file and search for _DATE_FORMAT_LC. there you can change it.
it looks like this for the dateformat in Demo:
[PHP]DEFINE(‘_DATE_FORMAT_LC’,”%A, %d %B %Y”); //Uses PHP’s strftime Command Format[/PHP]
and if you use a french laguage file, than maybe you have to change /language/french.php
November 23, 2007 at 4:47 pm #233326thanks for your help ๐ I found the line in french.php
But now, which var does I need to change for have (for example) Monday 3rd February 2007 ?
Thanks again
Salsabil FriendSalsabil
- Join date:
- February 2006
- Posts:
- 54
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 6
- Thanked:
- 2 times in 1 posts
November 24, 2007 at 3:10 am #233341<em>@adrien666 32751 wrote:</em><blockquote>thanks for your help ๐ I found the line in french.php
But now, which var does I need to change for have (for example) Monday 3rd February 2007 ?
Thanks again</blockquote>
you have to change for example
[PHP]DEFINE(‘_DATE_FORMAT_LC’,”%d-%m-%Y”);[/PHP]
to
[PHP]DEFINE(‘_DATE_FORMAT_LC’,”%A, %d %B %Y”); [/PHP]
you can modify this line how you like.
for conversion specifiers look here http://php.net/manual/en/function.strftime.php
November 24, 2007 at 3:21 pm #233358thanks for your answer ^^ ! It’s working great ๐
an other little … ? ๐
It’s working, but I don’t have caps on the first letter of word (lundi in french for monday)
I’ll like to have “Lundi” !I’ve search in french.php file cause I believe it was the translation, but I found nothing !
Salsabil FriendSalsabil
- Join date:
- February 2006
- Posts:
- 54
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 6
- Thanked:
- 2 times in 1 posts
November 24, 2007 at 8:23 pm #233365<em>@adrien666 32795 wrote:</em><blockquote>thanks for your answer ^^ ! It’s working great ๐
an other little … ? ๐
It’s working, but I don’t have caps on the first letter of word (lundi in french for monday)
I’ll like to have “Lundi” !I’ve search in french.php file cause I believe it was the translation, but I found nothing !</blockquote>
iยดm not sure but i think you have to change in your language file /language/french.php
[PHP]DEFINE(‘_ISO’,’charset=iso-8859-1′);[/PHP]
to
[PHP]DEFINE(‘_ISO’,’charset=iso-8559-1′);[/PHP]
Edit: You can change it from Backend of your Joomla, just go to Global Configuration >> Locale and replace en_GB with fr_FR
-
AuthorPosts
This topic contains 7 replies, has 2 voices, and was last updated by Salsabil 17 years ago.
We moved to new unified forum. Please post all new support queries in our New Forum