From b3320adc222d468143728b1862eb93d6b2b95af6 Mon Sep 17 00:00:00 2001 From: pdontthink Date: Tue, 15 Jan 2008 20:00:14 +0000 Subject: [PATCH] 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 --- templates/default_advanced/read_headers.tpl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 '' -- 2.25.1