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.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 06:20:28
Script start
Timing: Jan 31 2025 06:20:28
Module start 'layout'
Timing: Jan 31 2025 06:20:28
Module start 'content'
Timing: Jan 31 2025 06:20:28
Module end 'content'
Timing: Jan 31 2025 06:20:28
Script end

Main resources:

Total runtime0.0142 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 588.0000151.1953
Module start 'layout' 0.00610.0023 739.195336.5859
Module start 'content' 0.00840.0044 775.781390.0859
Module end 'content' 0.01280.0014 865.867229.9922
Script end 0.0142  895.8594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002517.9368140.0002
Check MTime0.00117.8506140.0001
Mysql Total
Database connection0.00085.375210.0008
Mysqli_queries0.002920.618530.0010
Looping result0.00000.077110.0000
Template Total0.00107.110.0010
Template load0.00085.584810.0008
Template processing0.00021.469210.0002
Override
Cache load0.00063.869110.0006
General
dbfile0.00021.646980.0000
String conversion0.00000.053740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs