Closed (won't fix)
Project:
Internationalization
Version:
6.x-1.0-beta3
Component:
Blocks
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
2 Jul 2008 at 12:51 UTC
Updated:
8 Oct 2011 at 16:23 UTC
I just created some translations for the taxonomy (name / description) on the forum vocabulary, but they won't show up in the general forum pages where the user can choose a particular forum to display. The names and descriptions stay on default language.
I looked into the theming functions of the forum module and those "name"s and "description"s are not surrounded by t() function when printign them out. My question is, should the i8ntaxonomy already have translated them when forum is processing them, or do I have to alter the forum-theming-functions myself?
see http://api.drupal.org/api/file/modules/forum/forum-list.tpl.php/6/source
Comments
Comment #1
japanitrat commentedhmm, as intermediate workaround i am now hooking into template_preprocess_forum_list in my template.php file of the theme as in:
I know, this is a bad solution, since it's on template-level and only working for the forum-listing (and not for breadcrumbs for instance).
Any ideas on a better implementation in order to translate the taxonomy more near the core?
PS:
idk, if this is intended, but i18ntaxonomy_localize_terms replaces descriptions with names per default as in line 6 below (in the 6.x beta1 as well as the dev version):
so i changed $term->name to $term->$property, to get the proper default string, if no translation has been found.
Comment #2
toemaz commentedI have the exact same problem.
- Installed i18n 6.x-1.0-beta3 and enabled multilingual taxonomy
- Set the forum vocab on the second i18n option: translate name and description for each term
- Translated all the terms
For any language other than the default (en in my case), the forum terms & descriptions remain in the default language.
However, when adding a new forum topic via /node/add/forum/0 , the terms in the select box to add the new topic to the right forum are translated. So that seems to work.
I presume the solution presented above will work. However, I think it's odd that this is a Drupal core issue.
Comment #3
toemaz commentedI'm really starting to think this is a bug in the core forum module, rather than i18n module. Should we move?
See: http://api.drupal.org/api/file/modules/forum/forum.module/6/source
Comment #4
jose reyero commentedThe problem is Drupal 6 core doesn't handle multilingual taxonomies (Forum relies on taxonomies) nor user defined string translation.
So yes, this is a desirable feature to be added into i18ntaxonomy. Possibly we'll need a replacement page for the Forum landing pages.
Comment #5
jaydublu commentedI eventually managed to get a hooking into template_preprocess_forum_list in template.php file of my theme. This is working for the content of the forum_list table.
However, I can't figure our how to correct the page title on forum_topic_list page which still shows the default language.
On a topic page curiously, although the crumbtrail is in default language the link to the parent forum within the main page is translated.
Since the forum module is core, I agree that the best place for the fix is within the i18n module.
I'm currently using Drupal 6.9 and Taxonomy translation 6.x-1.0
Comment #6
cronix commentedIs there any process on this issue? I am experiencing exactly the same issue. My taxonomy menu is also not translated. Are these two related?
Comment #7
cronix commentedIs there any progress on this issue? I am experiencing exactly the same issue. My taxonomy menu is also not translated. Are these two related?
Comment #8
mikhailian commentedjapanitrat , thank you for the hack! This was really helpful.
Comment #9
boran commentedSee also http://drupal.org/node/584356, a thread I'd started before finding this one.
Comment #10
jose reyero commented#1303518: Clean up the issue tracker. Close old issues without follow up.