I have created a content type and attached a vocabulary with (multilingual) terms to it. But I can't find how to mix these terms in search results.

Eg. Content type CityPicture. Users can upload a picture of their city, let's say Brussels. There is a vocabulary "city". Dutch speakers will use "Brussel", French users will use "Bruxelles" and English users will use "Brussels".

The question: how can I show a list all pictures of "Brussels", knowing that the vocabulary "city" has multilingual terms for "Brussels" . Or otherwise, how to make sure that when a user clicks a term in any language, he also sees the pictures of the same city but in other languages. (taxonomy/Brussels = taxonomy/Bruxelles = taxonomy/Brussel )

All help is very much appreciated!

Comments

kulvik’s picture

This is the same problem that I'm having. Right now there seems to be no way to assign non-translated content so multiple taxonomy terms (different term translations) :(

Best regards,
Thomas Kulvik

Ny Media AS
www.nymedia.no
+47 4000 7955

kulvik’s picture

A worst possible hack:

I really needed this to work so I had to hack it in the worst possible way. Here's a hack for you if you are desperate like me:

Edit i18n.module and replace case 'simple' on line 771 with this:

    case 'simple':
	    if (arg(0) == 'node' && arg(2) == 'edit') {
	    	return "$alias.language != 'xxxxx'";
	    } else{
	    	return "$alias.language ='".i18n_get_lang()."' OR $alias.language ='' OR $alias.language IS NULL" ;
	    }

Yeah, I know... "what's up with the 'xxxxx'?". I'm not a db_rewrite expert. It wouldn't just accept removing that check so I had to replace it with something "random".

So what this really does is that when you edit your Brussel imagenode you will be presented with all taxonomy terms in all languages instead of just the ones in your current interface language. For this to work, you must select "Only current language and no language" under admin/settings/i18n (advances settings).

I know it's an awful solution! But it works... :/

Best regards,
Thomas Kulvik

Ny Media AS
www.nymedia.no
+47 4000 7955

jose reyero’s picture

Status: Active » Closed (fixed)

Cleaning issue queue for old versions. If you want to get any support consider using the forum or updating to 6.x.

See #626858: Internationalization 5.x Maintenance Policy. Approaching end of support.