Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The following line:
'#title' => t('Math Question: What is '. $x .' + '. $y .'?'),
should be replaced by something like:
'#title' => t('Math Question: What is %problem?', array('%problem' => $x .' + '. $y)),
to avoid multiple copies of the same translation string appearing with varying values of $x and $y.
Comments
Comment #1
wundo CreditAttribution: wundo commentedfixed,
thanks zoo33
Comment #2
(not verified) CreditAttribution: commented