![]() |
|
#1
|
||||
|
||||
|
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. |
|
#2
|
||||
|
||||
|
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.
|
|
#3
|
||||
|
||||
|
Thanks Brian ; take your time, "it's not at the minute" (french expression, don't know if you've got the same in english
)
|
|
#4
|
||||
|
||||
|
"It's not critical" or something along those lines would probably be the English equivalent.
|
|
#5
|
||||
|
||||
|
Any litte news now ?
|
|
#6
|
||||
|
||||
|
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.
|
|
#7
|
||||
|
||||
|
Ok, no problem.
|
|
#8
|
||||
|
||||
|
Still no news
|
|
#9
|
||||
|
||||
|
Here is the solution to correct this :
In news.php module, Find : Code:
$news['dateposted'] = vbdate($mod_options['portal_news_dateformat'], $news['postdateline'], '', ''); 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']);
}
|
|
#10
|
||||
|
||||
|
So many thanks... that's too much lol
<ironic> Thank you. </ironic> |
|
#11
|
||||
|
||||
|
//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'], '', ''); 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']);
}
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
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 |