[netinstall] Configurable name in the sidebar
This commit is contained in:
parent
be567dc508
commit
45c15de623
@ -173,6 +173,12 @@ NetInstallViewStep::onLeave()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
NetInstallViewStep::nextIsReady( bool b )
|
||||||
|
{
|
||||||
|
m_nextEnabled = b;
|
||||||
|
emit nextStatusChanged( b );
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
NetInstallViewStep::setConfigurationMap( const QVariantMap& configurationMap )
|
NetInstallViewStep::setConfigurationMap( const QVariantMap& configurationMap )
|
||||||
@ -187,11 +193,16 @@ NetInstallViewStep::setConfigurationMap( const QVariantMap& configurationMap )
|
|||||||
Calamares::JobQueue::instance()->globalStorage()->insert( "groupsUrl", groupsUrl );
|
Calamares::JobQueue::instance()->globalStorage()->insert( "groupsUrl", groupsUrl );
|
||||||
m_widget->loadGroupList( groupsUrl );
|
m_widget->loadGroupList( groupsUrl );
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
void
|
bool bogus = false;
|
||||||
NetInstallViewStep::nextIsReady( bool b )
|
auto label = CalamaresUtils::getSubMap( configurationMap, "label", bogus );
|
||||||
{
|
|
||||||
m_nextEnabled = b;
|
if ( label.contains( "sidebar" ) )
|
||||||
emit nextStatusChanged( b );
|
{
|
||||||
|
m_sidebarLabel = new CalamaresUtils::Locale::TranslatedString( label, "sidebar" );
|
||||||
|
}
|
||||||
|
if ( label.contains( "title" ) )
|
||||||
|
{
|
||||||
|
// Set that label on the page
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -21,3 +21,17 @@
|
|||||||
# This only has an effect if the netinstall data cannot be retrieved,
|
# This only has an effect if the netinstall data cannot be retrieved,
|
||||||
# or is corrupt: having "required" set, means the install cannot proceed.
|
# or is corrupt: having "required" set, means the install cannot proceed.
|
||||||
required: false
|
required: false
|
||||||
|
|
||||||
|
# To support multiple instances of this module,
|
||||||
|
# some strings are configurable and translatable here.
|
||||||
|
# - *sidebar* This is the name of the module in the progress-tree / sidebar
|
||||||
|
# in Calamares.
|
||||||
|
# - *title* This is displayed above the list of packages.
|
||||||
|
# If no *sidebar* values are provided, defaults to "Package selection"
|
||||||
|
# and existing translations. If no *title* values are provided, no string
|
||||||
|
# is displayed.
|
||||||
|
label:
|
||||||
|
sidebar: "Package selection"
|
||||||
|
sidebar[nl]: "Pakketkeuze"
|
||||||
|
title: "Office Package"
|
||||||
|
title[nl]: "Kantoorsoftware"
|
||||||
|
Loading…
Reference in New Issue
Block a user