Hello

I'm trying to create a view to search users in which you can choose the gender (male, female). With the traditional system of profile fields already had enough, so far I translated the site into Spanish. The system, filter users by text, not by ID (or order in selection list)

So far I have solved by changing the profile field with the text "Male - Hombre" and "Female - Mujer." Which seems very ugly.

So I set out to prove Profile taxonomy, thinking that would solve the problem. But I see that if I translate the taxonomy term "Male" to "Hombre", I dont see translated, when I see the website in Spanish.

Any advice?

Another question.

In case I can see the translated term, when choosing the gender selection list in the view (search users), this filter by the ID of the term (by selecting all of one gender)? or this filter by the text of de profile field in the active language?

I guess this depends on how it are saving the profile field information (the text of the term or the term id)

thank you very much!

PS: I'm using Drupal 6.16.

Comments

disparil’s picture

About the second question, I looked at the database and it seems that store the text of the item selected in the gender list.

Is it possible to save the ID of the term instead of text, so the choice is independent of any language?

gnindl’s picture

Status: Active » Needs work

Unfortunately storing text is the default behavior of the profile select list field. Changing text to ids would require further formatting and would break integration with profile_checkboxes and Views.

I know it's ugly that way, but maybe there's a work around for that. In the hook profile_taxonomy_user() we might override the $op = 'view' and translate the terms manually. Then we would have to fetch the trid from term_data manually (by name).

t30396360’s picture

hi , i need some help , i will like to add a field in profile that will be select list , "dog , cat" and when selecting dog a new filed to apper selecting the dog breeds , and when selecting cat same .

pls help.. thanks , drupal roules

gnindl’s picture

Status: Needs work » Fixed

Since version 1.0 i18n for taxonomies is supported and it can be switched off.

Status: Fixed » Closed (fixed)

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