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
Comment | File | Size | Author |
---|---|---|---|
#2 | filefield_318993.patch | 2.94 KB | drewish |
filefield_codereview_0.patch | 2.8 KB | stella |
Comments
Comment #1
catchAll the changes look fine, and this applies cleanly, so marking RTBC.
Comment #2
drewish CreditAttribution: drewish commentedmoved the
into the message since it seemed to make a little more sense there. committed the attached to HEAD.
Comment #3
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.