From d0420ea3ee1010cc998f3e864f4eb60f1d9daa06 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Sun, 14 Apr 2024 00:20:57 +0200 Subject: [PATCH] [users] Add translation context to AD job --- src/modules/users/ActiveDirectoryJob.cpp | 10 ++-------- src/modules/users/ActiveDirectoryJob.h | 1 - 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/src/modules/users/ActiveDirectoryJob.cpp b/src/modules/users/ActiveDirectoryJob.cpp index 33706c48f..7f24f5931 100644 --- a/src/modules/users/ActiveDirectoryJob.cpp +++ b/src/modules/users/ActiveDirectoryJob.cpp @@ -30,19 +30,13 @@ ActiveDirectoryJob::ActiveDirectoryJob(QStringList& activeDirectoryInfo) QString ActiveDirectoryJob::prettyName() const { - return tr( "Enroll system in Active Directory" ); -} - -QString -ActiveDirectoryJob::prettyDescription() const -{ - return tr( "Enroll system in Active Directory" ); + return tr( "Enroll system in Active Directory", "@label" ); } QString ActiveDirectoryJob::prettyStatusMessage() const { - return tr( "Enrolling system in Active Directory" ); + return tr( "Enrolling system in Active Directory…", "@status" ); } Calamares::JobResult diff --git a/src/modules/users/ActiveDirectoryJob.h b/src/modules/users/ActiveDirectoryJob.h index 8877ef7e1..035c93ae2 100644 --- a/src/modules/users/ActiveDirectoryJob.h +++ b/src/modules/users/ActiveDirectoryJob.h @@ -18,7 +18,6 @@ class ActiveDirectoryJob : public Calamares::Job public: ActiveDirectoryJob( QStringList& activeDirectoryInfo ); QString prettyName() const override; - QString prettyDescription() const override; QString prettyStatusMessage() const override; Calamares::JobResult exec() override;