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/views | |
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/views')
-rw-r--r-- | core/views/admin_block_welcome.html.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/core/views/admin_block_welcome.html.php b/core/views/admin_block_welcome.html.php index 89914fb3..a11f2489 100644 --- a/core/views/admin_block_welcome.html.php +++ b/core/views/admin_block_welcome.html.php @@ -4,15 +4,15 @@ </p> <ul> <li> - <?= t("%link_startGeneral Settings%link_end - General configuation options for your Gallery.", - array("link_start" => "<a href=\"#\">", "link_end" => "</a>")) ?> + <?= t('<a href="%url">General Settings</a> - General configuration options for your Gallery.', + array("url" => "#")) ?> </li> <li> - <?= t("%link_startModules%link_end - Manage available and installed modules.", - array("link_start" => "<a href=\"" . url::site("admin/modules") . "\">", "link_end" => "</a>")) ?> + <?= t('<a href="%url">Modules</a> - Manage available and installed modules.', + array("url" => url::site("admin/modules"))) ?> </li> <li> - <?= t("%link_startPresentation%link_end - Choose a theme, set image sizes.", - array("link_start" => "<a href=\"#\">", "link_end" => "</a>")) ?> + <?= t('<a href="">Presentation</a> - Choose a theme, set image sizes.', + array("url" => "#")) ?> </li> </ul> |