From 538779991ed4c4066a428f0a3b444fa04a95b64e Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Wed, 19 Feb 2020 14:37:47 +0100 Subject: [PATCH] [netinstall] Add some "standard" sidebar labels for the module --- src/modules/netinstall/NetInstallViewStep.cpp | 14 +++++++++++++- src/modules/netinstall/netinstall.conf | 5 +++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/src/modules/netinstall/NetInstallViewStep.cpp b/src/modules/netinstall/NetInstallViewStep.cpp index 6c26061a7..8de3fd74f 100644 --- a/src/modules/netinstall/NetInstallViewStep.cpp +++ b/src/modules/netinstall/NetInstallViewStep.cpp @@ -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() ) ); } } diff --git a/src/modules/netinstall/netinstall.conf b/src/modules/netinstall/netinstall.conf index 188642683..5f90fec76 100644 --- a/src/modules/netinstall/netinstall.conf +++ b/src/modules/netinstall/netinstall.conf @@ -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"