[locale] Use human-readable naming for messages
This commit is contained in:
parent
c51fa0e2f1
commit
0ad97beed5
@ -376,9 +376,16 @@ Config::setLCLocaleExplicitly( const QString& locale )
|
|||||||
QString
|
QString
|
||||||
Config::currentLocationStatus() const
|
Config::currentLocationStatus() const
|
||||||
{
|
{
|
||||||
return tr( "Set timezone to %1/%2", "@action" )
|
if ( m_currentLocation )
|
||||||
.arg( m_currentLocation ? m_currentLocation->region() : QString(),
|
{
|
||||||
m_currentLocation ? m_currentLocation->zone() : QString() );
|
// 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 QString();
|
||||||
}
|
}
|
||||||
|
|
||||||
QString
|
QString
|
||||||
|
Loading…
Reference in New Issue
Block a user