|
#1
Dec 13, 2008, 02:23 PM
|
|
String: <strong>%author-linked%</strong> posted on <strong>%date('F jS, Y')%</strong>
Renders: Jeffrey Schwab posted on May 26th, 2008
String: <strong>%author-linked%</strong> posted on <strong>%date('j F Y')%</strong>
Renders: 26 May 2008
All I changed was the date format to that which I use all over the site.
|
#2
Dec 13, 2008, 03:54 PM
|
|
|
|
3,768 posts · Oct 2008
Munich, Germany
|
|
I am getting the same result, looking into it...
|
#3
Dec 13, 2008, 05:03 PM
|
|
|
|
3,768 posts · Oct 2008
Munich, Germany
|
|
Dates starting with a number don't work, others work. The regular expression gets thrown off
If you want to fix it yourself for now, in functions/bfa_postinfo.php line 160
change
PHP Code:
$postinfo = preg_replace("/(.*)%date\((.*?)\)%(.*)/i", "\\1" .$date. "\\3", $postinfo);
to
PHP Code:
$postinfo = preg_replace("/(.*)%date\((.*?)\)%(.*)/i", "\${1}" .$date. "\${3}", $postinfo);
Do you have a non-english blog? Can you check if month and day names are being translated (they should)?
|
#4
Dec 13, 2008, 06:06 PM
|
|
That fixed the problem. Thanks!
No, I do not have a non-English blog. Sorry.
|
#5
Mar 21, 2010, 06:19 PM
|
|
|
170 posts · Nov 2009
Netherlands
|
|
Hi Flynn and others,
I am having the footer set as follows:
%date('j F Y')% | %tags-linked('Tags: ', ', ', ' | ')% Categorie: %categories-linked(', ')% | %comments('Reageren', 'Eén reactie', '% reacties', 'Reacties op dit bericht zijn afgesloten')% %edit(' | ', 'Deze post bewerken', '')%
This renders:
maart 21st, 2010 at 23:58
I would like to have it render:
21 maart 2010 om 23:58
(i.e., no "st" after the date, no comma before the year, and the word "at" replaced by "om")
My site is in Dutch; the month of March is correctly translated into "maart".
Thanks for your help!
Rutger
|
#6
Mar 22, 2010, 07:16 AM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
I just tried exactly what you ahve coded and I get the correct format, this must have something to do with the language translation, try using %date('F j Y')% and see what happens
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#7
Mar 22, 2010, 07:30 AM
|
|
|
170 posts · Nov 2009
Netherlands
|
|
Hi Juggledad,
Replacing %date('j F Y')% by %date('F j Y')% does not seem to make any difference. It still renders maart 21st, 2010 at 23:58, including the translated month name. Thanks for any additional suggestions!
|
#8
Mar 22, 2010, 12:51 PM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
Hmmm, I just tried the two and %date('j F Y')% gives me '18 February 2010' - this must have something to do with the language translation since it works fine in english on 3.4.6 - however, I have never tried to look at how the translating works.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#9
Mar 26, 2010, 05:13 PM
|
|
As I posted in another post. Same problem. German setup 2.9.2 and 3.4.6. I think its the translation, but I'm not fit in php
|
Similar Threads
|
Thread |
Thread Starter |
Forum |
Replies |
Last Post |
Can you suppress date on sticky post?
|
Andante |
Atahualpa 3 Wordpress theme |
6 |
Mar 21, 2010 06:39 AM |
How to modify the links below each post on the homepage ? ( Date, tags , Leave a com.
|
3ukman |
Header configuration & styling |
5 |
Jul 10, 2009 12:05 PM |
Profile pic to bylines?
|
designer666 |
Post-Kicker, -Byline & -Footer |
2 |
May 12, 2009 09:56 AM |
The %date-modified('F jS, Y')% in post footer not working
|
Glottis |
Post-Kicker, -Byline & -Footer |
11 |
Apr 11, 2009 05:52 AM |
Welcome message as post without date or title?
|
blueprairie |
Header configuration & styling |
1 |
Apr 2, 2009 09:12 PM |
|