Skip to content

Commit 876c048

Browse files
author
Joshua Brule
committed
Version 3 cleanup before release
1 parent bada42d commit 876c048

File tree

4 files changed

+6
-33
lines changed

4 files changed

+6
-33
lines changed

API.php

Lines changed: 0 additions & 28 deletions
This file was deleted.

SystemSettings.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,11 @@ protected function init()
4545
private function createIdSiteSetting(){
4646
return $this->makeSetting('idSite', $default = "", FieldConfig::TYPE_STRING, function (FieldConfig $field) {
4747
$field->title = $this->t('idSiteSettingTitle');
48+
$field->introduction = $this->t('PluginDescription');
4849
$field->uiControl = FieldConfig::UI_CONTROL_TEXT;
4950
$field->uiControlAttributes = array("size" => "6", "maxlength" => "8");
50-
$field->description = $this->t('TitleSettingDescription');
51-
$field->inlineHelp = sprintf('<br/>Probably not useful in most scenarios. The idSite option is included for completeness.<br/><br/>Default: %s',$this->t('TitleSettingDefault'));
51+
$field->description = $this->t('idSiteSettingDescription');
52+
$field->inlineHelp = sprintf('<br/>Probably not useful in most scenarios. The idSite option is included for completeness.<br/><br/>Default: %s',$this->t('idSiteSettingDefault'));
5253
$field->validate = function ($value, $setting) {
5354
if ($value != "" && preg_match("/^[0-9]+$/",$value) !== 1) {
5455
throw new \Exception('Value is invalid. Must be positive integer');

lang/en.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
{
22
"TrackingCodeCustomizer": {
3-
"PluginDescription":"The provided values will replace the defaults in the generated tracking code (leave blank to use defaults). Viewing https://github.com/piwik/piwik/blob/master/core/Tracker/TrackerCodeGenerator.php is recommended to deconstruct how the tracking code is built.",
3+
"PluginDescription":"The provided values will replace the defaults in the generated tracking code (leave blank to use defaults). Viewing https://github.com/matomo-org/matomo/blob/master/core/Tracker/TrackerCodeGenerator.php is recommended to deconstruct how the tracking code is built.",
44
"idSiteSettingTitle":"idSite",
55
"idSiteSettingDescription":"The siteId that will be included in the tracking code.",
66
"idSiteSettingDefault":"Dependent on selected site.",
77
"protocolSettingTitle":"protocol",
88
"protocolSettingDescription":"Piwik url protocol.",
9-
"protocolSettingDefault":"\"//\"",
9+
"protocolSettingDefault":"\"//\" <- Protocol relative",
1010
"piwikUrlSettingTitle":"piwikUrl",
1111
"piwikUrlSettingDescription":"The tracker URL to use.\nDefault: Same as Matomo installation path",
1212
"piwikUrlSettingDefault":"Same as Matomo installation path",
1313
"httpsPiwikUrlSettingTitle":"httpsPiwikUrl",
1414
"httpsPiwikUrlSettingDescription":"Set if the HTTPS domain is different from the normal domain.",
15-
"httpsPiwikUrlSettingDefault":"Attempts to detect protocol and retrieves using piwikUrl.<br/>Note: Setting a value here will disable protocol checking and force https.",
15+
"httpsPiwikUrlSettingDefault":"Empty<br/>Note: Setting a value here will add a protocol check condition to the tracking code.",
1616
"optionsSettingTitle":"options",
1717
"optionsSettingDescription":"A string of JavaScript code that customizes the JavaScript tracker (after _paq = _paq || [] and before trackPageView).",
1818
"optionsSettingDefault":"Empty",

screenshots/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)