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

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