Translate profile checkboxes
neochief - July 16, 2009 - 01:22
| Project: | Internationalization |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Description
Checkboxes fields are not translating in profile view pages. Their title is inside to '#value' argument, no '#title'.
| Attachment | Size |
|---|---|
| i18nprofile-translate-checkboxes.patch | 834 bytes |

#1
Yes, but we need to check the field is actually a checkbox. Funny things may happen otherwise.
#2
Agree, here's an update.
#3
Use only double quotes around the SQL string and single quotes around placeholders, please.
$field_type = db_result(db_query('SELECT type FROM {profile_fields} WHERE name = "%s"', $field));#4
Done.
#5
Only as a question as I haven't tested this... what is about 'checkboxes' or radio and others? Are they also not in #title?
If true -
if ($field_type == 'checkbox') {may be best to becomeif (in_array($field_type, array('checkbox', 'checkboxes')) {.#6
Hello everyone,
I am also experiencing the same problem.
Using Content Profile / Content Taxonomy / Term Tree Widget
Thank you all for your support!
#7
Looks good, committed. Thanks.
#8
How about checkboxes?
#9
Are there any checkboxes on the profile?
#10
Automatically closed -- issue fixed for 2 weeks with no activity.