Lets say, i have a vocabulary like

World (Vocabulary)
- Countries (Parent term)
-- Germany
-- France

And the vocabulary is localized. If I open the edit form in another language than the default. i get the following

Welt (Vocabulary)
- Welt (<strong><== here should be the translated parent term)<strong>
-- Deutschland
-- Frankreich

I have attached a patch to solve the problem.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jcisio’s picture

Status: Active » Needs review
FileSize
809 bytes

I don't have i18n now, but I doubt it works. But this one should: change that line to

$name = $localize ? tt($is_vocabulary ? "taxonomy:vocabulary:$vid:name" : "taxonomy:term:$term->tid:name", $term->name) : $term->name;

Please review!

ducdebreme’s picture

Yes, it works. Tested with I18N 6.x-1.7

jcisio’s picture

Status: Needs review » Fixed

Ok, the patch looks logical, too. Committed. Thanks!

Status: Fixed » Closed (fixed)
Issue tags: -i18n, -fieldset, -parent term, -Localized

Automatically closed -- issue fixed for 2 weeks with no activity.