Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Languages & Translations »

[SOLVED] Messed-up Date


  #1  
Old Jan 29, 2010, 03:33 PM
jdtfk
 
9 posts · Jan 2010
After installing the translation for spanish for wordpress and atahualpa I crossed with this messed-up date. I even updated the whole Wordpress 2.91 to the Spanish Version (clicked the Update Now button)

The Comment section is correct, although it lacks the comma, but the Post section is still in english format: 22nd

I'm lost. I even selected another format m/d/Y, but nothing changed. Any help would be appreciated.

Last edited by jdtfk; Feb 2, 2010 at 08:47 AM.
  #2  
Old Feb 1, 2010, 10:15 AM
jdtfk
 
9 posts · Jan 2010
Ok, poking around I stumbled into bfa_postinfo.php

Code:
	// Date & Time
	if ( strpos($postinfo_string,'%date(') !== FALSE ) {
		$date_param = preg_match("/(.*)\%date\('(.*?)'\)(.*)/i",$postinfo_string,$date_matches);
		ob_start(); 
			the_time($date_matches[2]); 
			$date = ob_get_contents(); 
		ob_end_clean();
		$postinfo = preg_replace("/(.*)%date\((.*?)\)%(.*)/i", "\${1}" .
        $date. "\${3}", $postinfo);
	}
I assume here's where the trouble is. I'm just wondering how to edit this, or how to work this out.
  #3  
Old Feb 2, 2010, 08:46 AM
jdtfk
 
9 posts · Jan 2010
Found the solution.

I didn't check the ATO -> Edit Post/Page info items.
The date was set to ('F jS, Y') So it didn't matter what I had in the General Options.

S is English ordinal suffix for the day of the month, 2 characters: st, nd, rd or th.

More info here: http://php.net/manual/en/function.date.php

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Date is all messed up in comment section using Dutch locale! Taquoriaan Languages & Translations 6 Feb 3, 2010 07:26 AM
[SOLVED] Newbie messed up jerice50 Forum How-To 7 Sep 1, 2009 09:31 AM
My index file is messed up... please help! plzhelp Installing & running WordPress 4 Aug 4, 2009 05:14 AM
user roles messed up thegooser123 Installing & running WordPress 3 Jul 21, 2009 05:03 PM
Sidebars messed up in IE6 lian Other BFA WordPress Themes 2 May 15, 2009 12:41 PM


All times are GMT -6. The time now is 05:03 AM.


Powered by vBulletin® Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.