The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
PHP Dates: How can I translate them?
How can I translate the dates on vBulletin? I see the dates are built with the date() function, so I really don't know how to translate them to another language.
Any ideas? |
#2
|
||||
|
||||
The timestamps are not "built" with date() but with time(), which returns the time in unix stamp. You use date() to convert them, or rather vbdate() to get the timezones correct and everything.
|
#3
|
||||
|
||||
Oops, sorry aabout that... But then, there is no way to translate the
times? BTW: this is my first reply by email. Let's see if it works. |
#4
|
||||
|
||||
Double post. Please delete
|
#5
|
||||
|
||||
Yes there is a way, use the date() function.
|
#6
|
|||
|
|||
Sorry to be off topic...but how do you email a post in anyways?
|
#7
|
|||
|
|||
Quote:
used : Code:
<?php /* Set locale to Swedish */ setlocale (LC_ALL, 'sv_SE'); ?> Just make sure you have the locale file installed that u want. more at --> http://php.benscom.com/manual/sv/function.setlocale.php |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|