[locale] Fully replace message of timezone.

Since we need to break translations anyway (it was missing a "."),
do the right thing with the zone-name.
This commit is contained in:
Adriaan de Groot 2024-09-06 14:24:15 +02:00
parent 0ad97beed5
commit d72df37333

View File

@ -378,12 +378,7 @@ Config::currentLocationStatus() const
{ {
if ( m_currentLocation ) if ( m_currentLocation )
{ {
// See currentTimezoneName() which constructs the name with / return tr( "Set timezone to %1.", "@action" ).arg( currentTimezoneName());
const auto region = m_regionModel->translated( m_currentLocation->region() );
const auto zone = m_currentLocation->translated();
// TODO: 3.4 Use currentTimezoneName() and drop /%2
return tr( "Set timezone to %1/%2", "@action" ).arg( region, zone );
} }
return QString(); return QString();
} }