[netinstall] Add some "standard" sidebar labels for the module
This commit is contained in:
parent
81752b6f7c
commit
538779991e
@ -55,6 +55,17 @@ QString
|
||||
NetInstallViewStep::prettyName() const
|
||||
{
|
||||
return m_sidebarLabel ? m_sidebarLabel->get() : tr( "Package selection" );
|
||||
|
||||
// This is a table of "standard" labels for this module. If you use them
|
||||
// in the label: sidebar: section of the config file, the existing
|
||||
// translations can be used.
|
||||
NOTREACHED
|
||||
tr( "Package selection" );
|
||||
tr( "Office software" );
|
||||
tr( "Office package" );
|
||||
tr( "Browser software" );
|
||||
tr( "Browser package" );
|
||||
tr( "Web browser" );
|
||||
}
|
||||
|
||||
|
||||
@ -203,6 +214,7 @@ NetInstallViewStep::setConfigurationMap( const QVariantMap& configurationMap )
|
||||
}
|
||||
if ( label.contains( "title" ) )
|
||||
{
|
||||
m_widget->setPageTitle( new CalamaresUtils::Locale::TranslatedString( label, "title", metaObject()->className() ) );
|
||||
m_widget->setPageTitle(
|
||||
new CalamaresUtils::Locale::TranslatedString( label, "title", metaObject()->className() ) );
|
||||
}
|
||||
}
|
||||
|
@ -36,6 +36,11 @@ required: false
|
||||
# without bothering with the translations: they are picked up from
|
||||
# the regular translation framework:
|
||||
# - "Package selection"
|
||||
# - "Office software"
|
||||
# - "Office package"
|
||||
# - "Browser software"
|
||||
# - "Browser package"
|
||||
# - "Web browser"
|
||||
label:
|
||||
sidebar: "Package selection"
|
||||
# sidebar[nl]: "Pakketkeuze"
|
||||
|
Loading…
Reference in New Issue
Block a user