test
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • adrien666 Friend
    #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 2007

    For the moment I have only : 26-02-2007

    Thanks for your help ๐Ÿ™‚

    adrien666 Friend
    #233291

    Thanks 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 Friend
    #233300

    open /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

    adrien666 Friend
    #233326

    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

    Salsabil Friend
    #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

    adrien666 Friend
    #233358

    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 !

    Salsabil Friend
    #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

Viewing 7 posts - 1 through 7 (of 7 total)

This topic contains 7 replies, has 2 voices, and was last updated by  Salsabil 17 years, 1 month ago.

We moved to new unified forum. Please post all new support queries in our New Forum