vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > vBa CMPS v2.0 Support > Bugs & Issues > Bugs From 2.0.0

Reply
 
Thread Tools Display Modes
  #1  
Old 12-21-2005, 10:41 PM
cclaerhout's Avatar
cclaerhout cclaerhout is offline
LeSaTiRiQuE
 
Join Date: Aug 2004
Location: France
Posts: 67
Default Date format problem for international users (only months)

I've found a problem with date format, only for foreign users : the month isn't translated, it remains in english

In the news module configuration i've specified this format : d F Y - H\hi.

It should give this : 18 décembre 2005 - 23h36-
but it gives this : 18 December 2005 - 23h36-

That's strange because when i configure date format for vB, it works. With CMPS, it doesn't.

Where can i translate this ? I've tested in phrases, but nothing changes.
Reply With Quote
  #2  
Old 12-22-2005, 11:30 AM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Date format problem for international users (only months)

I'm out of town right now and don't really have access to test things, but I'll move this to the bugs forum to make sure I see it when I get home.
Reply With Quote
  #3  
Old 12-22-2005, 09:49 PM
cclaerhout's Avatar
cclaerhout cclaerhout is offline
LeSaTiRiQuE
 
Join Date: Aug 2004
Location: France
Posts: 67
Default Re: Date format problem for international users (only months)

Thanks Brian ; take your time, "it's not at the minute" (french expression, don't know if you've got the same in english )
Reply With Quote
  #4  
Old 12-23-2005, 01:05 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Date format problem for international users (only months)

"It's not critical" or something along those lines would probably be the English equivalent.
Reply With Quote
  #5  
Old 01-03-2006, 06:40 AM
cclaerhout's Avatar
cclaerhout cclaerhout is offline
LeSaTiRiQuE
 
Join Date: Aug 2004
Location: France
Posts: 67
Default Re: Date format problem for international users (only months)

Any litte news now ?
Reply With Quote
  #6  
Old 01-03-2006, 12:58 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Date format problem for international users (only months)

Could I get you to submit a support ticket via the Members' Area here so I can have a look at things on your server? I don't have any additional languages set up on my localhost, so it would take a little work in order for me to try and reproduce the problem locally. It would be much easier though if you wouldn't mind allowing me to take a look at things on your server.
Reply With Quote
  #7  
Old 01-05-2006, 09:50 PM
cclaerhout's Avatar
cclaerhout cclaerhout is offline
LeSaTiRiQuE
 
Join Date: Aug 2004
Location: France
Posts: 67
Default Re: Date format problem for international users (only months)

Ok, no problem.
Reply With Quote
  #8  
Old 01-13-2006, 05:37 AM
cclaerhout's Avatar
cclaerhout cclaerhout is offline
LeSaTiRiQuE
 
Join Date: Aug 2004
Location: France
Posts: 67
Default Re: Date format problem for international users (only months)

Still no news
Reply With Quote
  #9  
Old 09-04-2006, 11:53 PM
cclaerhout's Avatar
cclaerhout cclaerhout is offline
LeSaTiRiQuE
 
Join Date: Aug 2004
Location: France
Posts: 67
Default Re: Date format problem for international users (only months)

Here is the solution to correct this :

In news.php module,

Find :
Code:
			$news['dateposted'] = vbdate($mod_options['portal_news_dateformat'], $news['postdateline'], '', '');
and put below :

Code:
			$months = "/january|febrary|april|may|june|july|august|september|october|november|december/i";
			if (preg_match($months, $news[dateposted], $monthname))
			{
				$monthname[0] = $vbphrase[strtolower($monthname[0])];
				$news['dateposted'] = preg_replace($months, $monthname[0] , $news['dateposted']);

			}
It would be nice to include that patch in next release.
Reply With Quote
  #10  
Old 09-10-2006, 11:45 AM
cclaerhout's Avatar
cclaerhout cclaerhout is offline
LeSaTiRiQuE
 
Join Date: Aug 2004
Location: France
Posts: 67
Default Re: Date format problem for international users (only months)

So many thanks... that's too much lol
<ironic>
Thank you.
</ironic>
Reply With Quote
  #11  
Old 02-19-2007, 07:12 PM
cclaerhout's Avatar
cclaerhout cclaerhout is offline
LeSaTiRiQuE
 
Join Date: Aug 2004
Location: France
Posts: 67
Default Re: Date format problem for international users (only months)

//NEW CODE UPDATE//
Fix a problem with february month

In news.php module,

Find :
Code:
			$news['dateposted'] = vbdate($mod_options['portal_news_dateformat'], $news['postdateline'], '', '');
and put below :

Code:
			$months = "/january|february|april|may|june|july|august|september|october|november|december/i";
			if (preg_match($months, $news[dateposted], $monthname))
			{
				$monthname[0] = $vbphrase[strtolower($monthname[0])];
				$news['dateposted'] = preg_replace($months, $monthname[0] , $news['dateposted']);

			}
It would be nice to include that patch in next release.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Change Date Format jorg "How Do I..." Questions 2 12-06-2005 05:10 PM
International Sales Orders ! Alderwazeh Site Feedback & Updates 11 03-04-2005 07:33 PM
3 months no updates .... teksigns Feedback & Suggestions 5 02-23-2005 10:52 AM
Date and Time Format Garamond Troubleshooting / "How do I..." Questions 2 07-20-2004 03:40 AM


All times are GMT -4. The time now is 10:40 PM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.