Project:Internationalization
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

Checkboxes fields are not translating in profile view pages. Their title is inside to '#value' argument, no '#title'.

AttachmentSizeStatusTest resultOperations
i18nprofile-translate-checkboxes.patch834 bytesIgnored: Check issue status.NoneNone

Comments

#1

Status:active» needs work

Yes, but we need to check the field is actually a checkbox. Funny things may happen otherwise.

#2

Status:needs work» needs review

Agree, here's an update.

AttachmentSizeStatusTest resultOperations
i18nprofile-translate-checkboxes2.patch995 bytesIgnored: Check issue status.NoneNone

#3

Status:needs review» needs work

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

Status:needs work» needs review

Done.

AttachmentSizeStatusTest resultOperations
i18nprofile-translate-checkboxes2.patch995 bytesIgnored: Check issue status.NoneNone

#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 become if (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

Status:needs review» fixed

Looks good, committed. Thanks.

#8

How about checkboxes?

#9

Are there any checkboxes on the profile?

#10

Status:fixed» closed (fixed)

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