CoreCommunity ExtensionsIncubatorDistributionsTYPO3 4.5 ProjectsTYPO3 4.6 ProjectsTYPO3 4.7 ProjectsTYPO3 6.0 ProjectsTYPO3 6.1 ProjectsTYPO3 6.2 Projects (+)

Feature #34202

[patch] An attempt to improve multilanguage support

Added by Claudio Strizzolo about 1 year ago. Updated about 1 year ago.

Status:New Start date:2012-02-23
Priority:Should have Due date:
Assignee:- % Done:

0%

Category:-
Target version:-
Votes: 0

Description

The attached patches, which apply to the current SVN release, are a partial attempt to improve the multilanguage support of Tag Pack.
Maybe someone can find them useful, although a lot could be done to get a more complete solution.

The target is: on a multilanguage site, make the page editors able to define different tags for each page language. When using the Tag Pack FE plugin, only the tags connected to the contents written in the current language should be displayed.
The attached patches try to solve the FE part of the problem: they allow to display only the tags related to the contents available in the current language.

Jo Hasenau once suggested to me: "The problem with pages is, that they are using an overlay table to get translated records. You have to make the overlay table taggable as well, but this would not include the FE tagcloud out of the box, so I'm not quite sure this would be working."

I have tried to work around this by patching the code a little.
Basically I've added some conditions in order to handle cases where the "pages" table is requested and the language is not the default one. In those cases the information is taken from "pages_language_overlay" table instead of "pages".
I haven't changed anything about handling other tables.

The trick seems to work, at least in my little sandbox.
I am sure my code can be largely improved, though.

pi1_multilanguage.txt (4.1 kB) Claudio Strizzolo, 2012-02-23 15:39

pi3_multilanguage.txt (3.9 kB) Claudio Strizzolo, 2012-02-23 16:36

History

Updated by Claudio Strizzolo about 1 year ago

A slightly modified version of the patch for pi3. The old one had a little bug in the sort.

Updated by Claudio Strizzolo about 1 year ago

  • File deleted (pi3_multilanguage.txt)

Also available in: Atom PDF