Welcome to Geeklog, Anonymous Saturday, August 31 2024 @ 11:48 pm EDT

Geeklog Forums

Date/time internationalization and localization


Status: offline

Kelvin

Forum User
Chatty
Registered: 10/08/02
Posts: 50
I've been thinking about ways to localize the date/time display in plugins. What's the proper way to do this? I found the Geeklog function COM_getUserDateTimeFormat convenient, but verbose. Are there other functions for localizing dates.

Another idea that might be useful is relative dates: "two days ago", "two weeks ago", etc. The rationale is that you don't need to know the exact date/time for recent items.

I don't know how feasible this is l10n/i18n-wise, but there might be some php functions to assist. What do other users/developers think? Would this be useful? Is it feasible?
 Quote

All times are EDT. The time is now 11:48 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content