If you define key|label pairs for a field (e.g. number) using optionwidgets.module, the labels cannot be translated (localised) because they are not displayed using the t() function. This small patch fixes this issue.
Please look at my patch and integrate it into optionwidgets.module if you think it's OK.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | cck_translateable_labels_checkboxes_radios.patch | 2.09 KB | dooug |
| optionwidgets.module.translateable_labels_0.patch | 579 bytes | yojoe |
Comments
Comment #1
yojoe commentedI postpone this feature request, because I hope this issue will be targeted in a more general way if localizer support is added to CCK. See http://drupal.org/node/117474
Comment #2
dooug commentedI'm not sure if the Localizer support has been added as mentioned in #1 above. The issue linked to seems to be for 6.x.
However, I needed to translate the fields' labels that used radio buttons & checkboxes. I've attached a patch that provides translation support for these labels. The patch affects the number.module, text.module and optionwidgets.module on CCK 5.x-1.10. Please review it and post any issues. Hopefully I used the t() function correctly.
Comment #3
dooug commentedComment #4
karens commentedToo old now, way past the time when we will add features to D5 version.