PDA

View Full Version : postpit date


khaleejy
08-29-2002, 09:01 PM
hi
i need to change the postpit mounths names
right now its like that: "Registered: Aug 2002"
lets say that i want to show it in arabic.. how can i change the mounths name? cuase i couldnt find any mounths name in any php file or template

thanks

NTLDR
08-29-2002, 09:03 PM
It should be in admin/fuctions.php in a function called vbdate(); if I'm correct. It definatly should be that file though.

khaleejy
08-29-2002, 09:08 PM
ok but i still dont know where can i change the values!! i dont wanna show Aug in english.. how can i change it??
notice: i know some php commands

Scott MacVicar
08-29-2002, 09:10 PM
<a href="http://www.vbulletin.com/forum/showthread.php?s=&threadid=46314" target="_blank">http://www.vbulletin.com/forum/showt...threadid=46314</a>

its actually set in the php locale settings read that thread for more info

khaleejy
08-29-2002, 09:23 PM
ok ppn
ive type the following in the 3 global.php file:

<?php
setlocale (LC_ALL, 'ar_AR');
error_reporting(7);
....

it should change Aug to arabic.. but its not. why not????

khaleejy
08-29-2002, 09:44 PM
helloooooo im waiting..

Scott MacVicar
08-29-2002, 09:49 PM
Don't be so impatient.

I just know thats the function, I'm not too sure on the value though.

khaleejy
08-29-2002, 11:01 PM
hey look ive tried:
setlocale (LC_ALL, 'ar_AR');
and
setlocale (LC_ALL, 'ar_KW');

non of them works!!! do anybody know why?

g-force2k2
08-29-2002, 11:46 PM
yes the date() function is regular php coding... if you'd like some faster answers why don't you go read the php.net/manual/en/ go check out the date function there ;) regards...

g-force2k2

Scott MacVicar
08-29-2002, 11:55 PM
In the thread i posted it shows a function which is used to set the locale of the script. The thing is the server has to have the locale settings available.

Ask your host which ones are installed.

Logician
08-30-2002, 08:09 AM
Without Hacking Solution:

Admin CP/Vb Settings/Format for registration date:
Change it to d-m-Y or m/Y

This will not translate the month names but will show them in numeric format so will apply to every language..

That's how I use (http://www.turkhukuksitesi.com/hukukforum/showthread.php?s=&threadid=1811).. If it fits to you..

khaleejy
08-30-2002, 12:15 PM
g-force2k2,
non of them helps me

PPN,
i dont need to ask i can find the scripts there /usr/lib/locale and yes there is an ar_KW script but it setlocale() still doesnt work

Logician,
thats a good way thanks but i still want to change it

thanks all