[wp-polyglots] Another missing call to gettext
Rafael Bracho
rxb at rxbtech.com
Mon Aug 1 15:48:36 GMT 2005
[I don't know if this mailing list is the right place to post this,
but I guess at least we will all want these problems fixed -- RXB]
I found another instance of a gettext() call missing. This time in
the statement spanning lines 464-466 of the file
wp-includes/template-functions-general.php:
---------
echo "\n\t\t".'<td abbr="' . $month[zeroise($next->month, 2)] . '" colspan="3" id="next"><a href="'
.
get_month_link($next->year, $next->month) . '" title="View posts for ' .
$month[zeroise($next->month, 2)] . ' ' .
date('Y', mktime(0, 0 , 0, $next->month, 1, $next->year)) . '">' .
$month_abbrev[$month[zeroise($next->month, 2)]] . ' »</a></td>';
---------
when it should be:
---------
echo "\n\t\t".'<td abbr="' . $month[zeroise($next->month, 2)] . '" colspan="3" id="next"><a href="'
.
get_month_link($next->year, $next->month) . '" title="' . sprintf(__('View posts for
%1$s %2$s'), $month[zeroise($next->month, 2)], date('Y', mktime(0, 0 , 0, $next->month, 1,
$next->year))) . '">' . $month_abbrev[$month[zeroise($next->month, 2)]] . ' »</a></td>';
---------
The advantage is that the string introduced is already being translated
due it being in another statement (line 456), so there is no change to
your .po (other than a comment) or .mo file.
-Rafael
More information about the wp-polyglots
mailing list