I'm messing with 2.04, and I see an additional bug.
Look at the attached image. I use polish language file, but I still see on the sites "permalink", ant "last saved" phrases words, even when LAST_SAVED variable (line 87) is translated to polish language. There's no var to translate "permalink" thou.
About main problem with date, variables inside translation file
"DATE_FORMAT" => "j.m.Y", //please keep short
"DATE_AND_TIME_FORMAT" => "j.m.Y - G:i", //date and time
are used only in admin panel, to show page creation/save date, and aren't used to show date of last page save.
I posted a way how to set own date format in first post of this thread.
Basically there's only 1 thing to change inside theme_functions.php file.
$myVar = date($i, strtotime($date)); -> $myVar = iconv("", "UTF-8",strftime('%A, %e.%B. %Y'));
(in earlier versions of GS the date was echo'ed, now it's attached to $myvar)
This is more a temporary fix, as the date format should be loaded from translation file, not hardcoded in .php file, because in different countries date is displayed in their own format.
In Poland it's day.month.year, while in for example US its month-day-year (afair).
It works for me, but other users, who would like to display the date on pages in their own taste, have to edit core files.
I'm afraid I can't provide a better solution using a dedicated variable in language file, due to my poor php knowledge
Look at the attached image. I use polish language file, but I still see on the sites "permalink", ant "last saved" phrases words, even when LAST_SAVED variable (line 87) is translated to polish language. There's no var to translate "permalink" thou.
About main problem with date, variables inside translation file
"DATE_FORMAT" => "j.m.Y", //please keep short
"DATE_AND_TIME_FORMAT" => "j.m.Y - G:i", //date and time
are used only in admin panel, to show page creation/save date, and aren't used to show date of last page save.
I posted a way how to set own date format in first post of this thread.
Basically there's only 1 thing to change inside theme_functions.php file.
$myVar = date($i, strtotime($date)); -> $myVar = iconv("", "UTF-8",strftime('%A, %e.%B. %Y'));
(in earlier versions of GS the date was echo'ed, now it's attached to $myvar)
This is more a temporary fix, as the date format should be loaded from translation file, not hardcoded in .php file, because in different countries date is displayed in their own format.
In Poland it's day.month.year, while in for example US its month-day-year (afair).
It works for me, but other users, who would like to display the date on pages in their own taste, have to edit core files.
I'm afraid I can't provide a better solution using a dedicated variable in language file, due to my poor php knowledge
Addons: blue business theme, Online Visitors, Notepad