From d72df37333631d16e28d626638e202ebb6990eda Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Fri, 6 Sep 2024 14:24:15 +0200 Subject: [PATCH] [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. --- src/modules/locale/Config.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/modules/locale/Config.cpp b/src/modules/locale/Config.cpp index 92f38cd5a..b2ef0e890 100644 --- a/src/modules/locale/Config.cpp +++ b/src/modules/locale/Config.cpp @@ -378,12 +378,7 @@ Config::currentLocationStatus() const { if ( m_currentLocation ) { - // See currentTimezoneName() which constructs the name with / - 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 tr( "Set timezone to %1.", "@action" ).arg( currentTimezoneName()); } return QString(); }