Forums / General / How to force content creation language in BO?

How to force content creation language in BO?

Author Message

Nicolas Panau

Wednesday 13 July 2011 3:29:14 am

Hi,

I Have a monolingual site (french), and I'm looking for a way to skip the "choose language" screen.
I haven't found any params yet in ini files...
Any clue anyone?

Thanks

www.umanit.fr

Damien Pobel

Wednesday 13 July 2011 4:39:42 am

Hi Nicolas,

This is a typical issue for mono language site not in eng-GB and I'm afraid there's no easy solution currently.

The cleanest solution is probably to remove the eng-GB language through /content/translations in the admin interface. But if I remember correctly, to be able to do this, you have to translate all existing objects and classes in fre-FR and then remove the eng-GB versions for each... On an existing project this can be quite long but I think it should be feasible through a script if you consider that not yet translated objects/classes should be the same in fre-FR.

Cheers

Damien
Planet eZ Publish.fr : http://www.planet-ezpublish.fr
Certification : http://auth.ez.no/certification/verify/372448
Publications about eZ Publish : http://pwet.fr/tags/keywords/weblog/ez_publish

Thiago Campos Viana

Wednesday 13 July 2011 4:48:53 am

Override the related template and add this field:

<input type="hidden" name="ContentObjectLanguageCode" value="{ezini( 'RegionalSettings', 'ContentObjectLocale', 'site.ini')}" />

eZ Publish Certified Developer: http://auth.ez.no/certification/verify/376924

Twitter: http://twitter.com/tcv_br

Nicolas Panau

Wednesday 13 July 2011 4:58:08 am

@Damien thanks, i was afraid of this answer (i've seen the 'eng-GB' hardcoded somewhere :-s). Think i should'nt have created the french language, it would have been simplier. Anyway, that's a new website, i might restart the install ^^'

@Thiago that's a solution, but i don't like overriding BO functions, specially "the create here" drop down (which has discutions about usability if i remeber correctly).

Anyway, i have my answer, thanks! :-)

www.umanit.fr

Hamdi Laadhari

Wednesday 13 July 2011 6:05:32 am

eng-GB is kind of hardcoded into eZ Publish kernel. It a strange behavior, we have to do with it.

Certified eZ Publish Entreprise 4.5
http://www.laadhari.fr

Gaetano Giunta

Thursday 14 July 2011 5:24:22 am

eng-GB is not "hardcoded" in eZ. It's just that the default content classes are all created in english, and you have to de-translate them before english can be deactivated. Starting with a very empty content setup is your best bet (get no demo content from packages or start the db using the sql provided with sources instead of using the setup wizard)

Principal Consultant International Business
Member of the Community Project Board

Nicolas Panau

Monday 18 July 2011 8:22:57 am

Thanks Gaetano, it works perfectly! (delete all class translations, and then delete English Language).
You saved me hours ;)

www.umanit.fr

eZ debug

Timing: Jan 17 2025 20:54:29
Script start
Timing: Jan 17 2025 20:54:29
Module start 'content'
Timing: Jan 17 2025 20:54:30
Module end 'content'
Timing: Jan 17 2025 20:54:30
Script end

Main resources:

Total runtime1.2177 sec
Peak memory usage4,096.0000 KB
Database Queries212

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0077 600.0234180.8281
Module start 'content' 0.00771.0200 780.8516758.0078
Module end 'content' 1.02770.1899 1,538.8594340.6719
Script end 1.2176  1,879.5313 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.3198210.0002
Check MTime0.00140.1141210.0001
Mysql Total
Database connection0.00070.060010.0007
Mysqli_queries1.115991.63962120.0053
Looping result0.00230.19142100.0000
Template Total1.180897.020.5904
Template load0.00180.147220.0009
Template processing1.179096.826520.5895
Template load and register function0.00010.008910.0001
states
state_id_array0.00190.159610.0019
state_identifier_array0.00110.093320.0006
Override
Cache load0.00150.1271330.0000
Sytem overhead
Fetch class attribute can translate value0.00120.101560.0002
Fetch class attribute name0.00110.0912110.0001
XML
Image XML parsing0.00300.248560.0005
class_abstraction
Instantiating content class attribute0.00000.0024130.0000
General
dbfile0.01351.1067450.0003
String conversion0.00000.000430.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
6content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 26
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs