From: pdontthink Date: Tue, 15 Jan 2008 20:00:14 +0000 (+0000) Subject: Using str_replace instead of sprintf because some languages need to change the order... X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=b3320adc222d468143728b1862eb93d6b2b95af6;ds=sidebyside Using str_replace instead of sprintf because some languages need to change the order of the replaced strings git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12884 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/templates/default_advanced/read_headers.tpl b/templates/default_advanced/read_headers.tpl index da573fb2..cb4899ff 100644 --- a/templates/default_advanced/read_headers.tpl +++ b/templates/default_advanced/read_headers.tpl @@ -71,7 +71,9 @@ extract($t); $from = preg_replace('/"$/', '', trim($from)); } // i18n: The parameters are: subject, sender, and date. - $reduced_header = sprintf(_("%s from %s on %s"), "$subject", "$from", "$date"); + $reduced_header = str_replace(array('%1', '%2', '%3'), + array("$subject", "$from", "$date"), + _("%1 from %2 on %3")); $expand_link = str_replace('&expand_header=0', '', $PHP_SELF) . '&expand_header=1'; echo ''