I'm using primary_term on a multilingual site. I noticed that the list of terms in the form select added by primary_term weren't translated, because primary_term installs itself with weight 9, and so it runs before i18ntaxonomy (weight 10). I changed the weight to 11 and everything worked perfectly. So, I propose patching the .install file.

This also needs a call to hook_update_N() for people who already have the module installed, but I don't have time to write that now. In the meantime, in case anyone reading this has the same problem, the following query is needed:

update system set weight = 11 where name = 'primary_term' limit 1;

CommentFileSizeAuthor
primary_term_weight.patch668 bytesmvc

Comments

sethcohn’s picture

Assigned: Unassigned » sethcohn
Status: Needs work » Needs review

+1 to this

nedjo’s picture

Status: Needs review » Needs work

Needs the update function. Also, probably better to detect the current weight of i18ntaxonomy and set to one more than that, defaulting to 11 if i18ntaxonomy is not enabled.

sethcohn’s picture

agreed. I'll be merging this with some other similar needs, to ensure it runs after all of the other items it needs to run after...

Actually, that is still a temp fix... the problem is the way it generates the list of primary terms: it grabs them from the existing form... I think we need a better answer here anyway...

I'll be releasing some primary_term code next week. Going on a small vacation first.

brianV’s picture

Version: 6.x-1.0 » 6.x-1.x-dev
Status: Needs work » Fixed

PT now uses i18ntaxonomy to localize the vocabulary terms as it builds it's widget. Fixed in http://drupal.org/cvs?commit=438132 .

Status: Fixed » Closed (fixed)

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