Hello,
I'm trying to display a tag list via the Tagadelic module, but my terms are not localized. In #339945: Compatibility with i18n localized terms the Tagadelic maintainer says it should be done in i18n. I wonder what you think of this issue. (The patch in the linked issue does not work any more.)
Many thanks.
Comments
Comment #1
jose reyero commentedThe main issue with Tagadelic is that it caches the terms, we'd need to fix that term caching, make it per language.
Comment #2
srobert72 commentedsubscribing
Comment #3
fhelmschrott commentedsubscribing
Comment #4
thekayra commentedtt('taxonomy:term:'. $yourtid .':name', $title_term->name)does the trick actually. I used the following code to get the term (title term in the code) and its children.Comment #5
drupalina commentedHi thekayra,
Where exactly did you put this code??? inside the Tagadelic module or Taxonomy Translation module?
(I really need the Tagadelic to work with i18n (especially because there are 1000s of tags which are strings))
Many thanks!
Comment #6
thekayra commentedHi drupalina,
Sorry for the misunderstanding. I am not using the tagadelic module at the moment. I just wanted to share with you my snippet hoping that somebody will have an idea about "what to change in tagadelic module".
You should check if tagadelic module is using something similar to
tt('taxonomy:term:'. $yourtid .':name', $title_term->name)in the filetagadelic.module. The answer is "most probably not".Then you will have to replace the regular t('blahblah') functions with tt('a little more complicated blah blah') so that terms get their translations automatically and not by strings. You can then create a patch with what you changed and submit it for a review here. If the patch is good then maintaners would include it in the upcoming version or dev.
I hope you get what I am trying to say =).
Comment #7
rsorokine commentedIf this can be of any help, find the following function in tagadelic.module:
then copy it to your template.php (while renaming the function to reflect your theme name).
Change $term->name by:
tt('taxonomy:term:'. $term->tid .':name', $term->name)
That's it. No need to patch anything.
Comment #8
norsker commentedIs there a D7 way of doing the override in template.php? I can't make it work on my D7 installation.
Comment #9
jose reyero commentedNo patch so far. No new features for 6.x