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.
In theme.inc 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.
Comment | File | Size | Author |
---|---|---|---|
#2 | fix_string_not_wrapped_in_t-1131900.patch | 554 bytes | mcdruid |
Comments
Comment #1
sandino CreditAttribution: sandino commentedComment #2
mcdruidThanks 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: http://drupal.org/coding-standards#concat
Committed to 6.x-2.x branch.
Comment #3
mcdruidoops - realised I should have been setting issues to "fixed" rather than "closed (fixed)"