Hi all,

First of all, a big big applause for the module. It is working great and very useful.

Currently, I am trying to implement i18n on my multilingual website. My goal is to show taxonomy tree in the edit mode in the current language (selected by user, not default) of the site.

I read quite a few issues about it and also tried a couple of different scenarios to make things work.

1- with Localized Terms:
The tree widget is only available in the default language. It is blank in other languages and if it is required (as in my case) it is impossible finish editing.

2- with Per language terms:
If the relations are constructed properly, the tree widget works fine in all languages. However, this does not fit my requirements. As the node that I am trying to create is neutral in language and does not need to be translated, so no syncing features to take advantage of.

I have seen that some development was going on at http://drupal.org/node/298146. But from what I understand, it does not solve the issue for autocomplete or the tree widget.

Is there something that I am missing? And/or are you planning to do any development regarding that issue? Or should I find my own way of dealing with that?

Thanks all in advance,
Kayra.

CommentFileSizeAuthor
#2 tax_tree_en.JPG38.76 KBthekayra
#2 tax_tree_fr.JPG23.59 KBthekayra

Comments

mh86’s picture

I was recently working on i18n support for the Taxonomy Manager, but I focused on multilingual vocabularies (per language terms). If you want to localize terms, you can try this patch here http://drupal.org/files/issues/taxonomy_manager_localization_0.patch and report how it works :)

thekayra’s picture

StatusFileSize
new23.59 KB
new38.76 KB

Thanks a lot for quick response.

Tried it. From what I can tell did not change anything for me.

# patch -b < taxonomy_manager_localization_0.patch
patching file taxonomy_manager.module
Hunk #1 succeeded at 402 (offset 11 lines).

I am also adding two screenshots. One in english, the other one in french. As you can see the tree widget disaapears in the french version.

thekayra’s picture

*bump*

pixelmord’s picture

Hi,

I have the same issue with the "standard" select widget.
I also want to use localized terms of a vocabulary.
I can use the select box while creating and it is displayed in the current language, but when I want to edit the content item in a non default language, the widget (select-list) is displayed empty. I only can edit the version in the default language, if it exists, otherwise I have to temporarily switch the language to be able to edit.

Thanks for looking into that

Andi

workonwomen’s picture

I think I have the same issue.
A content is created in the native language under the taxonomy/term/9
when I create a translation with "Create translation" /node/add/page?translation=127&language=de , then it is creating it, but
de/taxonomy/term/9 is not showing it.

Or if I decide to add the translation on "de" I mean German, then I have the same issue as the poster, that there is no tree view to select however I have choosen "Localize terms. Terms are common for all languages, but their name and description may be localized."

What can I do? Might the patch help?

pixelmord’s picture

I solved my issue now with installing the active_translation module. It seems that the modified queries to display also the "original" language as fallback also helps with the query that is selecting and rendering the taxonomy terms of a localized vocabulary in edit mode.

steps I took:
- I installed active_translation module
- made the setting to display all nodes in all languages in the administration page for i8n (/admin/settings/language/i18n/configure)
- also set there to switch interface language in edit mode (although that wasn't needed to fix the problem, I think)

Hope that helps you too!

magnus’s picture

Status: Active » Closed (fixed)

Please reopen issue if problem still exists.

c-c-m’s picture

Version: 6.x-1.0-rc1 » 6.x-1.0-rc2
Status: Closed (fixed) » Active

Using 6.x-1.0-rc2 and active translation but the problem persists. Although I have set vocabulary to share terms but terms and descriptions may vary according to language and I have translated all terms of a vocabulary, the widget tree only displays the terms in default language.

marcel66’s picture

For me it works:

1. Add "$tree = i18ntaxonomy_localize_terms($tree);" in taxonomy_manager_module after line "$tree = _taxonomy_manager_tree_get_item($element['#vid'], $element['#parent'], $element['#pager'], $element['#siblings_page'], $element['#search_string'], $element['#language']);"

2. Don't mention any language in your form element. For example:
$form['taxonomy'] = array(
'#type' => 'taxonomy_manager_tree',
'#title' => t('Choose category'),
'#vid' => 1,
'#parent' => 0,
'#pager'=>TRUE,
);

c-c-m’s picture

I don't understand what did you do in order to make it work, could you be a little bit more specific?

Thank you!

marcel66’s picture

I'm sorry....

First... taxonomy should have - multilingual option: "Localize terms"
You should have i18n.module activated

Then I have changed in the file taxonomy_manager.module the function taxonomy_manager_tree_process_elements() adding after line "$tree = _taxonomy_manager_tree_get_item($element['#vid'], $element['#parent'], $element['#pager'], $element['#siblings_page'], $element['#search_string'], $element['#language']);"
the line
"$tree = i18ntaxonomy_localize_terms($tree);" (of course you have to have module i18n activated)

In your form you should not mention any language information.
If you mention language information then your taxonomy should be "Per language terms"

I hope my information were useful.

...If you have found a solution for "#default_value" to bring on tree elements which are selected... please help me also...

marcel66’s picture

Hello and thank you for your great work.

I have used the patch and it works (on last version 6.2). You don't have to mention any language information in this case in your form.

marcel66’s picture

Issue summary: View changes
Status: Active » Closed (outdated)