From ed7175092c81dafa54be7fec2fa91d0ad88aa780 Mon Sep 17 00:00:00 2001 From: Andy Staudacher Date: Sat, 21 Mar 2009 07:44:46 +0000 Subject: Refactor all translation strings that have ambiguous placeholders. E.g. "%link_startClick here%link_end" is now 'Click here'. Note: This isn't always the best solution. E.g. consider "Foo bar." Now the translator has to deal with preserving CSS classes too... --- modules/search/helpers/search.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'modules') diff --git a/modules/search/helpers/search.php b/modules/search/helpers/search.php index 3e425289..1cb28519 100644 --- a/modules/search/helpers/search.php +++ b/modules/search/helpers/search.php @@ -53,11 +53,8 @@ class search_Core { static function check_index() { if ($count = ORM::factory("search_record")->where("dirty", 1)->count_all()) { site_status::warning( - t("Your search index needs to be updated. %link_startFix this now%link_end", - array("link_start" => "", - "link_end" => "")), + t('Your search index needs to be updated. Fix this now', + array("url" => url::site("admin/maintenance/start/search_task::update_index?csrf=__CSRF__"))), "search_index_out_of_date"); } } -- cgit v1.2.3