diff --git a/src/i18n_de.h b/src/i18n_de.h index 947341c..b67a4e5 100644 --- a/src/i18n_de.h +++ b/src/i18n_de.h @@ -117,7 +117,7 @@ static const char* const I18N_DE[] = { "Nochmal tippen zum Bestätigen!", "Flugbuch-Daten zurückgesetzt.", "Laufzeit: ", - "Höchster Flug heute: ", + "Höchster Flug heute", "Verlauf (letzte 7 Tage)", "Noch keine Flugbuch-Einträge.", "Wie der Verlauf funktioniert", diff --git a/src/i18n_en.h b/src/i18n_en.h index 62b670a..6733bce 100644 --- a/src/i18n_en.h +++ b/src/i18n_en.h @@ -118,7 +118,7 @@ static const char* const I18N_EN[] = { "Tap again to confirm!", "Logbook data reset.", "Uptime: ", - "Highest flight today: ", + "Highest flight today", "History (last 7 days)", "No logbook entries yet.", "How the history chart works", diff --git a/src/i18n_es.h b/src/i18n_es.h index da3556b..7fe54b5 100644 --- a/src/i18n_es.h +++ b/src/i18n_es.h @@ -117,7 +117,7 @@ static const char* const I18N_ES[] = { "¡Toque de nuevo para confirmar!", "Registro reiniciado.", "Tiempo activo: ", - "Vuelo más alto hoy: ", + "Vuelo más alto hoy", "Historial (últimos 7 días)", "Aún no hay registros.", "Cómo funciona el historial", diff --git a/src/i18n_fr.h b/src/i18n_fr.h index 49f6d11..e122583 100644 --- a/src/i18n_fr.h +++ b/src/i18n_fr.h @@ -117,7 +117,7 @@ static const char* const I18N_FR[] = { "Retouchez pour confirmer !", "Journal réinitialisé.", "Durée de fonctionnement : ", - "Vol le plus haut aujourd'hui : ", + "Vol le plus haut aujourd'hui", "Historique (7 derniers jours)", "Aucune entrée pour le moment.", "Comment fonctionne l'historique", diff --git a/src/i18n_it.h b/src/i18n_it.h index e7ad426..c7d7252 100644 --- a/src/i18n_it.h +++ b/src/i18n_it.h @@ -117,7 +117,7 @@ static const char* const I18N_IT[] = { "Tocca di nuovo per confermare!", "Registro reimpostato.", "Tempo di attività: ", - "Volo più alto oggi: ", + "Volo più alto oggi", "Cronologia (ultimi 7 giorni)", "Ancora nessun dato.", "Come funziona la cronologia", diff --git a/src/i18n_tr.h b/src/i18n_tr.h index 7d18ba1..c52d2d5 100644 --- a/src/i18n_tr.h +++ b/src/i18n_tr.h @@ -117,7 +117,7 @@ static const char* const I18N_TR[] = { "Onaylamak için tekrar dokunun!", "Kayıt defteri sıfırlandı.", "Çalışma süresi: ", - "Bugünkü en yüksek uçuş: ", + "Bugünkü en yüksek uçuş", "Geçmiş (son 7 gün)", "Henüz kayıt yok.", "Geçmiş grafiği nasıl çalışır", diff --git a/src/stats_screen.cpp b/src/stats_screen.cpp index cfbd6e5..7758319 100644 --- a/src/stats_screen.cpp +++ b/src/stats_screen.cpp @@ -36,12 +36,12 @@ namespace { constexpr uint32_t CONFIRM_WINDOW_MS = 4000; - constexpr int16_t ROW1_Y = 40; - constexpr int16_t ROW2_Y = 76; - constexpr int16_t ROW3_Y = 112; - constexpr int16_t ROW4_Y = 148; - constexpr int16_t UPTIME_Y = 184; - constexpr int16_t TOP_ALT_Y = 204; // "Hoechster Flug heute" - einzeilig, daher naeher an UPTIME als die anderen Rows + constexpr int16_t ROW1_Y = 38; + constexpr int16_t ROW2_Y = 72; + constexpr int16_t ROW3_Y = 106; + constexpr int16_t ROW4_Y = 140; + constexpr int16_t UPTIME_Y = 174; + constexpr int16_t TOP_ALT_Y = 194; // zweizeilig wie drawStatRow (Label + Wert) } void run(TFT_eSPI& tft) { @@ -100,8 +100,7 @@ void run(TFT_eSPI& tft) { String csign = topAlt.callsign[0] ? String(topAlt.callsign) : "?"; char altBuf[24]; snprintf(altBuf, sizeof(altBuf), "%s (%ld ft)", csign.c_str(), (long)topAlt.altitudeFt); - tft.setCursor(10, TOP_ALT_Y); - tft.print(String(I18n::t(StringId::STATS_TOP_ALTITUDE_PREFIX)) + altBuf); + drawStatRow(tft, TOP_ALT_Y, I18n::t(StringId::STATS_TOP_ALTITUDE_PREFIX), String(altBuf)); } if (confirmPending) {