Refactor all translation strings that have ambiguous placeholders.

E.g. "%link_startClick here%link_end" is now '<a href="%url">Click here</a>'.

Note: This isn't always the best solution. E.g. consider "Foo <a href='%url' class='gDialogLink'>bar</a>." Now the translator has to deal with 
preserving CSS classes too...
This commit is contained in:
Andy Staudacher
2009-03-21 07:44:46 +00:00
parent e1c53921d3
commit ed7175092c
4 changed files with 13 additions and 21 deletions
+2 -3
View File
@@ -33,9 +33,8 @@ class Admin_Maintenance_Controller extends Admin_Controller {
t2("One task is stalled",
"%count tasks are stalled",
$stalled_count),
t("%link_startview%link_end",
array("link_start" => "<a href=\"" . url::site("admin/maintenance") . "\">",
"link_start" => "</a>")));
t('<a href="%url">view</a>',
array("url" => url::site("admin/maintenance"))));
}
$view = new Admin_View("admin.html");