Multilanguage dependent listings are not supported at all

Eudaimonius - January 19, 2008 - 06:25
Project:Drupal
Version:7.x-dev
Component:language system
Category:feature request
Priority:normal
Assigned:Unassigned
Status:patch (code needs review)
Description

What are the steps required to reproduce the bug?
- add language
- set Language negotiation: Path prefix with language fallback.
- enable block: language switcher
- set content type/story/mutlilingual support: Enabled, with translation
- create story
- translate story to another language
- uncheck: promoted to front page (for translation only)
- view site's front page
- change language using the language switcher

What behavior were you expecting?
- display the translated version of the story

What happened instead?
- adress change to /xy/node (xy: language code)
- display original story, not the translated version

#1

kdebaas - January 19, 2008 - 16:21
Priority:normal» critical

The default frontpage shows all promoted nodes, irrespective of language. So when the translations are also promoted to the frontpage, they show up as well as their original stories.

According to the handbook page Paths and block visibility

* Note than when using a node listing page as the front page - like the default 'node' - [...] the system will select only the right nodes for each language.

This was written for 5.x, but should work as described for 6.x, so I dare say this can be marked as critical.

#2

theborg - January 19, 2008 - 22:47

This patch modifies node listings on default node path to show only nodes for the language selected.

AttachmentSize
node_listing_language.patch1.07 KB

#3

theborg - January 19, 2008 - 22:48
Version:6.0-rc2» 6.x-dev
Status:active» patch (code needs review)

#4

kdebaas - January 20, 2008 - 11:38
Status:patch (code needs review)» patch (code needs work)

I applied the patch and it works for nodes with a specific assigned language. However, this patch excludes language neutral nodes from the node listing on the front page.

#5

theborg - January 20, 2008 - 13:02

Thanks kdebaas. Corrected the error.

AttachmentSize
node_listing_language_b.patch1.09 KB

#6

theborg - January 20, 2008 - 13:03
Status:patch (code needs work)» patch (code needs review)

#7

kdebaas - January 20, 2008 - 16:09

Yes, that worked for me.

#8

Gábor Hojtsy - January 21, 2008 - 13:33
Title:language switcher does not work on front page» Multilanguage dependent listings are not supported at all
Version:6.x-dev» 7.x-dev
Category:bug report» feature request
Priority:critical» normal

Well, this all comes down to admin/user expectations. Some might need language neutrals listed, some might not. People will need this for their taxonomy listings for their blog URLs, for their aggregator items, user listings, whatever, all these might need different setups. (Eg. list all blog entries but only list content in taxonomies with the current language). While this looks like a critical omission in Drupal 6, there are so many config options one would need to implement to make this work, and the multitude of missing multilanguage features already require you to use i18n or localizer module anyway, this is to be implemented in i18n/localizer in Drupal 6.

#9

Robin Monks - September 1, 2008 - 11:24

Patch still applies, but, I'm not sure if the functionality is still needed, so, not testing.

Robin

 
 

Drupal is a registered trademark of Dries Buytaert.