Hi,

CivicActions is reviewing and upgrading modules for use on client sites. Part of this process is an internationalization review. A number of internationalization issues were found, mainly to do with the following syntax:

$var = t('Download the module !link', array('!link' => l(t('here), 'http://drupal.org/project/emfield')));

This is invalid because it doesn't provide any context to the translator. Instead the following syntax should be used.

$var = t('Download the module <a href="@link">here</a>', array('@link' => 'http://drupal.org/project/emfield'));

There were a couple of other internationalization fixes too, including removal of leading/trailing spaces in strings passed to t() - this causes problems for the translators and often prevents some translations from appearing.

Finally, there are a few Drupal 5 to Drupal 6 api changes. In Drupal 6, (un)serialize() should not be used on cache_set() and cache_get() data - see http://drupal.org/node/114774#cache-data-parameter for more details.

Hope the patch helps.

Cheers,
Stella

CommentFileSizeAuthor
emfield_codereview.patch63.97 KBstella
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Alex UA’s picture

Status: Needs review » Fixed

Wow. Thanks for such a thorough review and patch. This all looks good to me- I'll commit it today.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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