diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2006-08-18 12:17:00 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2006-08-18 12:17:00 +0000 |
commit | 81938a3cdc7b9bd13d58e355c59d9835e830fea4 (patch) | |
tree | 4d6156a6edb7898d74d5b1836b80d08750aa39c2 /modules/path | |
parent | 885a29c4cd13776165c40080a00180cddd420a46 (diff) | |
download | brdo-81938a3cdc7b9bd13d58e355c59d9835e830fea4.tar.gz brdo-81938a3cdc7b9bd13d58e355c59d9835e830fea4.tar.bz2 |
#76802: Introduce placeholder magic into t()
See: http://drupal.org/node/64279#t-placeholders
Diffstat (limited to 'modules/path')
-rw-r--r-- | modules/path/path.module | 20 |
1 files changed, 10 insertions, 10 deletions
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('<p>You can</p> <ul> <li>set the path for a post with the path module.</li> -<li>add a URL alias: <a href="%admin-path-add">administer >> site building >> url aliases >> add alias</a>.</li> -<li>administer the list of URL aliases: <a href="%admin-path">administer >> site building >> url aliases</a>.</li> -<li>read how to <a href="%external-http-drupal-org-node-15365">configure clean URLs</a> for your webserver. -<li>enable clean url\'s to remove the =? at <a href="%admin-clean-url-settings">administer >> site configuration >> clean URLs</a>.</li> +<li>add a URL alias: <a href="@admin-path-add">administer >> site building >> url aliases >> add alias</a>.</li> +<li>administer the list of URL aliases: <a href="@admin-path">administer >> site building >> url aliases</a>.</li> +<li>read how to <a href="@external-http-drupal-org-node-15365">configure clean URLs</a> for your webserver. +<li>enable clean url\'s to remove the =? at <a href="@admin-clean-url-settings">administer >> site configuration >> clean URLs</a>.</li> </ul> -', 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 .= '<p>'. t('For more information please read the configuration and customization handbook <a href="%path">Path page</a>.', array('%path' => 'http://drupal.org/handbook/modules/path/')) .'</p>'; +', 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 .= '<p>'. t('For more information please read the configuration and customization handbook <a href="@path">Path page</a>.', array('@path' => 'http://drupal.org/handbook/modules/path/')) .'</p>'; 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()) { |