i18n: inglese come lingua di default (era 'system'); copertura catalogo IT completa (Astro -> Sole e Luna)

This commit is contained in:
2026-09-02 12:43:05 +02:00
parent 9765250531
commit a246c8db12
5 changed files with 8 additions and 4 deletions
+2 -2
View File
@@ -16,8 +16,8 @@ local harmonic engine (no tide API: offline computation, forever).
- **24/48/72 h chart** with high/low tides marked with times, tap for the - **24/48/72 h chart** with high/low tides marked with times, tap for the
height at a given point height at a given point
- **Moon phase and sunrise/sunset** computed - **Moon phase and sunrise/sunset** computed
- **Italian and English** (language selector in settings, applied on app - **English by default, Italian and English** (language selector in settings:
restart; `.qm` catalogue in the app data dir) English / Italiano / System; `.qm` catalogue in the app data dir)
- **Saved preferences**: language, preferred port (opened at startup and - **Saved preferences**: language, preferred port (opened at startup and
shown on the cover), unit (m/ft), chart range shown on the cover), unit (m/ft), chart range
+3 -1
View File
@@ -8,7 +8,9 @@ Settings::Settings(QObject *parent)
QString Settings::language() const QString Settings::language() const
{ {
return m_settings.value(QStringLiteral("language"), QStringLiteral("system")).toString(); // default: inglese (stringhe sorgente). "system" segue la lingua UI
// Sailfish, "it" usa il catalogo harbour-tide_it.qm
return m_settings.value(QStringLiteral("language"), QStringLiteral("en")).toString();
} }
void Settings::setLanguage(const QString &value) void Settings::setLanguage(const QString &value)
+1 -1
View File
@@ -5,7 +5,7 @@
#include <QSettings> #include <QSettings>
// Preferenze dell'app, persistite in QSettings ("harbour", "tide"): // Preferenze dell'app, persistite in QSettings ("harbour", "tide"):
// language "system" (segue la lingua UI Sailfish) | "en" | "it" // language "en" (default, stringhe sorgente) | "it" | "system"
// preferredPort nome del porto preferito (vuoto = nessuno) // preferredPort nome del porto preferito (vuoto = nessuno)
// preferredLat/Lon coordinate del preferito se è un comune (custom) // preferredLat/Lon coordinate del preferito se è un comune (custom)
// unit "m" | "ft" // unit "m" | "ft"
+1
View File
@@ -35,6 +35,7 @@
<message><source>Low</source><translation type="unfinished"></translation></message> <message><source>Low</source><translation type="unfinished"></translation></message>
<message><source>Moon</source><translation type="unfinished"></translation></message> <message><source>Moon</source><translation type="unfinished"></translation></message>
<message><source>Sunrise / sunset</source><translation type="unfinished"></translation></message> <message><source>Sunrise / sunset</source><translation type="unfinished"></translation></message>
<message><source>Astro</source><translation type="unfinished"></translation></message>
<message><source>Typical range</source><translation type="unfinished"></translation></message> <message><source>Typical range</source><translation type="unfinished"></translation></message>
<message><source>age %1 d</source><translation type="unfinished"></translation></message> <message><source>age %1 d</source><translation type="unfinished"></translation></message>
<message><source>(solar time)</source><translation type="unfinished"></translation></message> <message><source>(solar time)</source><translation type="unfinished"></translation></message>
+1
View File
@@ -35,6 +35,7 @@
<message><source>Low</source><translation>Bassa</translation></message> <message><source>Low</source><translation>Bassa</translation></message>
<message><source>Moon</source><translation>Luna</translation></message> <message><source>Moon</source><translation>Luna</translation></message>
<message><source>Sunrise / sunset</source><translation>Alba / tramonto</translation></message> <message><source>Sunrise / sunset</source><translation>Alba / tramonto</translation></message>
<message><source>Astro</source><translation>Sole e Luna</translation></message>
<message><source>Typical range</source><translation>Escursione tipica</translation></message> <message><source>Typical range</source><translation>Escursione tipica</translation></message>
<message><source>age %1 d</source><translation>età %1 g</translation></message> <message><source>age %1 d</source><translation>età %1 g</translation></message>
<message><source>(solar time)</source><translation>(ora solare)</translation></message> <message><source>(solar time)</source><translation>(ora solare)</translation></message>