In string 134 has item that is not wrapped in t()

    return '<span class="topic-pager">(Page: ' . implode(", ", $topic_pager->initial_pages) . $last_page . ')</span>';

I changed it to

    return '<span class="topic-pager">('.t('Page').': ' . implode(", ", $topic_pager->initial_pages) . $last_page . ')</span>';

and it can be translated now.

#2 fix_string_not_wrapped_in_t-1131900.patch554 bytesmcdruid
Members fund testing for the Drupal project. Drupal Association Learn more


sandino’s picture

Title: String not translated » String is not wrapped with t()
mcdruid’s picture

Status: Active » Closed (fixed)
554 bytes

Thanks sandino.

For future reference, it's better to attach a patch to the issue with any code fixes.

This is a very minor thing, but Drupal coding standards have a space on both sides of the dot when concatenating strings:

Committed to 6.x-2.x branch.

mcdruid’s picture

Status: Closed (fixed) » Fixed

oops - realised I should have been setting issues to "fixed" rather than "closed (fixed)"

Status: Fixed » Closed (fixed)

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