Re: LinguaPlone 4.0b1: Translated Home page howto?

Johannes Graumann <johannes_graumann-S0/[email protected]>
Newsgroups gmane.comp.web.zope.plone.internationalization
Message-ID <[email protected]>
On Wednesday 24 November 2010 08:11:59 Mikel Larreategi wrote:
> 2010/11/24 Johannes Graumann <johannes_graumann-S0/[email protected]>:
> > On Tuesday 23 November 2010 10:11:12 Mikel Larreategi wrote:
> >> 2010/11/23 Johannes Graumann <johannes_graumann-S0/[email protected]>:
> >> > Hi,
> >> > 
> >> > My apologies for re-posting from plone.user. I did not get any
> >> > feedback there and went searching for a more appropriate place ...
> >> > 
> >> > I'm running
> >> >    * Plone 4.0
> >> >    * Zope 2.12.10
> >> >    * Python 2.6.5
> >> > from an recently "buildout -n"ed universal installer installation.
> >> > 
> >> > I have installed LinguaPlone 4.0b1, which works fine, but I do not
> >> > manage to get a translated home page u and running ...
> >> > The language default of the plone instance is German, so I have a
> >> > German greeting (front-page) showing p upon successful login. Now I
> >> > want to have that in English as well and hit the translate button and
> >> > proceed with the translation. The created content item
> >> > (front-page-en) shows then up in the navigation bar at the top of the
> >> > default plone4 theme, but the "Home" button in that bar keeps
> >> > referring t the German version.
> >> > 
> >> > Can anyone please set me on the right track to have a properly
> >> > translated font-page?
> >> 
> >> The default-page story has changed in LinguaPlone. Now the default
> >> strategy is to create 'language folders' like /de and /en. You can get
> >> that executing http://yourserver:port/plonesite/@@language-setup-folders
> >> It creates one folder for each language and sets a language
> >> 'negotiator' at the plone root redirecting to the proper language
> >> folder. That way, you can set default pages for each language.
> > 
> > Thanks for that hint, but I get the following error:
> > 
> > Traceback (innermost last):
> >  Module ZPublisher.Publish, line 127, in publish
> >  Module ZPublisher.mapply, line 77, in mapply
> >  Module ZPublisher.Publish, line 47, in call_object
> >  Module Products.LinguaPlone.browser.setup, line 26, in __call__
> >  Module Products.LinguaPlone.browser.setup, line 65, in setUpLanguage
> >  Module Products.CMFCore.WorkflowTool, line 237, in doActionFor
> > WorkflowException: No workflow provides the '${action_id}' action.
> > 
> > Could proxying (I'm using NGINX) be a problem for this?
> 
> I don't think so... try with a pdb in line 65 of
> Products.LinguaPlone.browser.setup. It seems that it's trying to
> execute an impossible workflow action.
> 
> I made it work without errors in several Plone 4 sites.

I fell back to a virgin install and I think I figured out that in order for 
your approach to work the "Default Site Language" needs to be selected in 
"Available Languages" (both in @@language-controlpanel). This should probably 
be taken care of automatically ...

Joh

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev

_______________________________________________
Plone-i18n mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plone-i18n
signature.asc (application/pgp-signature, 836 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQIcBAABCgAGBQJM7Q6EAAoJEAK4kzz0L7r+Yg4P/iFLXqA3WXEXI5Rl5v6sTD1C
fze/MlBAuy5pYs6OFcyG25UShKEVF4jgOogWkjYHNxxm5DgXH4o70VDWUsYyhcbS
8LzWy2+DdyJMd1tCoYnjG46Dkn2h4pQpv44XdIXTyQgcL3SaP8IAn3EHG6RcuIcN
geuTVdSSmY0+05gH05GofU19BosvRyFoqc2Tse5Mr/k19GHv6VXRRXcVP58Gt9zB
Cp11CKtL6zZwcZAhQBcuV8N6w3cngmzCan0XGH9oj6/s0LKBQnE4+oSqvh0EH7mO
Qhjxikjd/37n27a2KIYbEWPnWp2kLCF33qHgcWSbfCpNDZGKe11OFfykCfe9vi7X
qzHQS8yzJVCMR9NznwdTqc77Zc1LW4WK1BCIuzpKPRU/1joUsAMqnr0ZwOJwVW7J
H5fPFQB6SgF39wwvTiI47fmvoBmKET/BWhfPTbpN1ZqaDIKg7FYck620cgrt5m+A
nzyjT0qe5YguHKY5VqhuJzdybf02j+Of+1m9Y0FZRFRAcNIiAFLHpJQDdsaoyEVy
NvYfTBRLXcOeVrAP7TKsURwlDhTaXSsWsG/IXdI+xzCmTmNQ+lZZeOnccXhJaHEF
F614ezaPem5199Yx29VDodO73dhxNbNTSP2UTPgAX7pDNmFJMVS7Stc32I1Rc7ID
2H5RkFYG94feEQBkBMWq
=sd9x
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.