diff --git a/src/libcalamaresui/ViewManager.cpp b/src/libcalamaresui/ViewManager.cpp
index 2cd7a9fc5..10c1955e7 100644
--- a/src/libcalamaresui/ViewManager.cpp
+++ b/src/libcalamaresui/ViewManager.cpp
@@ -153,10 +153,10 @@ ViewManager::onInstallationFailed( const QString& message, const QString& detail
cDebug() << Logger::SubEntry << "- details:" << Logger::NoQuote << details;
QString heading
- = Calamares::Settings::instance()->isSetupMode() ? tr( "Setup Failed" ) : tr( "Installation Failed" );
+ = Calamares::Settings::instance()->isSetupMode() ? tr( "Setup Failed", "@title" ) : tr( "Installation Failed", "@title" );
ErrorDialog* errorDialog = new ErrorDialog();
- errorDialog->setWindowTitle( tr( "Error" ) );
+ errorDialog->setWindowTitle( tr( "Error", "@title" ) );
errorDialog->setHeading( "" + heading + "" );
errorDialog->setInformativeText( message );
errorDialog->setShouldOfferWebPaste( Calamares::Branding::instance()->uploadServer() );
@@ -181,14 +181,14 @@ ViewManager::onInitFailed( const QStringList& modules )
{
// Because this means the installer / setup program is broken by the distributor,
// don't bother being precise about installer / setup wording.
- QString title( tr( "Calamares Initialization Failed" ) );
+ QString title( tr( "Calamares Initialization Failed", "@title" ) );
QString description( tr( "%1 can not be installed. Calamares was unable to load all of the configured modules. "
- "This is a problem with the way Calamares is being used by the distribution." ) );
+ "This is a problem with the way Calamares is being used by the distribution.", "@info" ) );
QString detailString;
if ( modules.count() > 0 )
{
- description.append( tr( "
The following modules could not be loaded:" ) );
+ description.append( tr( "
The following modules could not be loaded:", "@info" ) );
QStringList details;
details << QLatin1String( "
" );
for ( const auto& m : modules )
@@ -330,22 +330,22 @@ ViewManager::next()
if ( settings->showPromptBeforeExecution() && stepIsExecute( m_steps, m_currentStep + 1 ) )
{
QString title
- = settings->isSetupMode() ? tr( "Continue with setup?" ) : tr( "Continue with installation?" );
+ = settings->isSetupMode() ? tr( "Continue with Setup?", "@title" ) : tr( "Continue with Installation?", "@title" );
QString question = settings->isSetupMode()
? tr( "The %1 setup program is about to make changes to your "
"disk in order to set up %2.
You will not be able "
- "to undo these changes." )
+ "to undo these changes.", "%1 is short product name, %2 is short product name with version" )
: tr( "The %1 installer is about to make changes to your "
"disk in order to install %2.
You will not be able "
- "to undo these changes." );
- QString confirm = settings->isSetupMode() ? tr( "&Set up now" ) : tr( "&Install now" );
+ "to undo these changes.", "%1 is short product name, %2 is short product name with version" );
+ QString confirm = settings->isSetupMode() ? tr( "&Set Up Now", "@button" ) : tr( "&Install Now", "@button" );
const auto* branding = Calamares::Branding::instance();
int reply = questionBox( m_widget,
title,
question.arg( branding->shortProductName(), branding->shortVersionedName() ),
confirm,
- tr( "Go &back" ) );
+ tr( "Go &Back", "@button" ) );
if ( reply == 1 )
{
return;
@@ -392,13 +392,13 @@ ViewManager::updateButtonLabels()
{
const auto* const settings = Calamares::Settings::instance();
- QString nextIsInstallationStep = settings->isSetupMode() ? tr( "&Set up" ) : tr( "&Install" );
+ QString nextIsInstallationStep = settings->isSetupMode() ? tr( "&Set Up", "@button" ) : tr( "&Install", "@button" );
QString quitOnCompleteTooltip = settings->isSetupMode()
- ? tr( "Setup is complete. Close the setup program." )
- : tr( "The installation is complete. Close the installer." );
+ ? tr( "Setup is complete. Close the setup program.", "@tooltip" )
+ : tr( "The installation is complete. Close the installer.", "@tooltip" );
QString cancelBeforeInstallationTooltip = settings->isSetupMode()
- ? tr( "Cancel setup without changing the system." )
- : tr( "Cancel installation without changing the system." );
+ ? tr( "Cancel the setup process without changing the system.", "@tooltip" )
+ : tr( "Cancel the installation process without changing the system.", "@tooltip" );
// If we're going into the execution step / install phase, other message
if ( stepIsExecute( m_steps, m_currentStep + 1 ) )
@@ -408,18 +408,18 @@ ViewManager::updateButtonLabels()
}
else
{
- UPDATE_BUTTON_PROPERTY( nextLabel, tr( "&Next" ) );
+ UPDATE_BUTTON_PROPERTY( nextLabel, tr( "&Next", "@button" ) );
UPDATE_BUTTON_PROPERTY( nextIcon, "go-next" );
}
// Going back is always simple
- UPDATE_BUTTON_PROPERTY( backLabel, tr( "&Back" ) );
+ UPDATE_BUTTON_PROPERTY( backLabel, tr( "&Back", "@button" ) );
UPDATE_BUTTON_PROPERTY( backIcon, "go-previous" );
// Cancel button changes label at the end
if ( isAtVeryEnd( m_steps, m_currentStep ) )
{
- UPDATE_BUTTON_PROPERTY( quitLabel, tr( "&Done" ) );
+ UPDATE_BUTTON_PROPERTY( quitLabel, tr( "&Done", "@button" ) );
UPDATE_BUTTON_PROPERTY( quitTooltip, quitOnCompleteTooltip );
UPDATE_BUTTON_PROPERTY( quitVisible, true );
UPDATE_BUTTON_PROPERTY( quitIcon, "dialog-ok-apply" );
@@ -438,7 +438,7 @@ ViewManager::updateButtonLabels()
updateCancelEnabled( !settings->disableCancel()
&& !( stepIsExecute( m_steps, m_currentStep ) && settings->disableCancelDuringExec() ) );
- UPDATE_BUTTON_PROPERTY( quitLabel, tr( "&Cancel" ) );
+ UPDATE_BUTTON_PROPERTY( quitLabel, tr( "&Cancel", "@button" ) );
UPDATE_BUTTON_PROPERTY( quitTooltip, cancelBeforeInstallationTooltip );
UPDATE_BUTTON_PROPERTY( quitIcon, "dialog-cancel" );
}
@@ -510,7 +510,7 @@ ViewManager::confirmCancelInstallation()
}
// Otherwise, confirm cancel/quit.
- QString title = settings->isSetupMode() ? tr( "Cancel setup?" ) : tr( "Cancel installation?" );
+ QString title = settings->isSetupMode() ? tr( "Cancel Setup?", "@title" ) : tr( "Cancel Installation?", "@title" );
QString question = settings->isSetupMode() ? tr( "Do you really want to cancel the current setup process?\n"
"The setup program will quit and all changes will be lost." )
: tr( "Do you really want to cancel the current install process?\n"
diff --git a/src/libcalamaresui/viewpages/ExecutionViewStep.cpp b/src/libcalamaresui/viewpages/ExecutionViewStep.cpp
index 4f0e586ac..80301a5da 100644
--- a/src/libcalamaresui/viewpages/ExecutionViewStep.cpp
+++ b/src/libcalamaresui/viewpages/ExecutionViewStep.cpp
@@ -113,7 +113,7 @@ ExecutionViewStep::ExecutionViewStep( QObject* parent )
QString
ExecutionViewStep::prettyName() const
{
- return Calamares::Settings::instance()->isSetupMode() ? tr( "Set up" ) : tr( "Install" );
+ return Calamares::Settings::instance()->isSetupMode() ? tr( "Set Up", "@label" ) : tr( "Install", "@label" );
}
QWidget*
diff --git a/src/libcalamaresui/viewpages/QmlViewStep.cpp b/src/libcalamaresui/viewpages/QmlViewStep.cpp
index d96e65eaf..115a92da5 100644
--- a/src/libcalamaresui/viewpages/QmlViewStep.cpp
+++ b/src/libcalamaresui/viewpages/QmlViewStep.cpp
@@ -70,7 +70,7 @@ namespace Calamares
QmlViewStep::QmlViewStep( QObject* parent )
: ViewStep( parent )
, m_widget( new QWidget )
- , m_spinner( new WaitingWidget( tr( "Loading ..." ) ) )
+ , m_spinner( new WaitingWidget( tr( "Loading…", "@status" ) ) )
{
Calamares::registerQmlModels();
@@ -97,7 +97,7 @@ QString
QmlViewStep::prettyName() const
{
// TODO: query the QML itself
- return tr( "QML Step %1." ).arg( moduleInstanceKey().module() );
+ return tr( "QML step %1.", "@label" ).arg( moduleInstanceKey().module() );
}
bool
@@ -283,7 +283,7 @@ QmlViewStep::showFailedQml()
{
cDebug() << Logger::SubEntry << "QML error:" << m_qmlComponent->errorString();
}
- m_spinner->setText( prettyName() + ' ' + tr( "Loading failed." ) );
+ m_spinner->setText( prettyName() + ' ' + tr( "Loading failed.", "@info" ) );
}
QObject*
diff --git a/src/modules/contextualprocess/ContextualProcessJob.cpp b/src/modules/contextualprocess/ContextualProcessJob.cpp
index 84f9dc69a..08e1599be 100644
--- a/src/modules/contextualprocess/ContextualProcessJob.cpp
+++ b/src/modules/contextualprocess/ContextualProcessJob.cpp
@@ -110,9 +110,9 @@ ContextualProcessJob::~ContextualProcessJob()
}
QString
-ContextualProcessJob::prettyName() const
+CntextualProcessJob::prettyName() const
{
- return tr( "Contextual Processes Job" );
+ return tr( "Performing contextual processes' job…", "@status" );
}
Calamares::JobResult
diff --git a/src/modules/dracutlukscfg/DracutLuksCfgJob.cpp b/src/modules/dracutlukscfg/DracutLuksCfgJob.cpp
index 8a61420ca..6bc87e2c4 100644
--- a/src/modules/dracutlukscfg/DracutLuksCfgJob.cpp
+++ b/src/modules/dracutlukscfg/DracutLuksCfgJob.cpp
@@ -114,11 +114,11 @@ DracutLuksCfgJob::prettyName() const
{
if ( isRootEncrypted() )
{
- return tr( "Write LUKS configuration for Dracut to %1" ).arg( CONFIG_FILE );
+ return tr( "Writing LUKS configuration for Dracut to %1…", "@status" ).arg( CONFIG_FILE );
}
else
{
- return tr( "Skip writing LUKS configuration for Dracut: \"/\" partition is not encrypted" );
+ return tr( "Skipping writing LUKS configuration for Dracut: \"/\" partition is not encrypted", "@info" );
}
}
@@ -135,7 +135,7 @@ DracutLuksCfgJob::exec()
if ( !configFile.open( QIODevice::WriteOnly | QIODevice::Text ) )
{
cDebug() << "[DRACUTLUKSCFG]: Failed to open" << realConfigFilePath;
- return Calamares::JobResult::error( tr( "Failed to open %1" ).arg( realConfigFilePath ) );
+ return Calamares::JobResult::error( tr( "Failed to open %1", "@error" ).arg( realConfigFilePath ) );
}
QTextStream outStream( &configFile );
outStream << CONFIG_FILE_HEADER
diff --git a/src/modules/dummycpp/DummyCppJob.cpp b/src/modules/dummycpp/DummyCppJob.cpp
index d2c411766..ba8e6ce52 100644
--- a/src/modules/dummycpp/DummyCppJob.cpp
+++ b/src/modules/dummycpp/DummyCppJob.cpp
@@ -32,7 +32,7 @@ DummyCppJob::~DummyCppJob() {}
QString
DummyCppJob::prettyName() const
{
- return tr( "Dummy C++ Job" );
+ return tr( "Performing dummy C++ job…", "@status" );
}
static QString variantListToString( const QVariantList& variantList );