i18n: inglese come lingua di default (era 'system'); copertura catalogo IT completa (Astro -> Sole e Luna)
This commit is contained in:
@@ -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
|
||||
height at a given point
|
||||
- **Moon phase and sunrise/sunset** computed
|
||||
- **Italian and English** (language selector in settings, applied on app
|
||||
restart; `.qm` catalogue in the app data dir)
|
||||
- **English by default, Italian and English** (language selector in settings:
|
||||
English / Italiano / System; `.qm` catalogue in the app data dir)
|
||||
- **Saved preferences**: language, preferred port (opened at startup and
|
||||
shown on the cover), unit (m/ft), chart range
|
||||
|
||||
|
||||
+3
-1
@@ -8,7 +8,9 @@ Settings::Settings(QObject *parent)
|
||||
|
||||
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)
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@
|
||||
#include <QSettings>
|
||||
|
||||
// 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)
|
||||
// preferredLat/Lon coordinate del preferito se è un comune (custom)
|
||||
// unit "m" | "ft"
|
||||
|
||||
@@ -35,6 +35,7 @@
|
||||
<message><source>Low</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>Astro</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>(solar time)</source><translation type="unfinished"></translation></message>
|
||||
|
||||
@@ -35,6 +35,7 @@
|
||||
<message><source>Low</source><translation>Bassa</translation></message>
|
||||
<message><source>Moon</source><translation>Luna</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>age %1 d</source><translation>età %1 g</translation></message>
|
||||
<message><source>(solar time)</source><translation>(ora solare)</translation></message>
|
||||
|
||||
Reference in New Issue
Block a user