Added title language statistics

This commit is contained in:
Eduard Urbach 2018-10-29 19:24:25 +09:00
parent 7e07923177
commit ad467398ef

View File

@ -25,6 +25,7 @@ func getUserStats() []*arn.PieChart {
gender := stats{} gender := stats{}
os := stats{} os := stats{}
notifications := stats{} notifications := stats{}
titleLanguage := stats{}
avatar := stats{} avatar := stats{}
ip := stats{} ip := stats{}
pro := stats{} pro := stats{}
@ -110,6 +111,7 @@ func getUserStats() []*arn.PieChart {
settings := user.Settings() settings := user.Settings()
theme[settings.Theme]++ theme[settings.Theme]++
titleLanguage[settings.TitleLanguage]++
} }
return []*arn.PieChart{ return []*arn.PieChart{
@ -117,6 +119,7 @@ func getUserStats() []*arn.PieChart {
arn.NewPieChart("Screen size", screenSize), arn.NewPieChart("Screen size", screenSize),
arn.NewPieChart("Browser", browser), arn.NewPieChart("Browser", browser),
arn.NewPieChart("Country", country), arn.NewPieChart("Country", country),
arn.NewPieChart("Title language", titleLanguage),
arn.NewPieChart("Avatar", avatar), arn.NewPieChart("Avatar", avatar),
arn.NewPieChart("Notifications", notifications), arn.NewPieChart("Notifications", notifications),
arn.NewPieChart("Gender", gender), arn.NewPieChart("Gender", gender),