diff options
author | Andy Staudacher <andy.st@gmail.com> | 2009-03-21 07:44:46 +0000 |
---|---|---|
committer | Andy Staudacher <andy.st@gmail.com> | 2009-03-21 07:44:46 +0000 |
commit | ed7175092c81dafa54be7fec2fa91d0ad88aa780 (patch) | |
tree | e917f849a9a21c6bea4eb51b96a07796675f2433 /core/helpers/graphics.php | |
parent | e1c53921d3ac4574486b420d6da9c2843f144d76 (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/helpers/graphics.php')
-rw-r--r-- | core/helpers/graphics.php | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/core/helpers/graphics.php b/core/helpers/graphics.php index e16b3086..290d2677 100644 --- a/core/helpers/graphics.php +++ b/core/helpers/graphics.php @@ -253,14 +253,10 @@ class graphics_Core { $count = self::find_dirty_images_query()->count(); if ($count) { site_status::warning( - t2("One of your photos is out of date. %link_startClick here to fix it%link_end", - "%count of your photos are out of date. %link_startClick here to fix them%link_end", + t2('One of your photos is out of date. <a href="%url" class="gDialogLink">Click here to fix it</a>', + '%count of your photos are out of date. <a href="%url" class="gDialogLink">Click here to fix them</a>', $count, - array("link_start" => "<a href=\"" . - url::site( - "admin/maintenance/start/core_task::rebuild_dirty_images?csrf=__CSRF__") . - "\" class=\"gDialogLink\">", - "link_end" => "</a>")), + array("url" => url::site("admin/maintenance/start/core_task::rebuild_dirty_images?csrf=__CSRF__"))), "graphics_dirty"); } } |