UseBB Community

The official board for UseBB help and discussion

UseBB Community » Help & Support » date_format and lang

date_format and lang

Moderators: Gaia.

Page: 1

Author Post
Member
Registered: Apr 2005
Posts: 34
Location: Taiwan
date_format= 'Y M d D g:i a';

It is in chinese show date form

And I want to say
Is it include in Lang?
_______________
I want find board for my website
Developer
Registered: Apr 2004
Posts: 2216
Location: Belgium
You can create this array in your language file:
$lang['date_translations'] = array(
'Mon' => 'maa',
'Tue' => 'din',
'Wed' => 'woe',
'Thu' => 'don',
'Fri' => 'vri',
'Sat' => 'zat',
'Sun' => 'zon',
'Monday' => 'maandag',
'Tuesday' => 'dinsdag',
'Wednesday' => 'woensdag',
'Thursday' => 'donderdag',
'Friday' => 'vrijdag',
'Saturday' => 'zaterdag',
'Sunday' => 'zondag',
'Jan' => 'jan',
'Feb' => 'feb',
'Mar' => 'maa',
'Apr' => 'apr',
'May' => 'mei',
'Jun' => 'jun',
'Jul' => 'jul',
'Aug' => 'aug',
'Sep' => 'sep',
'Oct' => 'okt',
'Nov' => 'nov',
'Dec' => 'dec',
'January' => 'januari',
'February' => 'februari',
'March' => 'maart',
'April' => 'april',
'May' => 'mei',
'June' => 'juni',
'July' => 'juli',
'August' => 'augustus',
'September' => 'september',
'October' => 'oktober',
'November' => 'november',
'December' => 'december',
'st' => 'ste',
'nd' => 'de',
'th' => 'de'
);

Each key will be replaced by its value, so dates can be translated.
_______________
--Dietrich (developer)
UseBB roadmap, dev mailing list & weblog
Member
Registered: Apr 2005
Posts: 34
Location: Taiwan
I add in the lang_chtw.php

but I dont know what is that mean
'st' => 'ste', 'nd' => 'de', 'th' => 'de'
so I can not transfer to chinese

Thank a lot
_______________
I want find board for my website
« Last edit by hanklu on Thu Sep 08, 2005 3:46 pm. »
Member
Registered: Jul 2005
Posts: 232
Location: Stockholm
st - fir[st]
nd - seco[nd]
th - fif[th]
Member
Registered: Apr 2005
Posts: 34
Location: Taiwan
ero-sennin wrote
st - fir[st]
nd - seco[nd]
th - fif[th]


I see

Thank a lot
_______________
I want find board for my website
Developer
Registered: Apr 2004
Posts: 2216
Location: Belgium
Yes, those are just litterally used in the original English dates. The values in the array I posted are Dutch btw. ;)
_______________
--Dietrich (developer)
UseBB roadmap, dev mailing list & weblog

Page: 1

UseBB Community » Help & Support » date_format and lang

UseBB Community is powered by UseBB 1 Forum Software