[netinstall] Add some "standard" sidebar labels for the module

main
Adriaan de Groot 5 years ago
parent 81752b6f7c
commit 538779991e

@ -55,6 +55,17 @@ QString
NetInstallViewStep::prettyName() const NetInstallViewStep::prettyName() const
{ {
return m_sidebarLabel ? m_sidebarLabel->get() : tr( "Package selection" ); 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" ) ) 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 # without bothering with the translations: they are picked up from
# the regular translation framework: # the regular translation framework:
# - "Package selection" # - "Package selection"
# - "Office software"
# - "Office package"
# - "Browser software"
# - "Browser package"
# - "Web browser"
label: label:
sidebar: "Package selection" sidebar: "Package selection"
# sidebar[nl]: "Pakketkeuze" # sidebar[nl]: "Pakketkeuze"

Loading…
Cancel
Save