Download & Extend

Compatibility with i18n localized terms

Project:Tagadelic
Version:6.x-1.0
Component:Code
Category:support request
Priority:critical
Assigned:moritzz
Status:closed (won't fix)

Issue Summary

If I route the translation of terms through localization (not using separate terms for each language) and apply this patch, tagadelic works flawlessly on my site.

Unfortunately I could not check how to translate vocabulary names appropriately.

Do not hesitate to contact me for further assistance.

AttachmentSize
tagadelic.module.patch957 bytes

Comments

#1

Status:needs review» closed (won't fix)

Thank you very much for you work.

But I very much dislike if module-exists solutions. They are neither modular, nor scalable. Imagine having to make exceptions and if/elses for every single of the 400+ modules around?

IMO this should be handled in the i18ntaxonomy module. Tagadelic uses all the proper hooks and apis to render taxo terms, so if they are not translated, then either:
* tagadelic forgot to implement an api or hook somewhere: we have a bug to fix,
* i18ntaxonomy does not work with the proper tools, and should fix their bug,

Ber

#2

Hi there, any progress on a fix for multilanguage tagadelic? thanks!

#3

yay, patch works great! thanks so much

#4

Check this (http://drupal.org/node/584376) if you want a patch without module_exists

#5

I implemented the changes in the patch to standard 6x-1.2 release. It works perfectly. (It doesn't work for the latest .dev release of tagadelic).

The drawback is that the size of the tag is still determined by the number of nodes in the original language, rather then then number of translations in that tag. (I think that's something that should be handled by the tagadelic module)

But then there are other elements of this functionality that should be handled by the i18n Taxonomy module.

It would be nice to have a fully working solution for multilingual sites that are using tagadelic clouds for tags as translatable strings.

#6

Maybe you hate this patch, but it just works. Better than the http://drupal.org/node/584376 what had no visible effect on my site...

#7

Hi,

I've been searching a solution to this issue, but couldn't find any so far...
It goes like this : when setting my vocabulary "blog post tags", I can choose between "Per language terms" and "localize terms".

- "Localize terms" integrates with taxonomy : the tag cloud only shows tags in the right language. Yet when choosing "localize terms", on the blog posting page, terms should only be entered in English (and this is a problem, for instance, for a user who is writing in Italian and has to translate every of his tags to English...)

- "Per language terms", on the contrary, doesn't compel users to write tags in English, so it would be great to go with that, but unfortunately it doesn't work with the Tagadelic module. The Tagadelic tag cloud then displays tags in all languages, not only in the current language.

So has you already figured out this is a common issue to tagadelic and Taxonomy, so I don't know who should handle this... (and I could not find the place to forum post for "taxonomy" since this is included in the core).

What do you think ? Would you patch fix that issue ? My last post got closed for duplicate reasons, but I'm unsure this one is about the same problem. :)

#8

Subscribe

I have a Taxonomy with settings:
x Per language terms. Different terms will be allowed for each language and they can be translated.

I would like to have blocks showing only tags in the current language, defined in the block settings.

Haven't found a way to do this...

#9

When I was using Cumulus I had the exact same issue, the tag cloud displayed all terms (regardless of language).

My solution was to extend tagadelics function tagadelic_get_weighted_tags by an additional parameter for language (defaulting to NULL). Further, the block hook has to be altered in order to call the function mentioned above with that new parameter.

Tagadelic then only loads terms of the selected language OR terms without any language set.
[I was in need of this since I had terms which where spelled the same in two languages and therefore have not been assigned to a specific language.]

I just created a patch against latest version 1.3, maybe this helps you if you have got vocabs with terms per language.

Cheers,
Paul

AttachmentSize
language_tags.patch 3.28 KB

#10

Found a module doing this better than patching tagadelic:
http://drupal.org/project/views_cloud

But thanks for sharing your patch either.
:)

nobody click here