Commit fefa2039 authored by salvis's avatar salvis

568676: Fix incorrect use of l() in a call to t().

parent 7ad5c03b
......@@ -29,7 +29,7 @@ define('DEVEL_CURRENT_DRUPAL_VERSION',5);
function devel_help($section) {
switch ($section) {
case 'admin/settings/devel':
return '<p>'. t('Helper functions, pages, and blocks to assist Drupal developers. The devel blocks can be managed via the !block page.', array('!block' => l(t('block administration'), 'admin/build/block'))). '</p>';
return '<p>'. t('Helper functions, pages, and blocks to assist Drupal developers. The devel blocks can be managed via the <a href="@block">block administration</a> page.', array('@block' => url('admin/build/block'))). '</p>';
case 'devel/reference':
return '<p>'. t('This is a list of defined user functions that generated this current request lifecycle. Click on a function name to view its documention.'). '</p>';
case 'devel/reinstall':
......@@ -776,7 +776,7 @@ function devel_admin_settings() {
'#title' => t('Error handler'),
'#default_value' => variable_get('devel_error_handler', DEVEL_ERROR_HANDLER_STANDARD),
'#options' => array(DEVEL_ERROR_HANDLER_NONE => t('None'), DEVEL_ERROR_HANDLER_STANDARD => t('Standard drupal'), DEVEL_ERROR_HANDLER_BACKTRACE => t('Backtrace')),
'#description' => t('Choose an error handler for your site. <em>Backtrace</em> prints nice debug information when an error is noticed, and you !choose. <strong>Backtrace requires the <a href="!krumo">krumo library</a></strong>. <em>None</em> is a good option when stepping through the site in your debugger.', array('!krumo' => url("http://krumo.sourceforge.net"), '!choose' => l(t('choose to show errors on screen'), 'admin/settings/error-reporting'))),
'#description' => t('Choose an error handler for your site. <em>Backtrace</em> prints nice debug information when an error is noticed, and you <a href="@choose">choose to show errors on screen</a>. <strong>Backtrace requires the <a href="@krumo">krumo library</a></strong>. <em>None</em> is a good option when stepping through the site in your debugger.', array('@krumo' => url('http://krumo.sourceforge.net'), '@choose' => url('admin/settings/error-reporting'))),
);
// Save any old SMTP library
......
......@@ -28,11 +28,11 @@ function devel_node_access_help($section) {
$output .= '<p>'. t('The node_access table is one method Drupal provides to hide content from some users while displaying it to others. By default, Drupal shows all nodes to all users. There are a number of optional modules which may be installed to hide content from some users.') ."</p>\n";
$output .= '<p>'. t('If you have not installed any of these modules, you really have no need for the devel_node_access module. This module is intended for use during development, so that developers and admins can confirm that the node_access table is working as expected. You probably do not want this module enabled on a production site.') ."</p>\n";
$output .= '<p>'. t('This module provides two blocks. One called Devel Node Access by User is visible when a single node is shown on a page. This block shows which users can view, update or delete the node shown. Note that this block uses an inefficient algorithm to produce its output. You should only enable this block on sites with very few user accounts.') ."</p>\n";
$output .= '<p>'. t('The second block provided by this module shows the entries in the node_access table for any nodes shown on the current page. You can enable the debug mode on the !settings_page to display much more information, but this can cause considerable overhead. Because the tables shown are wide, it is recommended to enable the blocks in the page footer rather than a sidebar.',
array('!settings_page' => l(t('settings page'), 'admin/settings/devel', array(), NULL, 'edit-devel-node-access-debug-mode'))
$output .= '<p>'. t('The second block provided by this module shows the entries in the node_access table for any nodes shown on the current page. You can enable the debug mode on the <a href="@settings_page">settings page</a> to display much more information, but this can cause considerable overhead. Because the tables shown are wide, it is recommended to enable the blocks in the page footer rather than a sidebar.',
array('@settings_page' => url('admin/settings/devel', NULL, 'edit-devel-node-access-debug-mode'))
) ."</p>\n";
$output .= '<p>'. t('This module also provides a !summary_page which shows general information about your node_access table. If you have installed the Views module, you may browse node_access by realm.',
array('!summary_page' => l(t('summary page'), 'devel/node_access/summary'))
$output .= '<p>'. t('This module also provides a <a href="@summary_page">summary page</a> which shows general information about your node_access table. If you have installed the Views module, you may browse node_access by realm.',
array('@summary_page' => url('devel/node_access/summary'))
) ."</p>\n";
$output .= '<p>'. t('') ."</p>\n";
return $output;
......@@ -69,14 +69,14 @@ function devel_node_access_admin_settings() {
}
function devel_node_access_form_alter($form_id, &$form) {
$t = 't';
$tr = 't';
if ($form_id == 'devel_admin_settings' || $form_id == 'devel_node_access_admin_settings') {
$form['devel_node_access_debug_mode'] = array(
'#type' => 'checkbox',
'#title' => t('Devel Node Access debug mode'),
'#default_value' => variable_get('devel_node_access_debug_mode', FALSE),
'#description' => t('Debug mode verifies the grants in the node_access table against those that would be set by running !Rebuild_permissions, and displays them all; this can cause considerable overhead.', array('!Rebuild_permissions' => l('['. $t('Rebuild permissions') .']', 'admin/content/node-settings'))),
);
'#description' => t('Debug mode verifies the grants in the node_access table against those that would be set by running !Rebuild_permissions, and displays them all; this can cause considerable overhead.', array('!Rebuild_permissions' => l('['. $tr('Rebuild permissions') .']', 'admin/content/node-settings'))),
);
// push these down:
$form['devel_error_handler']['#weight'] = 1;
$form['smtp_library']['#weight'] = 1;
......@@ -416,9 +416,9 @@ function devel_node_access_block($op = 'list', $delta = 0) {
}
// explain how access is granted (code from node_access())
$t = 't';
$tr = 't';
if (user_access('administer nodes')) {
$output .= t('This user has the %administer_nodes permission and thus full access to all nodes.', array('%administer_nodes' => $t('administer nodes')));
$output .= t('This user has the %administer_nodes permission and thus full access to all nodes.', array('%administer_nodes' => $tr('administer nodes')));
}
else {
......
......@@ -91,7 +91,7 @@ function performance_requirements($phase) {
'title' => t('Performance logging details'),
'value' => 'Enabled',
'severity' => REQUIREMENT_WARNING,
'description' => t('Performance detailed logging is !link. This can cause severe issues on live sites.', array('!link' => l(t('enabled'), 'admin/settings/performance_logging'))),
'description' => t('Performance detailed logging is <a href="@link">enabled</a>. This can cause severe issues on live sites.', array('@link' => url('admin/settings/performance_logging'))),
);
}
......@@ -103,7 +103,7 @@ function performance_requirements($phase) {
'title' => t('Performance logging query'),
'value' => 'Enabled',
'severity' => REQUIREMENT_WARNING,
'description' => t('Query timing and count logging is !link. This can cause memory size per page to be larger than normal.', array('!link' => l(t('enabled'), 'admin/settings/performance_logging'))),
'description' => t('Query timing and count logging is <a href="@link">enabled</a>. This can cause memory size per page to be larger than normal.', array('@link' => url('admin/settings/performance_logging'))),
);
}
}
......
......@@ -295,7 +295,7 @@ function performance_view_summary() {
$go = array_sum($sum);
if (!$go) {
return t('Summary performance log is not enabled. Go to the !link to enable it.', array('!link' => l(t('settings page'), 'admin/settings/performance_logging')));
return t('Summary performance log is not enabled. Go to the <a href="@link">settings page</a> to enable it.', array('@link' => url('admin/settings/performance_logging')));
}
$header = array(
......@@ -399,7 +399,7 @@ function performance_view_summary() {
function performance_view_details() {
if (!variable_get('performance_detail', 0)) {
return t('Detail performance log is not enabled. Go to the !link to enable it.', array('!link' => l(t('settings page'), 'admin/settings/performance_logging')));
return t('Detail performance log is not enabled. Go to the <a href="@link">settings page</a> to enable it.', array('@link' => url('admin/settings/performance_logging')));
}
$header = array(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment