Procházet zdrojové kódy

Provide a comment for enabling statistics in Nightscout (#421)

* Provide a comment for enabling statistics in Nightscout, as well as
a pointer to the Statistics / Demographics

* Fix broken localizations.
Marc G. Fournier před 2 roky
rodič
revize
353406e1d0
24 změnil soubory, kde provedl 84 přidání a 0 odebrání
  1. 3 0
      FreeAPS/Sources/Localizations/Main/ar.lproj/Localizable.strings
  2. 3 0
      FreeAPS/Sources/Localizations/Main/ca.lproj/Localizable.strings
  3. 3 0
      FreeAPS/Sources/Localizations/Main/da.lproj/Localizable.strings
  4. 3 0
      FreeAPS/Sources/Localizations/Main/de.lproj/Localizable.strings
  5. 3 0
      FreeAPS/Sources/Localizations/Main/el.lproj/Localizable.strings
  6. 3 0
      FreeAPS/Sources/Localizations/Main/en.lproj/Localizable.strings
  7. 3 0
      FreeAPS/Sources/Localizations/Main/es.lproj/Localizable.strings
  8. 3 0
      FreeAPS/Sources/Localizations/Main/fi.lproj/Localizable.strings
  9. 3 0
      FreeAPS/Sources/Localizations/Main/fr.lproj/Localizable.strings
  10. 3 0
      FreeAPS/Sources/Localizations/Main/he.lproj/Localizable.strings
  11. 3 0
      FreeAPS/Sources/Localizations/Main/it.lproj/Localizable.strings
  12. 3 0
      FreeAPS/Sources/Localizations/Main/nb.lproj/Localizable.strings
  13. 3 0
      FreeAPS/Sources/Localizations/Main/nl.lproj/Localizable.strings
  14. 3 0
      FreeAPS/Sources/Localizations/Main/pl.lproj/Localizable.strings
  15. 3 0
      FreeAPS/Sources/Localizations/Main/pt-BR.lproj/Localizable.strings
  16. 3 0
      FreeAPS/Sources/Localizations/Main/pt-PT.lproj/Localizable.strings
  17. 3 0
      FreeAPS/Sources/Localizations/Main/pt.lproj/Localizable.strings
  18. 3 0
      FreeAPS/Sources/Localizations/Main/ru.lproj/Localizable.strings
  19. 3 0
      FreeAPS/Sources/Localizations/Main/sk.lproj/Localizable.strings
  20. 3 0
      FreeAPS/Sources/Localizations/Main/sv.lproj/Localizable.strings
  21. 3 0
      FreeAPS/Sources/Localizations/Main/tr.lproj/Localizable.strings
  22. 3 0
      FreeAPS/Sources/Localizations/Main/uk.lproj/Localizable.strings
  23. 3 0
      FreeAPS/Sources/Localizations/Main/zh-Hans.lproj/Localizable.strings
  24. 15 0
      FreeAPS/Sources/Modules/NightscoutConfig/View/NightscoutConfigRootView.swift

+ 3 - 0
FreeAPS/Sources/Localizations/Main/ar.lproj/Localizable.strings

@@ -335,6 +335,9 @@ Enact a temp Basal or a temp target */
 /**/
 "Use local glucose server" = "Use local glucose server";
 
+/* Enable Statistics */
+"This enables uploading of statistics.json to Nightscout, which can be used by the Community Statistics and Demographics Project.\n\nParticipation in Community Statistics is opt-in, and requires separate registration at:\n" = "This enables uploading of statistics.json to Nightscout, which can be used by the Community Statistics and Demographics Project.\n\nParticipation in Community Statistics is opt-in, and requires separate registration at:\n";
+
 /*  */
 "Edit settings json" = "Edit settings json";
 

+ 3 - 0
FreeAPS/Sources/Localizations/Main/ca.lproj/Localizable.strings

@@ -293,6 +293,9 @@ Enact a temp Basal or a temp target */
 /**/
 "Use local glucose server" = "Use local glucose server";
 
+/* Enable Statistics */
+"This enables uploading of statistics.json to Nightscout, which can be used by the Community Statistics and Demographics Project.\n\nParticipation in Community Statistics is opt-in, and requires separate registration at:\n" = "This enables uploading of statistics.json to Nightscout, which can be used by the Community Statistics and Demographics Project.\n\nParticipation in Community Statistics is opt-in, and requires separate registration at:\n";
+
 /*  */
 "Edit settings json" = "Edit settings json";
 

+ 3 - 0
FreeAPS/Sources/Localizations/Main/da.lproj/Localizable.strings

@@ -335,6 +335,9 @@ Enact a temp Basal or a temp target */
 /**/
 "Use local glucose server" = "Brug lokal server som glukosekilde";
 
+/* Enable Statistics */
+"This enables uploading of statistics.json to Nightscout, which can be used by the Community Statistics and Demographics Project.\n\nParticipation in Community Statistics is opt-in, and requires separate registration at:\n" = "This enables uploading of statistics.json to Nightscout, which can be used by the Community Statistics and Demographics Project.\n\nParticipation in Community Statistics is opt-in, and requires separate registration at:\n";
+
 /*  */
 "Edit settings json" = "Rediger indstillingsjson";
 

+ 3 - 0
FreeAPS/Sources/Localizations/Main/de.lproj/Localizable.strings

@@ -335,6 +335,9 @@ Enact a temp Basal or a temp target */
 /**/
 "Use local glucose server" = "Lokalen BZ-Server verwenden";
 
+/* Enable Statistics */
+"This enables uploading of statistics.json to Nightscout, which can be used by the Community Statistics and Demographics Project.\n\nParticipation in Community Statistics is opt-in, and requires separate registration at:\n" = "This enables uploading of statistics.json to Nightscout, which can be used by the Community Statistics and Demographics Project.\n\nParticipation in Community Statistics is opt-in, and requires separate registration at:\n";
+
 /*  */
 "Edit settings json" = "Einstellungen bearbeiten json";
 

+ 3 - 0
FreeAPS/Sources/Localizations/Main/el.lproj/Localizable.strings

@@ -249,6 +249,9 @@
 /**/
 "Use local glucose server" = "Use local glucose server";
 
+/* Enable Statistics */
+"This enables uploading of statistics.json to Nightscout, which can be used by the Community Statistics and Demographics Project.\n\nParticipation in Community Statistics is opt-in, and requires separate registration at:\n" = "This enables uploading of statistics.json to Nightscout, which can be used by the Community Statistics and Demographics Project.\n\nParticipation in Community Statistics is opt-in, and requires separate registration at:\n";
+
 /*  */
 "Edit settings json" = "Edit settings json";
 

+ 3 - 0
FreeAPS/Sources/Localizations/Main/en.lproj/Localizable.strings

@@ -335,6 +335,9 @@ Enact a temp Basal or a temp target */
 /**/
 "Use local glucose server" = "Use local glucose server";
 
+/* Enable Statistics */
+"This enables uploading of statistics.json to Nightscout, which can be used by the Community Statistics and Demographics Project.\n\nParticipation in Community Statistics is opt-in, and requires separate registration at:\n" = "This enables uploading of statistics.json to Nightscout, which can be used by the Community Statistics and Demographics Project.\n\nParticipation in Community Statistics is opt-in, and requires separate registration at:\n";
+
 /*  */
 "Edit settings json" = "Edit settings json";
 

+ 3 - 0
FreeAPS/Sources/Localizations/Main/es.lproj/Localizable.strings

@@ -335,6 +335,9 @@ Enact a temp Basal or a temp target */
 /**/
 "Use local glucose server" = "Usar servidor local de glucosa";
 
+/* Enable Statistics */
+"This enables uploading of statistics.json to Nightscout, which can be used by the Community Statistics and Demographics Project.\n\nParticipation in Community Statistics is opt-in, and requires separate registration at:\n" = "This enables uploading of statistics.json to Nightscout, which can be used by the Community Statistics and Demographics Project.\n\nParticipation in Community Statistics is opt-in, and requires separate registration at:\n";
+
 /*  */
 "Edit settings json" = "Editar configuración json";
 

+ 3 - 0
FreeAPS/Sources/Localizations/Main/fi.lproj/Localizable.strings

@@ -335,6 +335,9 @@ Enact a temp Basal or a temp target */
 /**/
 "Use local glucose server" = "Use local glucose server";
 
+/* Enable Statistics */
+"This enables uploading of statistics.json to Nightscout, which can be used by the Community Statistics and Demographics Project.\n\nParticipation in Community Statistics is opt-in, and requires separate registration at:\n" = "This enables uploading of statistics.json to Nightscout, which can be used by the Community Statistics and Demographics Project.\n\nParticipation in Community Statistics is opt-in, and requires separate registration at:\n";
+
 /*  */
 "Edit settings json" = "Edit settings json";
 

+ 3 - 0
FreeAPS/Sources/Localizations/Main/fr.lproj/Localizable.strings

@@ -335,6 +335,9 @@ Enact a temp Basal or a temp target */
 /**/
 "Use local glucose server" = "Utiliser le serveur de glucose local";
 
+/* Enable Statistics */
+"This enables uploading of statistics.json to Nightscout, which can be used by the Community Statistics and Demographics Project.\n\nParticipation in Community Statistics is opt-in, and requires separate registration at:\n" = "This enables uploading of statistics.json to Nightscout, which can be used by the Community Statistics and Demographics Project.\n\nParticipation in Community Statistics is opt-in, and requires separate registration at:\n";
+
 /*  */
 "Edit settings json" = "Modifier les paramètres json";
 

+ 3 - 0
FreeAPS/Sources/Localizations/Main/he.lproj/Localizable.strings

@@ -335,6 +335,9 @@ Enact a temp Basal or a temp target */
 /**/
 "Use local glucose server" = "Use local glucose server";
 
+/* Enable Statistics */
+"This enables uploading of statistics.json to Nightscout, which can be used by the Community Statistics and Demographics Project.\n\nParticipation in Community Statistics is opt-in, and requires separate registration at:\n" = "This enables uploading of statistics.json to Nightscout, which can be used by the Community Statistics and Demographics Project.\n\nParticipation in Community Statistics is opt-in, and requires separate registration at:\n";
+
 /*  */
 "Edit settings json" = "Edit settings json";
 

+ 3 - 0
FreeAPS/Sources/Localizations/Main/it.lproj/Localizable.strings

@@ -335,6 +335,9 @@ Enact a temp Basal or a temp target */
 /**/
 "Use local glucose server" = "Usa server locale come sorgente glicemia";
 
+/* Enable Statistics */
+"This enables uploading of statistics.json to Nightscout, which can be used by the Community Statistics and Demographics Project.\n\nParticipation in Community Statistics is opt-in, and requires separate registration at:\n" = "This enables uploading of statistics.json to Nightscout, which can be used by the Community Statistics and Demographics Project.\n\nParticipation in Community Statistics is opt-in, and requires separate registration at:\n";
+
 /*  */
 "Edit settings json" = "Modifica impostazioni json";
 

+ 3 - 0
FreeAPS/Sources/Localizations/Main/nb.lproj/Localizable.strings

@@ -335,6 +335,9 @@ Enact a temp Basal or a temp target */
 /**/
 "Use local glucose server" = "Bruk lokal glukoseserver";
 
+/* Enable Statistics */
+"This enables uploading of statistics.json to Nightscout, which can be used by the Community Statistics and Demographics Project.\n\nParticipation in Community Statistics is opt-in, and requires separate registration at:\n" = "This enables uploading of statistics.json to Nightscout, which can be used by the Community Statistics and Demographics Project.\n\nParticipation in Community Statistics is opt-in, and requires separate registration at:\n";
+
 /*  */
 "Edit settings json" = "Rediger \"freeaps_settings.json\"";
 

+ 3 - 0
FreeAPS/Sources/Localizations/Main/nl.lproj/Localizable.strings

@@ -335,6 +335,9 @@ Enact a temp Basal or a temp target */
 /**/
 "Use local glucose server" = "Lokale glucose server gebruiken";
 
+/* Enable Statistics */
+"This enables uploading of statistics.json to Nightscout, which can be used by the Community Statistics and Demographics Project.\n\nParticipation in Community Statistics is opt-in, and requires separate registration at:\n" = "This enables uploading of statistics.json to Nightscout, which can be used by the Community Statistics and Demographics Project.\n\nParticipation in Community Statistics is opt-in, and requires separate registration at:\n";
+
 /*  */
 "Edit settings json" = "Bewerk instellingen json";
 

+ 3 - 0
FreeAPS/Sources/Localizations/Main/pl.lproj/Localizable.strings

@@ -337,6 +337,9 @@ Połączono z Nightscout!";
 /**/
 "Use local glucose server" = "Use local glucose server";
 
+/* Enable Statistics */
+"This enables uploading of statistics.json to Nightscout, which can be used by the Community Statistics and Demographics Project.\n\nParticipation in Community Statistics is opt-in, and requires separate registration at:\n" = "This enables uploading of statistics.json to Nightscout, which can be used by the Community Statistics and Demographics Project.\n\nParticipation in Community Statistics is opt-in, and requires separate registration at:\n";
+
 /*  */
 "Edit settings json" = "Edit settings json";
 

+ 3 - 0
FreeAPS/Sources/Localizations/Main/pt-BR.lproj/Localizable.strings

@@ -335,6 +335,9 @@ Enact a temp Basal or a temp target */
 /**/
 "Use local glucose server" = "Usar servidor de glicose local";
 
+/* Enable Statistics */
+"This enables uploading of statistics.json to Nightscout, which can be used by the Community Statistics and Demographics Project.\n\nParticipation in Community Statistics is opt-in, and requires separate registration at:\n" = "This enables uploading of statistics.json to Nightscout, which can be used by the Community Statistics and Demographics Project.\n\nParticipation in Community Statistics is opt-in, and requires separate registration at:\n";
+
 /*  */
 "Edit settings json" = "Editar json de configurações";
 

+ 3 - 0
FreeAPS/Sources/Localizations/Main/pt-PT.lproj/Localizable.strings

@@ -335,6 +335,9 @@ Enact a temp Basal or a temp target */
 /**/
 "Use local glucose server" = "Usar servidor de glicose local";
 
+/* Enable Statistics */
+"This enables uploading of statistics.json to Nightscout, which can be used by the Community Statistics and Demographics Project.\n\nParticipation in Community Statistics is opt-in, and requires separate registration at:\n" = "This enables uploading of statistics.json to Nightscout, which can be used by the Community Statistics and Demographics Project.\n\nParticipation in Community Statistics is opt-in, and requires separate registration at:\n";
+
 /*  */
 "Edit settings json" = "Editar json de configurações";
 

+ 3 - 0
FreeAPS/Sources/Localizations/Main/pt.lproj/Localizable.strings

@@ -254,6 +254,9 @@ Enact a temp Basal or a temp target */
 /**/
 "Use local glucose server" = "Use local glucose server";
 
+/* Enable Statistics */
+"This enables uploading of statistics.json to Nightscout, which can be used by the Community Statistics and Demographics Project.\n\nParticipation in Community Statistics is opt-in, and requires separate registration at:\n" = "This enables uploading of statistics.json to Nightscout, which can be used by the Community Statistics and Demographics Project.\n\nParticipation in Community Statistics is opt-in, and requires separate registration at:\n";
+
 /*  */
 "Edit settings json" = "Edit settings json";
 

+ 3 - 0
FreeAPS/Sources/Localizations/Main/ru.lproj/Localizable.strings

@@ -335,6 +335,9 @@ Enact a temp Basal or a temp target */
 /**/
 "Use local glucose server" = "Использовать локальный сервер глюкозы";
 
+/* Enable Statistics */
+"This enables uploading of statistics.json to Nightscout, which can be used by the Community Statistics and Demographics Project.\n\nParticipation in Community Statistics is opt-in, and requires separate registration at:\n" = "This enables uploading of statistics.json to Nightscout, which can be used by the Community Statistics and Demographics Project.\n\nParticipation in Community Statistics is opt-in, and requires separate registration at:\n";
+
 /*  */
 "Edit settings json" = "Редактировать json настроек";
 

+ 3 - 0
FreeAPS/Sources/Localizations/Main/sk.lproj/Localizable.strings

@@ -335,6 +335,9 @@ Enact a temp Basal or a temp target */
 /**/
 "Use local glucose server" = "Use local glucose server";
 
+/* Enable Statistics */
+"This enables uploading of statistics.json to Nightscout, which can be used by the Community Statistics and Demographics Project.\n\nParticipation in Community Statistics is opt-in, and requires separate registration at:\n" = "This enables uploading of statistics.json to Nightscout, which can be used by the Community Statistics and Demographics Project.\n\nParticipation in Community Statistics is opt-in, and requires separate registration at:\n";
+
 /*  */
 "Edit settings json" = "Edit settings json";
 

+ 3 - 0
FreeAPS/Sources/Localizations/Main/sv.lproj/Localizable.strings

@@ -335,6 +335,9 @@ Enact a temp Basal or a temp target */
 /**/
 "Use local glucose server" = "Använd lokal server som glukoskälla";
 
+/* Enable Statistics */
+"This enables uploading of statistics.json to Nightscout, which can be used by the Community Statistics and Demographics Project.\n\nParticipation in Community Statistics is opt-in, and requires separate registration at:\n" = "This enables uploading of statistics.json to Nightscout, which can be used by the Community Statistics and Demographics Project.\n\nParticipation in Community Statistics is opt-in, and requires separate registration at:\n";
+
 /*  */
 "Edit settings json" = "Ändra debug-inställningar";
 

+ 3 - 0
FreeAPS/Sources/Localizations/Main/tr.lproj/Localizable.strings

@@ -335,6 +335,9 @@ Enact a temp Basal or a temp target */
 /**/
 "Use local glucose server" = "Yerel glikoz sunucusu kullan";
 
+/* Enable Statistics */
+"This enables uploading of statistics.json to Nightscout, which can be used by the Community Statistics and Demographics Project.\n\nParticipation in Community Statistics is opt-in, and requires separate registration at:\n" = "This enables uploading of statistics.json to Nightscout, which can be used by the Community Statistics and Demographics Project.\n\nParticipation in Community Statistics is opt-in, and requires separate registration at:\n";
+
 /*  */
 "Edit settings json" = "Json ayarlarını düzenle";
 

+ 3 - 0
FreeAPS/Sources/Localizations/Main/uk.lproj/Localizable.strings

@@ -335,6 +335,9 @@ Enact a temp Basal or a temp target */
 /**/
 "Use local glucose server" = "Використовувати локальний сервер";
 
+/* Enable Statistics */
+"This enables uploading of statistics.json to Nightscout, which can be used by the Community Statistics and Demographics Project.\n\nParticipation in Community Statistics is opt-in, and requires separate registration at:\n" = "This enables uploading of statistics.json to Nightscout, which can be used by the Community Statistics and Demographics Project.\n\nParticipation in Community Statistics is opt-in, and requires separate registration at:\n";
+
 /*  */
 "Edit settings json" = "Редагувати json налаштувань";
 

+ 3 - 0
FreeAPS/Sources/Localizations/Main/zh-Hans.lproj/Localizable.strings

@@ -335,6 +335,9 @@ Enact a temp Basal or a temp target */
 /**/
 "Use local glucose server" = "使用本地端口获取血糖";
 
+/* Enable Statistics */
+"This enables uploading of statistics.json to Nightscout, which can be used by the Community Statistics and Demographics Project.\n\nParticipation in Community Statistics is opt-in, and requires separate registration at:\n" = "This enables uploading of statistics.json to Nightscout, which can be used by the Community Statistics and Demographics Project.\n\nParticipation in Community Statistics is opt-in, and requires separate registration at:\n";
+
 /*  */
 "Edit settings json" = "编辑设置文件";
 

+ 15 - 0
FreeAPS/Sources/Modules/NightscoutConfig/View/NightscoutConfigRootView.swift

@@ -58,6 +58,21 @@ extension NightscoutConfig {
                     Toggle("Upload", isOn: $state.isUploadEnabled)
                     if state.isUploadEnabled {
                         Toggle("Statistics", isOn: $state.uploadStats)
+                        HStack(alignment: .top) {
+                            Image(systemName: "pencil.circle.fill")
+                            VStack {
+                                Text(
+                                    "This enables uploading of statistics.json to Nightscout, which can be used by the Community Statistics and Demographics Project.\n\nParticipation in Community Statistics is opt-in, and requires separate registration at:\n"
+                                )
+                                .font(.caption)
+                                Text(
+                                    "https://iaps-stats.hub.org"
+                                )
+                                .font(.caption)
+                                .multilineTextAlignment(.center)
+                            }
+                        }
+                        .foregroundColor(Color.secondary)
                         Toggle("Glucose", isOn: $state.uploadGlucose)
                     }
                 } header: {