Author: mahono
Date: 2010-01-14 01:10:52 +0100 (Thu, 14 Jan 2010)
New Revision: 26599
Modified:
plugins/sfSympalPlugin/trunk/lib/helper/SympalPagerHelper.php
Log:
[1.4][sfSympalPlugin][1.0] changes get_sympal_pager_header() to support i18n
Modified: plugins/sfSympalPlugin/trunk/lib/helper/SympalPagerHelper.php
===================================================================
--- plugins/sfSympalPlugin/trunk/lib/helper/SympalPagerHelper.php
2010-01-14 00:04:00 UTC (rev 26598)
+++ plugins/sfSympalPlugin/trunk/lib/helper/SympalPagerHelper.php
2010-01-14 00:10:52 UTC (rev 26599)
@@ -8,8 +8,12 @@
*/
function get_sympal_pager_header($pager)
{
- $indice = $pager->getFirstIndice();
- return '<div class="sympal_pager_header"><h3>Showing '.$indice.' to
'.($pager->getLastIndice()).' of '.$pager->getNbResults().' total
results.</h3></div>';
+ return '<div class="sympal_pager_header"><h3>'.
+ __('Showing %first% to %last% of %count% total results.', array(
+ '%first%' => $pager->getFirstIndice(),
+ '%last%' => $pager->getLastIndice(),
+ '%count%' => $pager->getNbResults()
+ )).'</h3></div>';
}
/**
--
You received this message because you are subscribed to the Google Groups
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/symfony-svn?hl=en.