Using str_replace instead of sprintf because some languages need to change the order...
authorpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 15 Jan 2008 20:00:14 +0000 (20:00 +0000)
committerpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 15 Jan 2008 20:00:14 +0000 (20:00 +0000)
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

index da573fb..cb4899f 100644 (file)
@@ -71,7 +71,9 @@ extract($t);
             $from = preg_replace('/&quot;$/', '', trim($from));
         }
         // i18n: The parameters are: subject, sender, and date.
-        $reduced_header = sprintf(_("%s from %s on %s"), "<b>$subject</b>", "<b>$from</b>", "<b>$date</b>");
+        $reduced_header = str_replace(array('%1', '%2', '%3'),
+                                      array("<b>$subject</b>", "<b>$from</b>", "<b>$date</b>"),
+                                      _("%1 from %2 on %3"));
         $expand_link = str_replace('&expand_header=0', '', $PHP_SELF) . '&expand_header=1';
 
         echo '<tr><td colspan="2" align="center" valign="top">'