Download & Extend

String is not wrapped with t()

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

Title:String not translated» String is not wrapped with t()

#2

Status:active» closed (fixed)

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.

AttachmentSize
fix_string_not_wrapped_in_t-1131900.patch 554 bytes

#3

Status:closed (fixed)» fixed

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

#4

Status:fixed» closed (fixed)

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

nobody click here