Forums / General / ezlocale

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

ezlocale

Author Message

Carlos Revillo

Friday 23 June 2006 4:35:05 am

hi. i have a question about time formats. in my fre-FR.ini file under share/locale folder i can see something like

[DateTime]
TimeFormat=%g:%i:%s %a
ShortTimeFormat=%g:%i %a
DateFormat=%l, %d %F %Y
ShortDateFormat=%d/%m/%Y
DateTimeFormat=%l %d %F %Y %g:%i:%s %a
ShortDateTimeFormat=%d/%m/%Y %g:%i %a

It is possible to add here a new custom format? something like

MyCustomFormat=%m %d

How can i use this new format through l10n function then?
thanks

Carlos Revillo

Friday 23 June 2006 5:17:29 am

I've added some code lines to ezlocale.php file and got what i needed, but i don't like to "hack" ez source code. if anyone knows any other form to do this, please let me know.