"am" and "pm" (In time format)

Having a question about translating phpBB3? Want to discuss and collaborate with people currently translating phpBB3? Here would be the correct place to do so.
Ideas Centre
User avatar
Pardis
Registered User
Posts: 108
Joined: Sat Jun 21, 2008 11:14 pm

"am" and "pm" (In time format)

Post by Pardis »

In phpBB time format you can see for example "2:30 pm" or "4.00 am"

Does anyone help to know Where is the "am" and "pm" language codes ?
User avatar
Pardis
Registered User
Posts: 108
Joined: Sat Jun 21, 2008 11:14 pm

Re: "am" and "pm" (In time format)

Post by Pardis »

No,I want change "am" and "pm" in language files to a different text (such as aftrenoon)
User avatar
Erik Frèrejean
Former Team Member
Posts: 9899
Joined: Tue Oct 09, 2007 9:09 am
Location: The Netherlands, 3.0.x Support Forum
Name: Erik Frèrejean

Re: "am" and "pm" (In time format)

Post by Erik Frèrejean »

IIRC the "am" and "pm" aren't stored in the language files, but rather outputted by the php date function based upon the date settings.
Support Toolkit | Support Request Template | Knowledge Base | phpBB 3.0.x documentation
I don't give support via PM or IM! (all unsolicited pms will be trashed!)
User avatar
Pardis
Registered User
Posts: 108
Joined: Sat Jun 21, 2008 11:14 pm

Re: "am" and "pm" (In time format)

Post by Pardis »

So I can NOT change it,can I ?
User avatar
Erik Frèrejean
Former Team Member
Posts: 9899
Joined: Tue Oct 09, 2007 9:09 am
Location: The Netherlands, 3.0.x Support Forum
Name: Erik Frèrejean

Re: "am" and "pm" (In time format)

Post by Erik Frèrejean »

I don't think so without modification. But as I don't have time to look closer at the code I'm not sure, but the am/pm should only be displayed if you select a date format that contains the "a" or "A" so its being added by the php function. Therefore you can't change it in a vanilla installation. You can however modifiy the $user->format_date() method to incorporate this ;).
Support Toolkit | Support Request Template | Knowledge Base | phpBB 3.0.x documentation
I don't give support via PM or IM! (all unsolicited pms will be trashed!)
User avatar
Pardis
Registered User
Posts: 108
Joined: Sat Jun 21, 2008 11:14 pm

Re: "am" and "pm" (In time format)

Post by Pardis »

Ok,Thanks alot dear Erik Frèrejean

Return to “[3.0.x] Translations”