Hi,
I've a forum with 4 languages (D/F/I/E), default is English.
The website (admin interface, menus, web pages) works fine with the language switcher, but not forums.
The forums vocabulary is set to "localize terms".
All forums/containers are visible as tax terms, with the language set to English. A term name, but not description has been added for each term.
In the translation interface all term strings are visible, and have been translated to the 3 languages (I found translation_table to be the easier way to do this).
Searching for translation status of all tax terms shows that they are translated.
Lang configuration is "Path prefix with language fallback".
Multilingual system settings are: "Mixed current language (if available) or default language (if not) and language neutral."
Using D6.14+il8n modules enabled except view translation.
But the Forum names/containers are not translated.
What is wrong, where/how can I debug this?
Thanks in advance,
Comments
Comment #1
sinasalek commentedSame problem here
Comment #2
boran commentedI've been trying to solve this for weeks now.. many posts I googled refer to D5, or are imprecise.
I also bought the UsingDrupal book and in chapter 8 its explained how to setup a translated forum, but that doesn't work either. No explanations in the book's forum either http://forums.oreilly.com/category/39/Using-Drupal/.
Just noticed: If a forum is reached by its tax. term, i.e. "fr/taxonomy/term/1" forum title are translated, but not if used by the forum URL, i.e. fr/forum/2.
Going into sites/all/modules/i18n/i18ntaxonomy, and doing a "grep -i forum *" shows nothing!
In fact "grep -iR forum *" a level higher shows nothing either..
Does anyone have a multilingual D6 forums running out there?
Comment #3
boran commentedYipee! Just found one fix in http://drupal.org/node/277689.
Since Advanced Forums in being used in this case, modify the advanced_forum_preprocess_forum_list()
in modules/advanced_forum/advanced_forum.module, to add the following on the third line of that function:
With that the list of forums on the /forum page is translated.
When in an individual forum, (e.g. /forum/14), the forum name is not yet translated though.
Comment #4
boran commentedSo, my solution for the standard (core) forums modules is to add calls to i18ntaxonomy_localize_terms() to forum_nodeapi(), template_preprocess_forums() and template_preprocess_forum_list().
This fixes: the container list (+ breadcrumb), and forum list within a container.
The hack in #3 is not needed in advanced_forums, if the above is applied.
Although this works, I still find it hard to believe its necessary to hack core to get forums translated... there must be a more elegant and upgrade-compatible way..
If forums was not in core, or implemented as objects, then maybe overriding functions would be easier..
One idea would be to fix upstream in modules/taxonomy/taxonomy.module, in taxonomy_get_parents() and taxonomy_get_vocabulary(). That would benefit other modules using taxonomy and not just forums.
Once again its a core hack though... I'd like the opinion of a experienced Drupal developer on where this should be fixed..
Comment #5
boran commentedJust found a patch to i18ntaxonomy (committed on 4th.Aug.09 not yet in the stable release), http://drupal.org/node/531710, which overrides _nodeapi.
Applying this patch does not solve the forums/containers/breadcrumbs translations for me though.
Comment #6
kars-t commentedThe main problem is that a forum post is a node in a designated language. If you try the language switch block you can't get a translation and can't really change the interface language. To make this short: A pain in D6. Maybe better in D7.
I am closing this due to long inactivity.