diff options
author | Stefan Giehl <stefan@matomo.org> | 2019-05-15 02:47:09 +0300 |
---|---|---|
committer | diosmosis <diosmosis@users.noreply.github.com> | 2019-05-15 02:47:09 +0300 |
commit | 045b3c6d936b39ca25623ca40b8ba6b4143f14ba (patch) | |
tree | 88206571b9695be9afc31f20a4eec2d152125587 /plugins/Referrers | |
parent | 0af1f22f728b2bb2232f84ace5f4b5f0c3c60c57 (diff) |
Use NumberFormatter to format metric values (#14017)
* Use NumberFormatter to format metric values
* fixing tests
* update test files
* load translations for tests as otherwise number formatter fails
* updates expected UI files
* ensure correct number of minimum fraction digits
* update tests
Diffstat (limited to 'plugins/Referrers')
-rw-r--r-- | plugins/Referrers/tests/System/expected/test_Referrers_getReferrerType__API.getProcessedReport_day.xml | 124 |
1 files changed, 62 insertions, 62 deletions
diff --git a/plugins/Referrers/tests/System/expected/test_Referrers_getReferrerType__API.getProcessedReport_day.xml b/plugins/Referrers/tests/System/expected/test_Referrers_getReferrerType__API.getProcessedReport_day.xml index d30fa7502e..cedb63631b 100644 --- a/plugins/Referrers/tests/System/expected/test_Referrers_getReferrerType__API.getProcessedReport_day.xml +++ b/plugins/Referrers/tests/System/expected/test_Referrers_getReferrerType__API.getProcessedReport_day.xml @@ -99,7 +99,7 @@ <nb_actions_per_visit>1</nb_actions_per_visit> <avg_time_on_site>00:00:00</avg_time_on_site> <bounce_rate>100%</bounce_rate> - <revenue>$ 0</revenue> + <revenue>$0</revenue> </row> <row> <label>Websites</label> @@ -107,7 +107,7 @@ <nb_visits>1</nb_visits> <nb_actions>1</nb_actions> <nb_users>0</nb_users> - <revenue>$ 0</revenue> + <revenue>$0</revenue> <nb_actions_per_visit>1</nb_actions_per_visit> <avg_time_on_site>00:06:05</avg_time_on_site> <bounce_rate>100%</bounce_rate> @@ -123,7 +123,7 @@ <nb_actions_per_visit>1</nb_actions_per_visit> <avg_time_on_site>00:00:00</avg_time_on_site> <bounce_rate>100%</bounce_rate> - <revenue>$ 0</revenue> + <revenue>$0</revenue> </row> <row> <label>Websites</label> @@ -131,7 +131,7 @@ <nb_visits>1</nb_visits> <nb_actions>1</nb_actions> <nb_users>0</nb_users> - <revenue>$ 0</revenue> + <revenue>$0</revenue> <nb_actions_per_visit>1</nb_actions_per_visit> <avg_time_on_site>00:06:05</avg_time_on_site> <bounce_rate>100%</bounce_rate> @@ -147,7 +147,7 @@ <nb_actions_per_visit>1</nb_actions_per_visit> <avg_time_on_site>00:00:00</avg_time_on_site> <bounce_rate>100%</bounce_rate> - <revenue>$ 0</revenue> + <revenue>$0</revenue> </row> <row> <label>Websites</label> @@ -155,7 +155,7 @@ <nb_visits>1</nb_visits> <nb_actions>1</nb_actions> <nb_users>0</nb_users> - <revenue>$ 0</revenue> + <revenue>$0</revenue> <nb_actions_per_visit>1</nb_actions_per_visit> <avg_time_on_site>00:06:05</avg_time_on_site> <bounce_rate>100%</bounce_rate> @@ -171,7 +171,7 @@ <nb_actions_per_visit>1</nb_actions_per_visit> <avg_time_on_site>00:00:00</avg_time_on_site> <bounce_rate>100%</bounce_rate> - <revenue>$ 0</revenue> + <revenue>$0</revenue> </row> <row> <label>Websites</label> @@ -179,7 +179,7 @@ <nb_visits>1</nb_visits> <nb_actions>1</nb_actions> <nb_users>0</nb_users> - <revenue>$ 0</revenue> + <revenue>$0</revenue> <nb_actions_per_visit>1</nb_actions_per_visit> <avg_time_on_site>00:06:05</avg_time_on_site> <bounce_rate>100%</bounce_rate> @@ -195,7 +195,7 @@ <nb_actions_per_visit>1</nb_actions_per_visit> <avg_time_on_site>00:00:00</avg_time_on_site> <bounce_rate>100%</bounce_rate> - <revenue>$ 0</revenue> + <revenue>$0</revenue> </row> <row> <label>Websites</label> @@ -203,7 +203,7 @@ <nb_visits>1</nb_visits> <nb_actions>1</nb_actions> <nb_users>0</nb_users> - <revenue>$ 0</revenue> + <revenue>$0</revenue> <nb_actions_per_visit>1</nb_actions_per_visit> <avg_time_on_site>00:06:05</avg_time_on_site> <bounce_rate>100%</bounce_rate> @@ -219,7 +219,7 @@ <nb_actions_per_visit>1</nb_actions_per_visit> <avg_time_on_site>00:00:00</avg_time_on_site> <bounce_rate>100%</bounce_rate> - <revenue>$ 0</revenue> + <revenue>$0</revenue> </row> <row> <label>Websites</label> @@ -227,7 +227,7 @@ <nb_visits>1</nb_visits> <nb_actions>1</nb_actions> <nb_users>0</nb_users> - <revenue>$ 0</revenue> + <revenue>$0</revenue> <nb_actions_per_visit>1</nb_actions_per_visit> <avg_time_on_site>00:06:05</avg_time_on_site> <bounce_rate>100%</bounce_rate> @@ -243,7 +243,7 @@ <nb_actions_per_visit>1</nb_actions_per_visit> <avg_time_on_site>00:00:00</avg_time_on_site> <bounce_rate>100%</bounce_rate> - <revenue>$ 0</revenue> + <revenue>$0</revenue> </row> <row> <label>Websites</label> @@ -251,7 +251,7 @@ <nb_visits>1</nb_visits> <nb_actions>1</nb_actions> <nb_users>0</nb_users> - <revenue>$ 0</revenue> + <revenue>$0</revenue> <nb_actions_per_visit>1</nb_actions_per_visit> <avg_time_on_site>00:06:05</avg_time_on_site> <bounce_rate>100%</bounce_rate> @@ -267,7 +267,7 @@ <nb_actions_per_visit>1</nb_actions_per_visit> <avg_time_on_site>00:00:00</avg_time_on_site> <bounce_rate>100%</bounce_rate> - <revenue>$ 0</revenue> + <revenue>$0</revenue> </row> <row> <label>Websites</label> @@ -275,7 +275,7 @@ <nb_visits>1</nb_visits> <nb_actions>1</nb_actions> <nb_users>0</nb_users> - <revenue>$ 0</revenue> + <revenue>$0</revenue> <nb_actions_per_visit>1</nb_actions_per_visit> <avg_time_on_site>00:06:05</avg_time_on_site> <bounce_rate>100%</bounce_rate> @@ -291,7 +291,7 @@ <nb_actions_per_visit>1</nb_actions_per_visit> <avg_time_on_site>00:00:00</avg_time_on_site> <bounce_rate>100%</bounce_rate> - <revenue>$ 0</revenue> + <revenue>$0</revenue> </row> <row> <label>Websites</label> @@ -299,7 +299,7 @@ <nb_visits>1</nb_visits> <nb_actions>1</nb_actions> <nb_users>0</nb_users> - <revenue>$ 0</revenue> + <revenue>$0</revenue> <nb_actions_per_visit>1</nb_actions_per_visit> <avg_time_on_site>00:06:05</avg_time_on_site> <bounce_rate>100%</bounce_rate> @@ -315,7 +315,7 @@ <nb_actions_per_visit>1</nb_actions_per_visit> <avg_time_on_site>00:00:00</avg_time_on_site> <bounce_rate>100%</bounce_rate> - <revenue>$ 0</revenue> + <revenue>$0</revenue> </row> <row> <label>Websites</label> @@ -323,7 +323,7 @@ <nb_visits>1</nb_visits> <nb_actions>1</nb_actions> <nb_users>0</nb_users> - <revenue>$ 0</revenue> + <revenue>$0</revenue> <nb_actions_per_visit>1</nb_actions_per_visit> <avg_time_on_site>00:06:05</avg_time_on_site> <bounce_rate>100%</bounce_rate> @@ -339,7 +339,7 @@ <nb_actions_per_visit>1</nb_actions_per_visit> <avg_time_on_site>00:00:00</avg_time_on_site> <bounce_rate>100%</bounce_rate> - <revenue>$ 0</revenue> + <revenue>$0</revenue> </row> <row> <label>Websites</label> @@ -347,7 +347,7 @@ <nb_visits>1</nb_visits> <nb_actions>1</nb_actions> <nb_users>0</nb_users> - <revenue>$ 0</revenue> + <revenue>$0</revenue> <nb_actions_per_visit>1</nb_actions_per_visit> <avg_time_on_site>00:06:05</avg_time_on_site> <bounce_rate>100%</bounce_rate> @@ -363,7 +363,7 @@ <nb_actions_per_visit>1</nb_actions_per_visit> <avg_time_on_site>00:00:00</avg_time_on_site> <bounce_rate>100%</bounce_rate> - <revenue>$ 0</revenue> + <revenue>$0</revenue> </row> <row> <label>Websites</label> @@ -371,7 +371,7 @@ <nb_visits>1</nb_visits> <nb_actions>1</nb_actions> <nb_users>0</nb_users> - <revenue>$ 0</revenue> + <revenue>$0</revenue> <nb_actions_per_visit>1</nb_actions_per_visit> <avg_time_on_site>00:06:05</avg_time_on_site> <bounce_rate>100%</bounce_rate> @@ -387,7 +387,7 @@ <nb_actions_per_visit>1</nb_actions_per_visit> <avg_time_on_site>00:00:00</avg_time_on_site> <bounce_rate>100%</bounce_rate> - <revenue>$ 0</revenue> + <revenue>$0</revenue> </row> <row> <label>Websites</label> @@ -395,7 +395,7 @@ <nb_visits>1</nb_visits> <nb_actions>1</nb_actions> <nb_users>0</nb_users> - <revenue>$ 0</revenue> + <revenue>$0</revenue> <nb_actions_per_visit>1</nb_actions_per_visit> <avg_time_on_site>00:06:05</avg_time_on_site> <bounce_rate>100%</bounce_rate> @@ -411,7 +411,7 @@ <nb_actions_per_visit>1</nb_actions_per_visit> <avg_time_on_site>00:00:00</avg_time_on_site> <bounce_rate>100%</bounce_rate> - <revenue>$ 0</revenue> + <revenue>$0</revenue> </row> <row> <label>Websites</label> @@ -419,7 +419,7 @@ <nb_visits>1</nb_visits> <nb_actions>1</nb_actions> <nb_users>0</nb_users> - <revenue>$ 0</revenue> + <revenue>$0</revenue> <nb_actions_per_visit>1</nb_actions_per_visit> <avg_time_on_site>00:06:05</avg_time_on_site> <bounce_rate>100%</bounce_rate> @@ -435,7 +435,7 @@ <nb_actions_per_visit>1</nb_actions_per_visit> <avg_time_on_site>00:00:00</avg_time_on_site> <bounce_rate>100%</bounce_rate> - <revenue>$ 0</revenue> + <revenue>$0</revenue> </row> <row> <label>Websites</label> @@ -443,7 +443,7 @@ <nb_visits>1</nb_visits> <nb_actions>1</nb_actions> <nb_users>0</nb_users> - <revenue>$ 0</revenue> + <revenue>$0</revenue> <nb_actions_per_visit>1</nb_actions_per_visit> <avg_time_on_site>00:06:05</avg_time_on_site> <bounce_rate>100%</bounce_rate> @@ -459,7 +459,7 @@ <nb_actions_per_visit>1</nb_actions_per_visit> <avg_time_on_site>00:00:00</avg_time_on_site> <bounce_rate>100%</bounce_rate> - <revenue>$ 0</revenue> + <revenue>$0</revenue> </row> <row> <label>Websites</label> @@ -467,7 +467,7 @@ <nb_visits>1</nb_visits> <nb_actions>1</nb_actions> <nb_users>0</nb_users> - <revenue>$ 0</revenue> + <revenue>$0</revenue> <nb_actions_per_visit>1</nb_actions_per_visit> <avg_time_on_site>00:06:05</avg_time_on_site> <bounce_rate>100%</bounce_rate> @@ -483,7 +483,7 @@ <nb_actions_per_visit>1</nb_actions_per_visit> <avg_time_on_site>00:00:00</avg_time_on_site> <bounce_rate>100%</bounce_rate> - <revenue>$ 0</revenue> + <revenue>$0</revenue> </row> <row> <label>Websites</label> @@ -491,7 +491,7 @@ <nb_visits>1</nb_visits> <nb_actions>1</nb_actions> <nb_users>0</nb_users> - <revenue>$ 0</revenue> + <revenue>$0</revenue> <nb_actions_per_visit>1</nb_actions_per_visit> <avg_time_on_site>00:06:05</avg_time_on_site> <bounce_rate>100%</bounce_rate> @@ -507,7 +507,7 @@ <nb_actions_per_visit>1</nb_actions_per_visit> <avg_time_on_site>00:00:00</avg_time_on_site> <bounce_rate>100%</bounce_rate> - <revenue>$ 0</revenue> + <revenue>$0</revenue> </row> <row> <label>Websites</label> @@ -515,7 +515,7 @@ <nb_visits>1</nb_visits> <nb_actions>1</nb_actions> <nb_users>0</nb_users> - <revenue>$ 0</revenue> + <revenue>$0</revenue> <nb_actions_per_visit>1</nb_actions_per_visit> <avg_time_on_site>00:06:05</avg_time_on_site> <bounce_rate>100%</bounce_rate> @@ -531,7 +531,7 @@ <nb_actions_per_visit>1</nb_actions_per_visit> <avg_time_on_site>00:00:00</avg_time_on_site> <bounce_rate>100%</bounce_rate> - <revenue>$ 0</revenue> + <revenue>$0</revenue> </row> <row> <label>Websites</label> @@ -539,7 +539,7 @@ <nb_visits>1</nb_visits> <nb_actions>1</nb_actions> <nb_users>0</nb_users> - <revenue>$ 0</revenue> + <revenue>$0</revenue> <nb_actions_per_visit>1</nb_actions_per_visit> <avg_time_on_site>00:06:05</avg_time_on_site> <bounce_rate>100%</bounce_rate> @@ -555,7 +555,7 @@ <nb_actions_per_visit>1</nb_actions_per_visit> <avg_time_on_site>00:00:00</avg_time_on_site> <bounce_rate>100%</bounce_rate> - <revenue>$ 0</revenue> + <revenue>$0</revenue> </row> <row> <label>Websites</label> @@ -563,7 +563,7 @@ <nb_visits>1</nb_visits> <nb_actions>1</nb_actions> <nb_users>0</nb_users> - <revenue>$ 0</revenue> + <revenue>$0</revenue> <nb_actions_per_visit>1</nb_actions_per_visit> <avg_time_on_site>00:06:05</avg_time_on_site> <bounce_rate>100%</bounce_rate> @@ -579,7 +579,7 @@ <nb_actions_per_visit>1</nb_actions_per_visit> <avg_time_on_site>00:00:00</avg_time_on_site> <bounce_rate>100%</bounce_rate> - <revenue>$ 0</revenue> + <revenue>$0</revenue> </row> <row> <label>Websites</label> @@ -587,7 +587,7 @@ <nb_visits>1</nb_visits> <nb_actions>1</nb_actions> <nb_users>0</nb_users> - <revenue>$ 0</revenue> + <revenue>$0</revenue> <nb_actions_per_visit>1</nb_actions_per_visit> <avg_time_on_site>00:06:05</avg_time_on_site> <bounce_rate>100%</bounce_rate> @@ -603,7 +603,7 @@ <nb_actions_per_visit>1</nb_actions_per_visit> <avg_time_on_site>00:00:00</avg_time_on_site> <bounce_rate>100%</bounce_rate> - <revenue>$ 0</revenue> + <revenue>$0</revenue> </row> <row> <label>Websites</label> @@ -611,7 +611,7 @@ <nb_visits>1</nb_visits> <nb_actions>1</nb_actions> <nb_users>0</nb_users> - <revenue>$ 0</revenue> + <revenue>$0</revenue> <nb_actions_per_visit>1</nb_actions_per_visit> <avg_time_on_site>00:06:05</avg_time_on_site> <bounce_rate>100%</bounce_rate> @@ -627,7 +627,7 @@ <nb_actions_per_visit>1</nb_actions_per_visit> <avg_time_on_site>00:00:00</avg_time_on_site> <bounce_rate>100%</bounce_rate> - <revenue>$ 0</revenue> + <revenue>$0</revenue> </row> <row> <label>Websites</label> @@ -635,7 +635,7 @@ <nb_visits>1</nb_visits> <nb_actions>1</nb_actions> <nb_users>0</nb_users> - <revenue>$ 0</revenue> + <revenue>$0</revenue> <nb_actions_per_visit>1</nb_actions_per_visit> <avg_time_on_site>00:06:05</avg_time_on_site> <bounce_rate>100%</bounce_rate> @@ -651,7 +651,7 @@ <nb_actions_per_visit>1</nb_actions_per_visit> <avg_time_on_site>00:00:00</avg_time_on_site> <bounce_rate>100%</bounce_rate> - <revenue>$ 0</revenue> + <revenue>$0</revenue> </row> <row> <label>Websites</label> @@ -659,7 +659,7 @@ <nb_visits>1</nb_visits> <nb_actions>1</nb_actions> <nb_users>0</nb_users> - <revenue>$ 0</revenue> + <revenue>$0</revenue> <nb_actions_per_visit>1</nb_actions_per_visit> <avg_time_on_site>00:06:05</avg_time_on_site> <bounce_rate>100%</bounce_rate> @@ -675,7 +675,7 @@ <nb_actions_per_visit>1</nb_actions_per_visit> <avg_time_on_site>00:00:00</avg_time_on_site> <bounce_rate>100%</bounce_rate> - <revenue>$ 0</revenue> + <revenue>$0</revenue> </row> <row> <label>Websites</label> @@ -683,7 +683,7 @@ <nb_visits>1</nb_visits> <nb_actions>1</nb_actions> <nb_users>0</nb_users> - <revenue>$ 0</revenue> + <revenue>$0</revenue> <nb_actions_per_visit>1</nb_actions_per_visit> <avg_time_on_site>00:06:05</avg_time_on_site> <bounce_rate>100%</bounce_rate> @@ -699,7 +699,7 @@ <nb_actions_per_visit>1</nb_actions_per_visit> <avg_time_on_site>00:00:00</avg_time_on_site> <bounce_rate>100%</bounce_rate> - <revenue>$ 0</revenue> + <revenue>$0</revenue> </row> <row> <label>Websites</label> @@ -707,7 +707,7 @@ <nb_visits>1</nb_visits> <nb_actions>1</nb_actions> <nb_users>0</nb_users> - <revenue>$ 0</revenue> + <revenue>$0</revenue> <nb_actions_per_visit>1</nb_actions_per_visit> <avg_time_on_site>00:06:05</avg_time_on_site> <bounce_rate>100%</bounce_rate> @@ -723,7 +723,7 @@ <nb_actions_per_visit>1</nb_actions_per_visit> <avg_time_on_site>00:00:00</avg_time_on_site> <bounce_rate>100%</bounce_rate> - <revenue>$ 0</revenue> + <revenue>$0</revenue> </row> <row> <label>Websites</label> @@ -731,7 +731,7 @@ <nb_visits>1</nb_visits> <nb_actions>1</nb_actions> <nb_users>0</nb_users> - <revenue>$ 0</revenue> + <revenue>$0</revenue> <nb_actions_per_visit>1</nb_actions_per_visit> <avg_time_on_site>00:06:05</avg_time_on_site> <bounce_rate>100%</bounce_rate> @@ -747,7 +747,7 @@ <nb_actions_per_visit>1</nb_actions_per_visit> <avg_time_on_site>00:00:00</avg_time_on_site> <bounce_rate>100%</bounce_rate> - <revenue>$ 0</revenue> + <revenue>$0</revenue> </row> <row> <label>Websites</label> @@ -755,7 +755,7 @@ <nb_visits>1</nb_visits> <nb_actions>1</nb_actions> <nb_users>0</nb_users> - <revenue>$ 0</revenue> + <revenue>$0</revenue> <nb_actions_per_visit>1</nb_actions_per_visit> <avg_time_on_site>00:06:05</avg_time_on_site> <bounce_rate>100%</bounce_rate> @@ -771,7 +771,7 @@ <nb_actions_per_visit>1</nb_actions_per_visit> <avg_time_on_site>00:00:00</avg_time_on_site> <bounce_rate>100%</bounce_rate> - <revenue>$ 0</revenue> + <revenue>$0</revenue> </row> <row> <label>Websites</label> @@ -779,7 +779,7 @@ <nb_visits>1</nb_visits> <nb_actions>1</nb_actions> <nb_users>0</nb_users> - <revenue>$ 0</revenue> + <revenue>$0</revenue> <nb_actions_per_visit>1</nb_actions_per_visit> <avg_time_on_site>00:06:05</avg_time_on_site> <bounce_rate>100%</bounce_rate> @@ -795,7 +795,7 @@ <nb_actions_per_visit>1</nb_actions_per_visit> <avg_time_on_site>00:00:00</avg_time_on_site> <bounce_rate>100%</bounce_rate> - <revenue>$ 0</revenue> + <revenue>$0</revenue> </row> <row> <label>Websites</label> @@ -803,7 +803,7 @@ <nb_visits>1</nb_visits> <nb_actions>1</nb_actions> <nb_users>0</nb_users> - <revenue>$ 0</revenue> + <revenue>$0</revenue> <nb_actions_per_visit>1</nb_actions_per_visit> <avg_time_on_site>00:06:05</avg_time_on_site> <bounce_rate>100%</bounce_rate> @@ -819,7 +819,7 @@ <nb_actions_per_visit>1</nb_actions_per_visit> <avg_time_on_site>00:00:00</avg_time_on_site> <bounce_rate>100%</bounce_rate> - <revenue>$ 0</revenue> + <revenue>$0</revenue> </row> <row> <label>Websites</label> @@ -827,7 +827,7 @@ <nb_visits>1</nb_visits> <nb_actions>1</nb_actions> <nb_users>0</nb_users> - <revenue>$ 0</revenue> + <revenue>$0</revenue> <nb_actions_per_visit>1</nb_actions_per_visit> <avg_time_on_site>00:06:05</avg_time_on_site> <bounce_rate>100%</bounce_rate> |