From 81938a3cdc7b9bd13d58e355c59d9835e830fea4 Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Fri, 18 Aug 2006 12:17:00 +0000 Subject: #76802: Introduce placeholder magic into t() See: http://drupal.org/node/64279#t-placeholders --- modules/path/path.module | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'modules/path') diff --git a/modules/path/path.module b/modules/path/path.module index 2415ff6de..54f6ee771 100644 --- a/modules/path/path.module +++ b/modules/path/path.module @@ -26,13 +26,13 @@ function path_help($section) { $output .= t('

You can

-', array('%admin-path-add' => url('admin/build/path/add'), '%admin-path' => url('admin/build/path'), '%external-http-drupal-org-node-15365' => 'http://drupal.org/node/15365', '%admin-clean-url-settings' => url('admin/settings/clean-urls'))); - $output .= '

'. t('For more information please read the configuration and customization handbook Path page.', array('%path' => 'http://drupal.org/handbook/modules/path/')) .'

'; +', array('@admin-path-add' => url('admin/build/path/add'), '@admin-path' => url('admin/build/path'), '@external-http-drupal-org-node-15365' => 'http://drupal.org/node/15365', '@admin-clean-url-settings' => url('admin/settings/clean-urls'))); + $output .= '

'. t('For more information please read the configuration and customization handbook Path page.', array('@path' => 'http://drupal.org/handbook/modules/path/')) .'

'; return $output; case 'admin/settings/modules#description': return t('Allows users to rename URLs.'); @@ -104,7 +104,7 @@ function path_admin_delete_confirm($pid) { if (user_access('administer url aliases')) { $form['pid'] = array('#type' => 'value', '#value' => $pid); $output = confirm_form('path_admin_delete_confirm', $form, - t('Are you sure you want to delete path alias %title?', array('%title' => theme('placeholder', $path['dst']))), + t('Are you sure you want to delete path alias %title?', array('%title' => $path['dst'])), $_GET['destination'] ? $_GET['destination'] : 'admin/build/path', t('This action cannot be undone.'), t('Delete'), t('Cancel') ); } @@ -329,15 +329,15 @@ function path_form_submit() { $pid = $edit['pid']; if (!valid_url($src)) { - form_set_error('src', t('The system path %path is invalid.', array('%path' => theme('placeholder', $src)))); + form_set_error('src', t('The system path %path is invalid.', array('%path' => $src))); } if (!valid_url($dst)) { - form_set_error('dst', t('The alias %alias is invalid.', array('%alias' => theme('placeholder', $dst)))); + form_set_error('dst', t('The alias %alias is invalid.', array('%alias' => $dst))); } if (db_result(db_query("SELECT COUNT(dst) FROM {url_alias} WHERE pid != %d AND dst = '%s'", $pid, $dst))) { - form_set_error('dst', t('The alias %alias is already in use.', array('%alias' => theme('placeholder', $dst)))); + form_set_error('dst', t('The alias %alias is already in use.', array('%alias' => $dst))); } if (form_get_errors()) { -- cgit v1.2.3