We are moving to Git Issues for bug tracking in future releases. During transition, content will be in both tools. If you'd like to file a new bug, please create an issue.

View | Details | Raw Unified | Return to bug 2900
Collapse All | Expand All

(-) (+235 lines)
Added Link Here 
1
<?php
2
3
/**
4
 * @file GoogleAnalyticsPlugin.inc.php
5
 *
6
 * Copyright (c) 2003-2008 John Willinsky
7
 * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
8
 *
9
 * @package plugins.generic.googleAnalytics
10
 * @class GoogleAnalyticsPlugin
11
 *
12
 * Google Analytics plugin class
13
 *
14
 * $Id: GoogleAnalyticsPlugin.inc.php,v 1.1 2008/06/27 20:32:01 michael Exp $
15
 */
16
17
import('classes.plugins.GenericPlugin');
18
19
class GoogleAnalyticsPlugin extends GenericPlugin {
20
21
	/**
22
	 * Called as a plugin is registered to the registry
23
	 * @param $category String Name of category plugin was registered to
24
	 * @return boolean True iff plugin initialized successfully; if false,
25
	 * 	the plugin will not be registered.
26
	 */
27
	function register($category, $path) {
28
		$success = parent::register($category, $path);
29
		if (!Config::getVar('general', 'installed')) return false;
30
		$this->addLocaleData();
31
		if ($success) {
32
			// Insert Google Analytics page tag to common footer  
33
			HookRegistry::register('Templates::Common::Footer::PageFooter', array($this, 'insertFooter'));
34
35
			// Insert Google Analytics page tag to paper footer
36
			HookRegistry::register('Templates::Paper::Footer::PageFooter', array($this, 'insertFooter'));
37
38
			// Insert Google Analytics page tag to paper interstitial footer
39
			HookRegistry::register('Templates::Paper::Interstitial::PageFooter', array($this, 'insertFooter'));
40
41
			// Insert Google Analytics page tag to paper pdf interstitial footer
42
			HookRegistry::register('Templates::Paper::PdfInterstitial::PageFooter', array($this, 'insertFooter'));
43
44
			// Insert Google Analytics page tag to reading tools footer
45
			HookRegistry::register('Templates::Rt::Footer::PageFooter', array($this, 'insertFooter'));
46
47
			// Insert Google Analytics page tag to help footer
48
			HookRegistry::register('Templates::Help::Footer::PageFooter', array($this, 'insertFooter'));
49
		}
50
		return $success;
51
	}
52
53
	/**
54
	 * Get the name of this plugin. The name must be unique within
55
	 * its category, and should be suitable for part of a filename
56
	 * (ie short, no spaces, and no dependencies on cases being unique).
57
	 * @return String name of plugin
58
	 */
59
	function getName() {
60
		return 'GoogleAnalyticsPlugin';
61
	}
62
63
	function getDisplayName() {
64
		return Locale::translate('plugins.generic.googleAnalytics.displayName');
65
	}
66
67
	function getDescription() {
68
		return Locale::translate('plugins.generic.googleAnalytics.description');
69
	}
70
71
	/**
72
	 * Extend the {url ...} smarty to support this plugin.
73
	 */
74
	function smartyPluginUrl($params, &$smarty) {
75
		$path = array($this->getCategory(), $this->getName());
76
		if (is_array($params['path'])) {
77
			$params['path'] = array_merge($path, $params['path']);
78
		} elseif (!empty($params['path'])) {
79
			$params['path'] = array_merge($path, array($params['path']));
80
		} else {
81
			$params['path'] = $path;
82
		}
83
84
		if (!empty($params['id'])) {
85
			$params['path'] = array_merge($params['path'], array($params['id']));
86
			unset($params['id']);
87
		}
88
		return $smarty->smartyUrl($params, $smarty);
89
	}
90
91
	/**
92
	 * Set the page's breadcrumbs, given the plugin's tree of items
93
	 * to append.
94
	 * @param $subclass boolean
95
	 */
96
	function setBreadcrumbs($isSubclass = false) {
97
		$templateMgr = &TemplateManager::getManager();
98
		$pageCrumbs = array(
99
			array(
100
				Request::url(null, null,  'user'),
101
				'navigation.user'
102
			),
103
			array(
104
				Request::url(null, null,  'manager'),
105
				'user.role.manager'
106
			)
107
		);
108
		if ($isSubclass) $pageCrumbs[] = array(
109
			Request::url(null, null, 'manager', 'plugins'),
110
			'manager.plugins'
111
		);
112
113
		$templateMgr->assign('pageHierarchy', $pageCrumbs);
114
	}
115
116
	/**
117
	 * Display verbs for the management interface.
118
	 */
119
	function getManagementVerbs() {
120
		$verbs = array();
121
		if ($this->getEnabled()) {
122
			$verbs[] = array(
123
				'disable',
124
				Locale::translate('manager.plugins.disable')
125
			);
126
			$verbs[] = array(
127
				'settings',
128
				Locale::translate('plugins.generic.googleAnalytics.manager.settings')
129
			);
130
		} else {
131
			$verbs[] = array(
132
				'enable',
133
				Locale::translate('manager.plugins.enable')
134
			);
135
		}
136
		return $verbs;
137
	}
138
139
	/**
140
	 * Determine whether or not this plugin is enabled.
141
	 */
142
	function getEnabled() {
143
		$conference = &Request::getConference();
144
		if (!$conference) return false;
145
		return $this->getSetting($conference->getConferenceId(), 0, 'enabled');
146
	}
147
148
	/**
149
	 * Set the enabled/disabled state of this plugin
150
	 */
151
	function setEnabled($enabled) {
152
		$conference = &Request::getConference();
153
		if ($conference) {
154
			$this->updateSetting($conference->getConferenceId(), 0, 'enabled', $enabled ? true : false);
155
			return true;
156
		}
157
		return false;
158
	}
159
160
	/**
161
	 * Insert Google Analytics page tag to footer
162
	 */  
163
	function insertFooter($hookName, $params) {
164
		if ($this->getEnabled()) {
165
			$smarty = &$params[1];
166
			$output = &$params[2];
167
			$templateMgr = &TemplateManager::getManager();
168
			$currentConference = $templateMgr->get_template_vars('currentConference');
169
170
			if (!empty($currentConference)) {
171
				$conference = &Request::getConference();
172
				$conferenceId = $conference->getConferenceId();
173
				$googleAnalyticsSiteId = $this->getSetting($conferenceId, 0, 'googleAnalyticsSiteId');
174
175
				if (!empty($googleAnalyticsSiteId)) {
176
					$templateMgr->assign('googleAnalyticsSiteId', $googleAnalyticsSiteId);
177
					$trackingCode = $this->getSetting($conferenceId, 0, 'trackingCode');
178
					if ($trackingCode == "ga") {
179
						$output .= $templateMgr->fetch($this->getTemplatePath() . 'pageTagGa.tpl'); 
180
					} else {
181
						$output .= $templateMgr->fetch($this->getTemplatePath() . 'pageTagUrchin.tpl'); 
182
					}
183
				}
184
			}
185
		}
186
		return false;
187
	}
188
189
	/**
190
	 * Perform management functions
191
	 */
192
	function manage($verb, $args) {
193
		$templateMgr = &TemplateManager::getManager();
194
		$templateMgr->register_function('plugin_url', array(&$this, 'smartyPluginUrl'));
195
		$conference = &Request::getConference();
196
		$returner = true;
197
198
		switch ($verb) {
199
			case 'enable':
200
				$this->setEnabled(true);
201
				$returner = false;
202
				break;
203
			case 'disable':
204
				$this->setEnabled(false);
205
				$returner = false;
206
				break;
207
			case 'settings':
208
				if ($this->getEnabled()) {
209
					$this->import('GoogleAnalyticsSettingsForm');
210
					$form = &new GoogleAnalyticsSettingsForm($this, $conference->getConferenceId());
211
					if (Request::getUserVar('save')) {
212
						$form->readInputData();
213
						if ($form->validate()) {
214
							$form->execute();
215
							Request::redirect(null, null, 'manager', 'plugin');
216
						} else {
217
							$this->setBreadCrumbs(true);
218
							$form->display();
219
						}
220
					} else {
221
						$this->setBreadCrumbs(true);
222
						$form->initData();
223
						$form->display();
224
					}
225
				} else {
226
					Request::redirect(null, null, 'manager');
227
				}
228
				break;
229
			default:
230
				Request::redirect(null, null, 'manager');
231
		}
232
		return $returner;
233
	}
234
}
235
?>
(-) (+80 lines)
Added Link Here 
1
<?php
2
3
/**
4
 * @file GoogleAnalyticsSettingsForm.inc.php
5
 *
6
 * Copyright (c) 2003-2008 John Willinsky
7
 * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
8
 *
9
 * @package plugins.generic.googleAnalytics
10
 * @class GoogleAnalyticsSettingsForm
11
 *
12
 * Form for conference managers to modify Google Analytics plugin settings
13
 *
14
 * $Id: GoogleAnalyticsSettingsForm.inc.php,v 1.1 2008/06/27 20:32:01 michael Exp $
15
 */
16
17
import('form.Form');
18
19
class GoogleAnalyticsSettingsForm extends Form {
20
21
	/** @var $conferenceId int */
22
	var $conferenceId;
23
24
	/** @var $plugin object */
25
	var $plugin;
26
27
	/**
28
	 * Constructor
29
	 * @param $plugin object
30
	 * @param $conferenceId int
31
	 */
32
	function GoogleAnalyticsSettingsForm(&$plugin, $conferenceId) {
33
		$this->conferenceId = $conferenceId;
34
		$this->plugin = &$plugin;
35
36
		parent::Form($plugin->getTemplatePath() . 'settingsForm.tpl');
37
38
		$this->addCheck(new FormValidator($this, 'googleAnalyticsSiteId', 'required', 'plugins.generic.googleAnalytics.manager.settings.googleAnalyticsSiteIdRequired'));
39
40
		$this->addCheck(new FormValidator($this, 'trackingCode', 'required', 'plugins.generic.googleAnalytics.manager.settings.trackingCodeRequired'));
41
	}
42
43
	/**
44
	 * Initialize form data.
45
	 */
46
	function initData() {
47
		$conferenceId = $this->conferenceId;
48
		$plugin = &$this->plugin;
49
50
		$this->_data = array(
51
			'googleAnalyticsSiteId' => $plugin->getSetting($conferenceId, 0, 'googleAnalyticsSiteId'),
52
			'trackingCode' => $plugin->getSetting($conferenceId, 0, 'trackingCode')
53
		);
54
	}
55
56
	/**
57
	 * Assign form data to user-submitted data.
58
	 */
59
	function readInputData() {
60
		$this->readUserVars(array('googleAnalyticsSiteId', 'trackingCode'));
61
	}
62
63
	/**
64
	 * Save settings. 
65
	 */
66
	function execute() {
67
		$plugin = &$this->plugin;
68
		$conferenceId = $this->conferenceId;
69
70
		$plugin->updateSetting($conferenceId, 0, 'googleAnalyticsSiteId', trim($this->getData('googleAnalyticsSiteId'), "\"\';"), 'string');
71
72
		$trackingCode = $this->getData('trackingCode');
73
		if (($trackingCode != "urchin") && ($trackingCode != "ga")) {
74
			$trackingCode = "urchin";
75
		}	
76
		$plugin->updateSetting($conferenceId, 0, 'trackingCode', $trackingCode, 'string');
77
	}
78
}
79
80
?>
(-) (+20 lines)
Added Link Here 
1
<?php
2
3
/**
4
 * @file index.php
5
 *
6
 * Copyright (c) 2003-2008 John Willinsky
7
 * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
8
 *
9
 * Wrapper for Google Analytics plugin.
10
 *
11
 * @package plugins.generic.googleAnalytics
12
 *
13
 * $Id: index.php,v 1.1 2008/06/27 20:32:01 michael Exp $
14
 */
15
16
require_once('GoogleAnalyticsPlugin.inc.php');
17
18
return new GoogleAnalyticsPlugin();
19
20
?>
(-) (+22 lines)
Added Link Here 
1
{**
2
 * pageTagGa.tpl
3
 *
4
 * Copyright (c) 2003-2008 John Willinsky
5
 * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
6
 *
7
 * Google Analytics ga.js page tag.
8
 *
9
 * $Id: pageTagGa.tpl,v 1.1 2008/06/27 20:32:01 michael Exp $
10
 *}
11
<!-- Google Analytics -->
12
<script type="text/javascript">
13
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
14
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
15
</script>
16
<script type="text/javascript">
17
var pageTracker = _gat._getTracker("{$googleAnalyticsSiteId|escape}");
18
pageTracker._initData();
19
pageTracker._trackPageview();
20
</script>
21
<!-- /Google Analytics -->
22
(-) (+19 lines)
Added Link Here 
1
{**
2
 * pageTagUrchin.tpl
3
 *
4
 * Copyright (c) 2003-2008 John Willinsky
5
 * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
6
 *
7
 * Google Analytics urchin.js (legacy) page tag.
8
 *
9
 * $Id: pageTagUrchin.tpl,v 1.1 2008/06/27 20:32:01 michael Exp $
10
 *}
11
<!-- Google Analytics -->
12
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
13
</script>
14
<script type="text/javascript">
15
_uacct = "{$googleAnalyticsSiteId|escape}";
16
urchinTracker();
17
</script>
18
<!-- /Google Analytics -->
19
(-) (+48 lines)
Added Link Here 
1
{**
2
 * settingsForm.tpl
3
 *
4
 * Copyright (c) 2003-2008 John Willinsky
5
 * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
6
 *
7
 * Google Analytics plugin settings
8
 *
9
 * $Id: settingsForm.tpl,v 1.1 2008/06/27 20:32:01 michael Exp $
10
 *}
11
{assign var="pageTitle" value="plugins.generic.googleAnalytics.manager.googleAnalyticsSettings"}
12
{include file="common/header.tpl"}
13
14
{translate key="plugins.generic.googleAnalytics.manager.settings.description"}
15
16
<div class="separator"></div>
17
18
<br />
19
20
<form method="post" action="{plugin_url path="settings"}">
21
{include file="common/formErrors.tpl"}
22
23
<table width="100%" class="data">
24
	<tr valign="top">
25
		<td width="20%" class="label">{fieldLabel name="googleAnalyticsSiteId" required="true" key="plugins.generic.googleAnalytics.manager.settings.googleAnalyticsSiteId"}</td>
26
		<td width="80%" class="value"><input type="text" name="googleAnalyticsSiteId" id="googleAnalyticsSiteId" value="{$googleAnalyticsSiteId|escape}" size="15" maxlength="25" class="textField" />
27
		<br />
28
		<span class="instruct">{translate key="plugins.generic.googleAnalytics.manager.settings.googleAnalyticsSiteIdInstructions"}</span>
29
	</td>
30
	</tr>
31
	<tr valign="top">
32
		<td width="20%" class="label">{fieldLabel name="trackingCode-urchin" required="true" key="plugins.generic.googleAnalytics.manager.settings.trackingCode"}</td>
33
		<td width="80%" class="value"><input type="radio" name="trackingCode" id="trackingCode-urchin" value="urchin" {if $trackingCode eq "urchin" || $trackingCode eq ""}checked="checked" {/if}/> {translate key="plugins.generic.googleAnalytics.manager.settings.urchin"}</td>
34
	</tr>
35
	<tr valign="top">
36
		<td width="20%" class="label">&nbsp;</td>
37
		<td width="80%" class="value"><input type="radio" name="trackingCode" id="trackingCode-ga" value="ga" {if $trackingCode eq "ga"}checked="checked" {/if}/> {translate key="plugins.generic.googleAnalytics.manager.settings.ga"}</td>
38
	</tr>
39
</table>
40
41
<br/>
42
43
<input type="submit" name="save" class="button defaultButton" value="{translate key="common.save"}"/><input type="button" class="button" value="{translate key="common.cancel"}" onclick="history.go(-1)"/>
44
</form>
45
46
<p><span class="formRequired">{translate key="common.requiredField"}</span></p>
47
48
{include file="common/footer.tpl"}
(-) (+36 lines)
Added Link Here 
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!DOCTYPE locale SYSTEM "../../../../../locale/locale.dtd">
3
4
<!--
5
  * locale.xml
6
  *
7
  * Copyright (c) 2003-2008 John Willinsky
8
  * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
9
  *
10
  * Google Analytics plugin localization strings for the Greek locale.
11
  *
12
  * Translation by University of Patras, Library & Information Service
13
  * Vassilis Barkayannis (barkayannis@upatras.gr),
14
  * Panos Georgiou (panos@lis.upatras.gr),
15
  * Giannis Tsakonas (john@lis.upatras.gr),
16
  * Kiriazis Vasilis (vaskir@lis.upatras.gr),
17
  * Papaxristopoulos Leonidas (leonidasp@lis.upatras.gr)
18
  *
19
  * $Id: locale.xml,v 1.1 2008/06/27 20:32:01 michael Exp $
20
  -->
21
 
22
<locale name="el_GR" full_name="Greek">	
23
24
	<!-- Google Analytics -->
25
	<message key="plugins.generic.googleAnalytics.displayName">Google Analytics Plugin</message>
26
	<message key="plugins.generic.googleAnalytics.description"><![CDATA[Ενσωμματώνει το OCS με το Google Analytics, την εφαρμογή για την ανάλυση της κίνησης του ιστοτόπου του Google. Απαιτεί την ύπαρξη ενός λογαριασμού στο Google Analytics. Δείτε τον ιστότοπο του <a href="http://www.google.com/analytics/" title="Google Analytics site">Google Analytics </a> για περισσότερες πληροφορίες.]]></message>
27
28
	<!-- Google Analytics Settings Management -->
29
	<message key="plugins.generic.googleAnalytics.manager.settings">Ρυθμίσεις</message>
30
	<message key="plugins.generic.googleAnalytics.manager.googleAnalyticsSettings">Ρυθμίσεις Google Analytics </message>
31
	<message key="plugins.generic.googleAnalytics.manager.settings.description"><![CDATA[<p>Με αυτό το plugin ενεργοποιημένο το Google Analytics μπορεί να συλλέξει και να αναλύσει τα στοιχεία χρήσης και κίνησης του ιστοτόπου αυτού του περιοδικού. Σημειώστε ότι αυτό το plugin απαιτεί την ύπαρξη ενός λογαριασμού στο Google Analytics. PΔείτε τον ιστότοπο του <a href="http://www.google.com/analytics/" title="Google Analytics site">Google Analytics </a> για περισσότερες πληροφορίες.</p>]]></message>
32
	<message key="plugins.generic.googleAnalytics.manager.settings.googleAnalyticsSiteId">Αριθμός Λογαριασμού</message>
33
	<message key="plugins.generic.googleAnalytics.manager.settings.googleAnalyticsSiteIdInstructions">Μέσα στο Google Analytics, πατήστε στο Check Status για να δείτε τον κωδικό ανίχνευσης (tracking code) για τον ιστότοπό σας. Ο αριθμός λογαριασμού προβάλλεται μέσα στον κωδικό αυτό : _uacct = "###". Εισάγετ το κείμενο που αντιστοιχεί στο ###.</message>
34
	<message key="plugins.generic.googleAnalytics.manager.settings.googleAnalyticsSiteIdRequired">Σας παρακαλούμε εισάγετε έναν αριθμός λογαριασμού.</message>
35
36
</locale>
(-) (+32 lines)
Added Link Here 
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!DOCTYPE locale SYSTEM "../../../../../locale/locale.dtd">
3
4
<!--
5
  * locale.xml
6
  *
7
  * Copyright (c) 2003-2008 John Willinsky
8
  * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
9
  *
10
  * Google Analytics plugin localization strings for the en_US (U.S. English) locale.
11
  *
12
  * $Id: locale.xml,v 1.1 2008/06/27 20:32:01 michael Exp $
13
  -->
14
 
15
<locale name="en_US" full_name="U.S. English">
16
17
	<!-- Google Analytics -->
18
	<message key="plugins.generic.googleAnalytics.displayName">Google Analytics Plugin</message>
19
	<message key="plugins.generic.googleAnalytics.description"><![CDATA[Integrate OCS with Google Analytics, Google's web site traffic analysis application. Requires that you have already setup a Google Analytics account. Please see the <a href="http://www.google.com/analytics/" title="Google Analytics site">Google Analytics site</a> for more information.]]></message>
20
21
	<!-- Google Analytics Settings Management -->
22
	<message key="plugins.generic.googleAnalytics.manager.settings">Settings</message>
23
	<message key="plugins.generic.googleAnalytics.manager.googleAnalyticsSettings">Google Analytics Settings</message>
24
	<message key="plugins.generic.googleAnalytics.manager.settings.description"><![CDATA[<p>With this plugin enabled Google Analytics may be used to collect and analyze web site usage and traffic for this journal. Please note that this plugin requires that you have already setup a Google Analytics account. Please see the <a href="http://www.google.com/analytics/" title="Google Analytics site">Google Analytics site</a> for more information.</p><p>Please note that Google Analytics may require up to 24 hours before statistics are collected and reported. During this period, the 'Check Status' function may not accurately report whether it has detected the required tracking code for the journal.</p>]]></message>
25
	<message key="plugins.generic.googleAnalytics.manager.settings.googleAnalyticsSiteId">Account number</message>
26
	<message key="plugins.generic.googleAnalytics.manager.settings.googleAnalyticsSiteIdInstructions"><![CDATA[Within Google Analytics, click on 'Check Status' to view the tracking code for your site. For legacy tracking code, the account number is displayed within the tracking code as: _uacct = "###". For new tracking code, the account number is displayed within the tracking code as: var pageTracker = _gat._getTracker("###"). Enter the text that corresponds to ###.]]></message>
27
	<message key="plugins.generic.googleAnalytics.manager.settings.googleAnalyticsSiteIdRequired">Please enter an account number.</message>
28
	<message key="plugins.generic.googleAnalytics.manager.settings.trackingCode">Tracking code</message>
29
	<message key="plugins.generic.googleAnalytics.manager.settings.trackingCodeRequired">Please select a tracking code to use.</message>
30
	<message key="plugins.generic.googleAnalytics.manager.settings.urchin">Legacy tracking code (urchin.js)</message>
31
	<message key="plugins.generic.googleAnalytics.manager.settings.ga">New tracking code (ga.js)</message>
32
</locale>
(-) (+29 lines)
Added Link Here 
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!DOCTYPE locale SYSTEM "../../../../../locale/locale.dtd">
3
4
<!--
5
  * locale.xml
6
  *
7
  * Copyright (c) 2003-2008 John Willinsky
8
  * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
9
  *
10
  * Google Analytics plugin localization strings for the es_ES (Español (España)) locale.
11
  *
12
  * $Id: locale.xml,v 1.1 2008/06/27 20:32:01 michael Exp $
13
  -->
14
 
15
<locale name="es_ES" full_name="Español (España)">
16
17
	<!-- Google Analytics -->
18
	<message key="plugins.generic.googleAnalytics.displayName">Complemento para Google Analytics</message>
19
	<message key="plugins.generic.googleAnalytics.description"><![CDATA[Integre OCS con Google Analytics, el sistema de análisis de tráfico web de Google. Requiere una cuenta previa creada en Google Analytics. Vea la página de <a href="http://www.google.com/analytics/" title="Google Analytics site">Google Analytics </a> para más información.]]></message>
20
21
	<!-- Google Analytics Settings Management -->
22
	<message key="plugins.generic.googleAnalytics.manager.settings">Opciones</message>
23
	<message key="plugins.generic.googleAnalytics.manager.googleAnalyticsSettings">Opciones de Google Analytics</message>
24
	<message key="plugins.generic.googleAnalytics.manager.settings.description"><![CDATA[<p>Con este complemento activado puede usar Google Analytics para recoger y analizar datos de tráfico web de su revista. Requiere una cuenta previa creada en Google Analytics. Vea la página de <a href="http://www.google.com/analytics/" title="Google Analytics site">Google Analytics </a> para más información.</p>]]></message>
25
	<message key="plugins.generic.googleAnalytics.manager.settings.googleAnalyticsSiteId">Número de cuenta</message>
26
	<message key="plugins.generic.googleAnalytics.manager.settings.googleAnalyticsSiteIdInstructions">En Google Analytics, pulse sobre "Check Status" para ver el código de seguimiento de su página. El número de cuenta aparece en el código de seguimiento: _uacct = "###". Introduzca los caracteres que corresponden a ###.</message>
27
	<message key="plugins.generic.googleAnalytics.manager.settings.googleAnalyticsSiteIdRequired">Por favor, intoduzca un número de cuenta.</message>
28
29
</locale>
(-) (+29 lines)
Added Link Here 
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!DOCTYPE locale SYSTEM "../../../../../locale/locale.dtd">
3
4
<!--
5
  * locale.xml
6
  *
7
  * Copyright (c) 2003-2008 John Willinsky
8
  * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
9
  *
10
  * Google Analytics plugin localization strings for the fr_CA (Français (Canada)) locale.
11
  *
12
  * $Id: locale.xml,v 1.1 2008/06/27 20:32:01 michael Exp $
13
  -->
14
 
15
<locale name="fr_CA" full_name="Français (Canada)">
16
17
	<!-- Google Analytics -->
18
	<message key="plugins.generic.googleAnalytics.displayName">Plugiciel Google Analytics</message>
19
	<message key="plugins.generic.googleAnalytics.description"><![CDATA[Intégrez l'OCS à Google Analytics, l’application d'analyse de trafic sur le site Web de Google. Vous devez avoir un compte Google Analytics pour utiliser cette application. Veuillez consulter le <a href="http://www.google.com/analytics/" title="Google Analytics site">site Google Analytics </a> pour de plus amples renseignements.]]></message>
20
21
	<!-- Google Analytics Settings Management -->
22
	<message key="plugins.generic.googleAnalytics.manager.settings">Paramètres</message>
23
	<message key="plugins.generic.googleAnalytics.manager.googleAnalyticsSettings">Paramètres de Google Analytics</message>
24
	<message key="plugins.generic.googleAnalytics.manager.settings.description"><![CDATA[<p> Au moyen de ce plugiciel, vous pouvez utiliser Google Analytics pour collecter et analyser l'utilisation et le trafic sur ce site Web pour cette revue. Veuillez noter que pour utiliser ce plugiciel, vous devez déjà avoir un compte Google Analytics. Veuillez consulter le <a href="http://www.google.com/analytics/" title="Google Analytics site">site Google Analytics </a> pour de plus amples renseignements.</p>]]></message>
25
	<message key="plugins.generic.googleAnalytics.manager.settings.googleAnalyticsSiteId">Numéro de compte</message>
26
	<message key="plugins.generic.googleAnalytics.manager.settings.googleAnalyticsSiteIdInstructions">À partir de Google Analytics, cliquez sur Vérifier l'état pour voir le code de localisation de votre site. Le numéro de compte est affiché dans le code de localisation : _uacct = "###". Entrez le texte correspondant à ###.</message>
27
	<message key="plugins.generic.googleAnalytics.manager.settings.googleAnalyticsSiteIdRequired">Veuillez entrer un numéro de compte.</message>
28
29
</locale>
(-) (+33 lines)
Added Link Here 
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!DOCTYPE locale SYSTEM "../../../../../locale/locale.dtd">
3
4
<!--
5
  * locale.xml
6
  *
7
  * Copyright (c) 2003-2008 John Willinsky
8
  * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
9
  *
10
  * Google Analytics plugin localization strings for the it_IT (Italiano) locale.
11
  *
12
  * $Id: locale.xml,v 1.1 2008/06/27 20:32:01 michael Exp $
13
  -->
14
 
15
<locale name="it_IT" full_name="Italiano">
16
17
	<!-- Google Analytics -->
18
	<message key="plugins.generic.googleAnalytics.displayName">Google Analytics Plugin</message>
19
	<message key="plugins.generic.googleAnalytics.description"><![CDATA[Integra OCS con Google Analytics, il sito web di Google sull'applicazione d'analisi di traffico. E' necessario che tu abbia già impostato un account in Google Analytics. Si veda <a href="http://www.google.com/analytics/" title="Google Analytics site">Google Analytics site</a> per maggiori informazioni.]]></message>
20
21
	<!-- Google Analytics Settings Management -->
22
	<message key="plugins.generic.googleAnalytics.manager.settings">Impostazioni</message>
23
	<message key="plugins.generic.googleAnalytics.manager.googleAnalyticsSettings">Impostazioni di Google Analytics</message>
24
	<message key="plugins.generic.googleAnalytics.manager.settings.description"><![CDATA[<p>Con questo plugin abilitato Google Analytics può essere usato per raccogliere e analizzare l'utilizzo e il traffico del sito web per questa rivista. Si prega di notare che questo plugin richiede che tu abbia già installato un account di Google Analytics. Si veda <a href="http://www.google.com/analytics/" title="Google Analytics site">Google Analytics site</a> per maggiori informazioni.</p>]]></message>
25
	<message key="plugins.generic.googleAnalytics.manager.settings.googleAnalyticsSiteId">Numero di account</message>
26
	<message key="plugins.generic.googleAnalytics.manager.settings.googleAnalyticsSiteIdInstructions">In Google Analytics, clica su Check Status per vedere il codice di tracciamento del tuo sito. Il numero di account è visualizzato nel codice di tracciamento: _uacct = "###". Inserisci il testo che corrisponde a ###.</message>
27
	<message key="plugins.generic.googleAnalytics.manager.settings.googleAnalyticsSiteIdRequired">Per favore inserisci un numero di account.</message>
28
29
	<message key="plugins.generic.googleAnalytics.manager.settings.trackingCode">Codice di monitoraggio</message>
30
	<message key="plugins.generic.googleAnalytics.manager.settings.trackingCodeRequired">Seleziona il codice di monitoraggio da utilizzare</message>
31
	<message key="plugins.generic.googleAnalytics.manager.settings.urchin">Codice di monitoraggio legacy (urchin.js)</message>
32
	<message key="plugins.generic.googleAnalytics.manager.settings.ga">Nuovo codice di monitoraggio (ga.js)</message>
33
</locale>
(-) (+29 lines)
Added Link Here 
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!DOCTYPE locale SYSTEM "../../../../../locale/locale.dtd">
3
4
<!--
5
  * locale.xml
6
  *
7
  * Copyright (c) 2003-2008 John Willinsky
8
  * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
9
  *
10
  * Google Analytics plugin localization strings for the ja_JP locale.
11
  *
12
  * $Id: locale.xml,v 1.1 2008/06/27 20:32:01 michael Exp $
13
  -->
14
 
15
<locale name="ja_JP" full_name="日本語">
16
17
	<!-- Google Analytics -->
18
	<message key="plugins.generic.googleAnalytics.displayName">Google Analyticsプラグイン</message>
19
	<message key="plugins.generic.googleAnalytics.description"><![CDATA[OCSにGoogle Analyticsを組み込みます。Google Analyticsとは、Googleが提供するWebサイトのトラフィック分析アプリケーションです。利用するには、Google Analyticsのアカウントが必要です。詳細については、<a href="http://www.google.com/analytics/" title="Google Analytics site">Google Analytics サイト</a>を参照してください。]]></message>
20
21
	<!-- Google Analytics Settings Management -->
22
	<message key="plugins.generic.googleAnalytics.manager.settings">設定</message>
23
	<message key="plugins.generic.googleAnalytics.manager.googleAnalyticsSettings">Google Analyticsの設定</message>
24
	<message key="plugins.generic.googleAnalytics.manager.settings.description"><![CDATA[<p>このプラグインを有効化することにより、Google Analyticsを使ってこの雑誌のWebサイトの利用やトラフィックのデータを収集・分析することができます。このプラグインを使用するには、Google Analyticsのアカウントが必要なことに注意してください。詳細については、<a href="http://www.google.com/analytics/" title="Google Analytics site">Google Analytics サイト</a>を参照してください。</p>]]></message>
25
	<message key="plugins.generic.googleAnalytics.manager.settings.googleAnalyticsSiteId">アカウント番号</message>
26
	<message key="plugins.generic.googleAnalytics.manager.settings.googleAnalyticsSiteIdInstructions">アカウント番号は以下の手順で確認できます。Google Analyticsの[Analytics 設定] ページで、該当するプロファイルの横にある [編集] リンクをクリックし、表の右上にある [ステータスを確認] を選択します。アカウント番号はトラッキングコード内に _uacct = "###" という形で表示されています。###に該当するテキストを入力してください。</message>
27
	<message key="plugins.generic.googleAnalytics.manager.settings.googleAnalyticsSiteIdRequired">アカウント番号を入力してください。</message>
28
29
</locale>
(-) (+29 lines)
Added Link Here 
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!DOCTYPE locale SYSTEM "../../../../../locale/locale.dtd">
3
4
<!--
5
  * locale.xml
6
  *
7
  * Copyright (c) 2003-2008 John Willinsky
8
  * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
9
  *
10
  * Google Analytics plugin localization strings for the pt_BR (Português (Brasil)) locale.
11
  *
12
  * $Id: locale.xml,v 1.1 2008/06/27 20:32:01 michael Exp $
13
  -->
14
 
15
<locale name="pt_BR" full_name="Português do Brasil">
16
17
	<!-- Google Analytics -->
18
	<message key="plugins.generic.googleAnalytics.displayName">Plugin Google Analytics</message>
19
	<message key="plugins.generic.googleAnalytics.description"><![CDATA[Integre o sistema com o Google Analytics, a aplicação da Google para análise de tráfego do portal. Exige uma conta no Google Analytics. Saiba mais em <a href="http://www.google.com/analytics/" title="Google Analytics site">Google Analytics</a>.]]></message>
20
21
	<!-- Google Analytics Settings Management -->
22
	<message key="plugins.generic.googleAnalytics.manager.settings">Configurações</message>
23
	<message key="plugins.generic.googleAnalytics.manager.googleAnalyticsSettings">Configurações Google Analytics</message>
24
	<message key="plugins.generic.googleAnalytics.manager.settings.description"><![CDATA[<p>Com este plugin habilitado, pode-se coletar informações e analisar o tráfego de uso do portal para esta revista. Este plugin exige uma conta no Google Analytics. Saiba mais em <a href="http://www.google.com/analytics/" title="Google Analytics site">Google Analytics</a>.</p>]]></message>
25
	<message key="plugins.generic.googleAnalytics.manager.settings.googleAnalyticsSiteId">Número da conta</message>
26
	<message key="plugins.generic.googleAnalytics.manager.settings.googleAnalyticsSiteIdInstructions">Dentro do Google Analytics, clique em Verificar Status (Check Status) para visualizar o código de acompanhamento do portal. O número da conta é exibido dentro o código de acompanhamento : _uacct = "###". Informe o texto que corresponde a ###.</message>
27
	<message key="plugins.generic.googleAnalytics.manager.settings.googleAnalyticsSiteIdRequired">Informe o número da conta.</message>
28
29
</locale>

Return to bug 2900