summaryrefslogtreecommitdiff
path: root/core/controllers/admin_maintenance.php
diff options
context:
space:
mode:
authorAndy Staudacher <andy.st@gmail.com>2009-03-21 07:44:46 +0000
committerAndy Staudacher <andy.st@gmail.com>2009-03-21 07:44:46 +0000
commited7175092c81dafa54be7fec2fa91d0ad88aa780 (patch)
treee917f849a9a21c6bea4eb51b96a07796675f2433 /core/controllers/admin_maintenance.php
parente1c53921d3ac4574486b420d6da9c2843f144d76 (diff)
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...
Diffstat (limited to 'core/controllers/admin_maintenance.php')
-rw-r--r--core/controllers/admin_maintenance.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/core/controllers/admin_maintenance.php b/core/controllers/admin_maintenance.php
index 99d6f067..df912e29 100644
--- a/core/controllers/admin_maintenance.php
+++ b/core/controllers/admin_maintenance.php
@@ -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");