summaryrefslogtreecommitdiffstats
path: root/googleanalytics.admin.inc
diff options
context:
space:
mode:
authorhass2008-10-16 21:40:46 (GMT)
committerhass2008-10-16 21:40:46 (GMT)
commit2415125dc28aa8cdf715566850cfe7171ff80fcc (patch)
tree9bf3bac9a93fac1434e77df72da6806f68c91416 /googleanalytics.admin.inc
parentc5af17181508aa53141d1f25116619f3addfe75c (diff)
#315968 by stella and me: Internationalization code review
Diffstat (limited to 'googleanalytics.admin.inc')
-rw-r--r--googleanalytics.admin.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/googleanalytics.admin.inc b/googleanalytics.admin.inc
index 94ea9bf..61808aa 100644
--- a/googleanalytics.admin.inc
+++ b/googleanalytics.admin.inc
@@ -207,7 +207,7 @@ function googleanalytics_admin_settings_form(&$form_state) {
}
$site_search_dependencies = '<div class="admin-dependencies">';
- $site_search_dependencies .= t('Depends on: !dependencies', array('!dependencies' => (module_exists('search') ? 'Search'. t(' (<span class="admin-enabled">enabled</span>)') : 'Search'. t(' (<span class="admin-disabled">disabled</span>)'))));
+ $site_search_dependencies .= t('Depends on: !dependencies', array('!dependencies' => (module_exists('search') ? t('@module (<span class="admin-enabled">enabled</span>)', array('@module' => 'Search')) : t('@module (<span class="admin-disabled">disabled</span>)', array('@module' => 'Search')))));
$site_search_dependencies .= '</div>';
// Google already have many translations, if not - they display a note to change the language.
@@ -215,7 +215,7 @@ function googleanalytics_admin_settings_form(&$form_state) {
$form['advanced']['googleanalytics_site_search'] = array(
'#type' => 'checkbox',
'#title' => t('Track internal search'),
- '#description' => t('If checked, internal search keywords are tracked. You must configure your Google account to use the internal query parameter <strong>search</strong>. For more information see <a href="!url">How do I set up Site Search for my profile</a>.', array('!url' => 'http://www.google.com/support/analytics/bin/answer.py?hl='. $language->language .'&amp;answer=75817')) . $site_search_dependencies,
+ '#description' => t('If checked, internal search keywords are tracked. You must configure your Google account to use the internal query parameter <strong>search</strong>. For more information see <a href="@url">How do I set up Site Search for my profile</a>.', array('@url' => 'http://www.google.com/support/analytics/bin/answer.py?hl='. $language->language .'&amp;answer=75817')) . $site_search_dependencies,
'#default_value' => variable_get('googleanalytics_site_search', FALSE),
'#disabled' => (module_exists('search') ? FALSE : TRUE),
);
@@ -225,7 +225,7 @@ function googleanalytics_admin_settings_form(&$form_state) {
'#title' => t('Custom JavaScript code'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
- '#description' => t('You can add custom Google Analytics <a href="!snippets">code snippets</a> here. These will be added to every page that Google Analytics appears on. Before you add custom code to the below textarea\'s you should read <a href="!GaConceptsOverview">Google Analytics Tracking Code - Functional Overview</a> and the <a href="!gaJSApi">Google Analytics Tracking API</a> documentation. <strong>Do not include the &lt;script&gt; tags</strong>, and always end your code with a semicolon (;).', array('!snippets' => 'http://drupal.org/node/248699', '!GaConceptsOverview' => 'http://code.google.com/apis/analytics/docs/gaConceptsOverview.html', '!gaJSApi' => 'http://code.google.com/apis/analytics/docs/gaJSApi.html'))
+ '#description' => t('You can add custom Google Analytics <a href="@snippets">code snippets</a> here. These will be added to every page that Google Analytics appears on. Before you add custom code to the below textarea\'s you should read <a href="@ga_concepts_overview">Google Analytics Tracking Code - Functional Overview</a> and the <a href="@ga_js_api">Google Analytics Tracking API</a> documentation. <strong>Do not include the &lt;script&gt; tags</strong>, and always end your code with a semicolon (;).', array('@snippets' => 'http://drupal.org/node/248699', '@ga_concepts_overview' => 'http://code.google.com/apis/analytics/docs/gaConceptsOverview.html', '@ga_js_api' => 'http://code.google.com/apis/analytics/docs/gaJSApi.html'))
);
$form['advanced']['codesnippet']['googleanalytics_codesnippet_before'] = array(
'#type' => 'textarea',