Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/DevicesDetection')
-rw-r--r--plugins/DevicesDetection/functions.php1
-rw-r--r--plugins/DevicesDetection/lang/en.json1
-rw-r--r--plugins/DevicesDetection/tests/System/expected/test___DevicesDetection.getType_day.xml6
3 files changed, 8 insertions, 0 deletions
diff --git a/plugins/DevicesDetection/functions.php b/plugins/DevicesDetection/functions.php
index 472fe5ad3d..65fc1d2833 100644
--- a/plugins/DevicesDetection/functions.php
+++ b/plugins/DevicesDetection/functions.php
@@ -135,6 +135,7 @@ function getDeviceTypeLabel($label)
'camera' => 'DevicesDetection_Camera',
'portable media player' => 'DevicesDetection_PortableMediaPlayer',
'smart speaker' => 'DevicesDetection_SmartSpeaker',
+ 'wearable' => 'DevicesDetection_Wearable',
);
$deviceTypes = DeviceParser::getAvailableDeviceTypes();
diff --git a/plugins/DevicesDetection/lang/en.json b/plugins/DevicesDetection/lang/en.json
index e985e0c060..26d6bc7182 100644
--- a/plugins/DevicesDetection/lang/en.json
+++ b/plugins/DevicesDetection/lang/en.json
@@ -48,6 +48,7 @@
"TV": "Tv",
"UserAgent": "User-Agent",
"XVisitsFromDevices": "%1$s visits from %2$s devices",
+ "Wearable": "Wearable",
"WidgetBrowsers": "Visitor Browser",
"WidgetBrowsersDocumentation": "This report contains information about what kind of browser your visitors were using. Each browser version is listed separately."
}
diff --git a/plugins/DevicesDetection/tests/System/expected/test___DevicesDetection.getType_day.xml b/plugins/DevicesDetection/tests/System/expected/test___DevicesDetection.getType_day.xml
index c5ea05a965..d959ebf6cb 100644
--- a/plugins/DevicesDetection/tests/System/expected/test___DevicesDetection.getType_day.xml
+++ b/plugins/DevicesDetection/tests/System/expected/test___DevicesDetection.getType_day.xml
@@ -148,4 +148,10 @@
<segment>deviceType==smart+speaker</segment>
<logo>plugins/Morpheus/icons/dist/devices/smart_speaker.png</logo>
</row>
+ <row>
+ <label>Wearable</label>
+ <nb_visits>0</nb_visits>
+ <segment>deviceType==wearable</segment>
+ <logo>plugins/Morpheus/icons/dist/devices/wearable.png</logo>
+ </row>
</result> \ No newline at end of file