ezwebin always installs "English" (content classes)

Author Message

Marco Zinn

Saturday 10 January 2009 8:08:46 am

Hi there,

i found, that ez(4) will always install the demo content (webin) classes in english language.
Even if you tell the setup wizard to set up a monolingual (german, in my case) site, you'll end up with "English language" being available in the admin interface.
That's annoying, as ez will always ask you about which language you want to edit an object in.
You cannot remove the english language from admin interface, as there are (18?) classes "in English". That means, the names and attribute names of the (webin) classes are defined as "English", while other core classes (Users, setup classes) are in german language.

1. Can anyone please confirm this annoying "behaviour"?
2. Would you also call this a bug? I reported the problem of "english only" demo content quite a while ago, but...
From looking into the demo packages (XML files), i didn't find any mention of the language. I.e., the packages do not seem to determine the language. Who else does? The setup wizard??

For those who have the same problem: You may define german translations for those 18 classes (just copy the english translation) and make them "Default". Then, you can -probably- delete the english language. I didn't try this yet, though.
Maybe there is also a way to remove these classes and re-import them... hoping, that the package importer now uses german language... Didn't try this yet either, though.

Well... The best way would be to provide "real" german/french/italian/younameit versions of the webin classes.... any volunteers?

Marco
http://www.hyperroad-design.com

Steven E. Bailey

Sunday 11 January 2009 3:06:21 am

I've had this with another package as well - although I don't remember which one. I imported a couple of classes and all of a sudden had nor-NO in my language list - with an object count of 0. The classes had nor-NO translations and had them set to the default, so I set english as the default, deleted the nor-NO class translation and was able to remove the language.

I think this is just the way importing a class works - you end up with all the languages the classes have translations for regardless of the settings of your site.

I agree, it's irritating.

As far as English goes, it is sort-of the default language for ezpublish... it's hard-coded in kernel/common/ezi18noperator.php

Certified eZPublish developer
http://ez.no/certification/verify/396111

Available for ezpublish troubleshooting, hosting and custom extension development: http://www.leidentech.com

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 22:30:16
Script start
Timing: Jan 18 2025 22:30:16
Module start 'layout'
Timing: Jan 18 2025 22:30:16
Module start 'content'
Timing: Jan 18 2025 22:30:16
Module end 'content'
Timing: Jan 18 2025 22:30:16
Script end

Main resources:

Total runtime0.6718 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.0095 589.2969152.6563
Module start 'layout' 0.00950.0035 741.953139.5078
Module start 'content' 0.01300.6573 781.4609540.1641
Module end 'content' 0.67030.0015 1,321.625012.1094
Script end 0.6718  1,333.7344 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4979160.0002
Check MTime0.00130.2007160.0001
Mysql Total
Database connection0.00190.282210.0019
Mysqli_queries0.621392.4840540.0115
Looping result0.00050.0754520.0000
Template Total0.637994.920.3189
Template load0.00210.309820.0010
Template processing0.635894.632120.3179
Template load and register function0.00010.018910.0001
states
state_id_array0.00110.157810.0011
state_identifier_array0.00150.224620.0008
Override
Cache load0.00170.2559210.0001
Sytem overhead
Fetch class attribute can translate value0.00050.079420.0003
Fetch class attribute name0.00110.170540.0003
XML
Image XML parsing0.00110.161220.0005
class_abstraction
Instantiating content class attribute0.00000.001140.0000
General
dbfile0.00160.2418230.0001
String conversion0.00000.001240.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
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 6

Time used to render debug report: 0.0003 secs