Hi,

CivicActions is reviewing and upgrading modules for use on client sites. Part of that process is an internationalization code review. There was just one internationalization issue found with the filefield module.

The t() function was not really intended for use on $variables, and it prevents the potx module from extracting these strings for translation. The attached patch overcomes the two instances of this found by passing the string directly to t() / watchdog() - don't forget watchdog() calls t() on the message string provided. If you don't like this approach, you could translate the string first and then pass it in to both functions using a t() placeholder.

The patch also includes a couple of other smaller changes - one is for a missing & while the other makes use of the new D6 schema api for altering tables.

Hope the patch helps.

Cheers,
Stella

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

catch’s picture

Status: Needs review » Reviewed & tested by the community

All the changes look fine, and this applies cleanly, so marking RTBC.

drewish’s picture

Status: Reviewed & tested by the community » Fixed
FileSize
2.94 KB

moved the
into the message since it seemed to make a little more sense there. committed the attached to HEAD.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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