eng-GB classes

Author Message

tom stovall

Saturday 26 December 2009 8:08:29 am

I don't know if anyone besides me find it annoying that in a default ezpub install all the classes are eng-GB so every time you edit a content object you have to create a new language version in eng-US. Here's what I did to easily change all the default class installs to ENG-US.

  1. Do a standard ezpublish install of 4.2 with the ezflow extensions but no content.
  2. find the directory var/storage/packages/eZ-Systems/ezflow-classes. In this directory are the XML definitions of the classes.
  3. in that directory, do a search and replace for "eng-GB' replacing it with "eng-US".
  4. in the ezpublish back end, go to setup->packages
  5. uninstall the ezflow-classes package and reinstall.
  6. all your classes default language, should now be eng-US.

Nicolas Pastorino

Tuesday 26 January 2010 3:03:11 am

Thanks Tom for sharing this tip. I guess the handiest way would be to be able to choose the default content class language when installing them.

Cheers,

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

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 18 2025 11:45:19
Script start
Timing: Jan 18 2025 11:45:19
Module start 'layout'
Timing: Jan 18 2025 11:45:19
Module start 'content'
Timing: Jan 18 2025 11:45:20
Module end 'content'
Timing: Jan 18 2025 11:45:20
Script end

Main resources:

Total runtime1.1238 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0084 587.7891152.6094
Module start 'layout' 0.00840.0028 740.398439.4297
Module start 'content' 0.01121.1109 779.8281531.3047
Module end 'content' 1.12220.0015 1,311.13288.1953
Script end 1.1237  1,319.3281 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.3276160.0002
Check MTime0.00170.1513160.0001
Mysql Total
Database connection0.00070.062710.0007
Mysqli_queries1.068395.0664540.0198
Looping result0.00060.0531520.0000
Template Total1.075995.720.5379
Template load0.00340.303220.0017
Template processing1.072495.433020.5362
Template load and register function0.00010.009010.0001
states
state_id_array0.00480.423410.0048
state_identifier_array0.00180.157820.0009
Override
Cache load0.00240.2177160.0002
Sytem overhead
Fetch class attribute can translate value0.00060.053820.0003
Fetch class attribute name0.00130.114540.0003
XML
Image XML parsing0.00110.095720.0005
class_abstraction
Instantiating content class attribute0.00000.000840.0000
General
dbfile0.00110.1014230.0000
String conversion0.00000.000740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/li.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/li.tplEdit templateOverride template
1content/datatype/view/ezxmltags/ol.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/ol.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs