echo _("Displaying records from $from to $to of $total");
Try with printf( _("Displaying records from %d to %d of %d"), $from, $to, $total );
It seems you must quote the strings with ".." for gettext to work. For all "variable content" to be translated, you have to use "format strings" (1st argument of printf, sprintf...). By example, "%d" means to write the var as an integer.
With printf, sprintf etc gettext translate a static string "Displaying records from %d to %d of %d" It can translate it to, say, "Affichage des enregistrements de %d à %d parmi %d". Next, printf receive this format string, as if no i18n has occured before.
For other informations, see gettext manual (gnu.org)
-- Christophe Chisogne Developper, Publicityweb sprl http://www.publicityweb.com
-- PHP Internationalization Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php