Problem/Motivation

Currently a number of strings are translated as a variable, for example:

$text = 'Add new !title';
if ($max >= 0) {
  $text = 'Add another !title';
}

'#value' => t($text, array('!title' => t($instance['settings']['title']))),

These strings are not extracted by template extractors such as potx.

Proposed resolution

Update the calls to t() with strings instead of variables, so the text can be translated by the community.

Remaining tasks

  1. Write a patch
  2. Review
  3. Commit

User interface changes

None

API changes

None

Data model changes

None

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

idebr created an issue. See original summary.

idebr’s picture

Status: Active » Needs review
FileSize
3.45 KB

Attached patch updates the calls to t() with strings instead of variables, so they can be translated by the community.

idebr’s picture

The change for the newline at the end of the file is included in several patch, so I have removed this change for this issue.