Posted by sandino on April 19, 2011 at 10:19am
3 followers
| Project: | Advanced Forum |
| Version: | 6.x-2.0-alpha4 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
In theme.inc string 134 has item that is not wrapped in t()
<?php
return '<span class="topic-pager">(Page: ' . implode(", ", $topic_pager->initial_pages) . $last_page . ')</span>';
?>I changed it to
<?php
return '<span class="topic-pager">('.t('Page').': ' . implode(", ", $topic_pager->initial_pages) . $last_page . ')</span>';
?>and it can be translated now.
Comments
#1
#2
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: http://drupal.org/coding-standards#concat
Committed to 6.x-2.x branch.
#3
oops - realised I should have been setting issues to "fixed" rather than "closed (fixed)"
#4
Automatically closed -- issue fixed for 2 weeks with no activity.