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.

Comments

yojoe’s picture

Status: Needs review » Postponed

I 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

dooug’s picture

I'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.

dooug’s picture

Version: 5.x-1.x-dev » 5.x-1.10
Status: Postponed » Needs review
karens’s picture

Status: Needs review » Closed (won't fix)

Too old now, way past the time when we will add features to D5 version.