[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:
parent
0ad97beed5
commit
d72df37333
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user