3

We have a Plone site that is primarily in English but has some content translated to French, and to a smaller degree had some pages originally in French and translated to English. In Plone 3, this has been working fine.

In Plone 4, a user whose language is set to "fr" can see virtually nothing - only those pages with a translation to French.

If we run @@language-setup-folders it gets worse - now anything that is defined as "language neutral" is invisible to English users too.

Surely, the intended behaviour is that a user whose language is set to English will see folders in "/Plone/en/...", and a French user will see "/Plone/fr/...", but if the page is not found it should fall back to /Plone. This is not happening.

  1. Should it?
  2. If so, under what conditions?
Auspex
  • 2,175
  • 15
  • 35

4 Answers4

2

The language-neutral thing is a known bug, I believe. As to the fallback: as I understand it, the current behaviour is as follows: if you switch from en to fr and the current object does not have a fr translation the user is returned upwards towards the site root until there is a fr folder. (Or the root is reached.) No, I don't think that makes too much sense either, but at least a fr user will never see an en page. ;)

Ulrich Schwarz
  • 7,598
  • 1
  • 36
  • 48
2

If you run @@language-setup-folders, you intitiate a setup that assumes that all content lives in the content-specific trees. The language folders are marked as INavigationRoot and will have the navtree and all anchored to the language folder.

You should basically assume each language to act as its own site with its own root.

— Except that translation management will keep "links" between translated versions of content and folders.

Geir Bækholt
  • 376
  • 2
  • 4
  • That isn't explaining to me how to make LinguaPlone actually work :-) I understand that @@language-setup-folders makes things worse - but I'm trying to figure out how we can have _all_ users see all content - and fall back to our default content if there is none in their own language. Prior to LinguaPlone 4, this worked. Unfortunately decisions seem to have been made intentionally to break this behaviour. – Auspex Apr 02 '11 at 14:18
1

LinuaPlone only supports "full translations", that is, for every article there must be a translation. Very bad for many use cases where you only have one main language and only a subset of all articles actually needs to be translated... :(

You should have a look at http://plone.org/products/raptus.multilanguageplone (and its dependency http://plone.org/products/raptus.multilanguagefields). These addons do what you want :)

nachtigall
  • 2,447
  • 2
  • 27
  • 35
0

You can still make items language neutral. And this way they can still appear in the site of the other language via a collection.

I think setting items to Language Neutral used to work via "manage translations", but now it still works via:

Edit > Categorization > language
Select language neutral

Andreas Louv
  • 46,145
  • 13
  • 104
  • 123