Skip to content

Fix pop3resource build errors regarding i18n

Claudio Cambra requested to merge work/fix-pop3-resource-build into master

Fixes the following:

/home/claucambra/kde/src/kdepim-runtime/resources/pop3/pop3resource.cpp: In constructor ‘POP3Resource::POP3Resource(const QString&)’:
/home/claucambra/kde/src/kdepim-runtime/resources/pop3/pop3resource.cpp:49:31: error: ‘i18n’ was not declared in this scope
   49 |             mSettings.setName(i18n("POP3 Account"));
      |                               ^~~~
/home/claucambra/kde/src/kdepim-runtime/resources/pop3/pop3resource.cpp: In member function ‘virtual void POP3Resource::aboutToQuit()’:
/home/claucambra/kde/src/kdepim-runtime/resources/pop3/pop3resource.cpp:98:20: error: ‘i18n’ was not declared in this scope
   98 |         cancelSync(i18n("Mail check aborted."));
      |                    ^~~~
/home/claucambra/kde/src/kdepim-runtime/resources/pop3/pop3resource.cpp: In member function ‘void POP3Resource::slotAbortRequested()’:
/home/claucambra/kde/src/kdepim-runtime/resources/pop3/pop3resource.cpp:105:20: error: ‘i18n’ was not declared in this scope
  105 |         cancelSync(i18n("Mail check was canceled manually."), false /* no error */);
      |                    ^~~~
/home/claucambra/kde/src/kdepim-runtime/resources/pop3/pop3resource.cpp: In member function ‘QString POP3Resource::buildLabelForPasswordDialog(const QString&) const’:
/home/claucambra/kde/src/kdepim-runtime/resources/pop3/pop3resource.cpp:133:31: error: ‘i18n’ was not declared in this scope
  133 |     const QString queryText = i18n("Please enter the username and password for account '%1'.", agentName()) + QLatin1String("<br>") + detailedError;
      |                               ^~~~
/home/claucambra/kde/src/kdepim-runtime/resources/pop3/pop3resource.cpp: In member function ‘void POP3Resource::walletOpenedForLoading(QKeychain::Job*)’:
/home/claucambra/kde/src/kdepim-runtime/resources/pop3/pop3resource.cpp:150:63: error: ‘i18n’ was not declared in this scope
  150 |         const QString queryText = buildLabelForPasswordDialog(i18n("You are asked here because the password could not be loaded from the wallet."));
      |                                                               ^~~~
/home/claucambra/kde/src/kdepim-runtime/resources/pop3/pop3resource.cpp: In member function ‘void POP3Resource::showPasswordDialog(const QString&)’:
/home/claucambra/kde/src/kdepim-runtime/resources/pop3/pop3resource.cpp:166:25: error: ‘i18n’ was not declared in this scope
  166 |     dlg->addCommentLine(i18n("Account:"), name());
      |                         ^~~~
/home/claucambra/kde/src/kdepim-runtime/resources/pop3/pop3resource.cpp: In member function ‘void POP3Resource::doStateStep()’:
/home/claucambra/kde/src/kdepim-runtime/resources/pop3/pop3resource.cpp:202:32: error: ‘i18n’ was not declared in this scope
  202 |         Q_EMIT status(Running, i18n("Preparing transmission from \"%1\".", name()));
      |                                ^~~~
/home/claucambra/kde/src/kdepim-runtime/resources/pop3/pop3resource.cpp:223:36: error: ‘i18n’ was not declared in this scope
  223 |             Q_EMIT status(Running, i18n("Executing precommand."));
      |                                    ^~~~
/home/claucambra/kde/src/kdepim-runtime/resources/pop3/pop3resource.cpp:248:26: error: ‘i18n’ was not declared in this scope
  248 |                 detail = i18n("You are asked here because the previous login was not successful.");
      |                          ^~~~
/home/claucambra/kde/src/kdepim-runtime/resources/pop3/pop3resource.cpp:250:26: error: ‘i18n’ was not declared in this scope
  250 |                 detail = i18n("You are asked here because the username you supplied is empty.");
      |                          ^~~~
/home/claucambra/kde/src/kdepim-runtime/resources/pop3/pop3resource.cpp:277:32: error: ‘i18n’ was not declared in this scope
  277 |         Q_EMIT status(Running, i18n("Fetching mail listing."));
      |                                ^~~~
/home/claucambra/kde/src/kdepim-runtime/resources/pop3/pop3resource.cpp:334:36: error: ‘i18n’ was not declared in this scope
  334 |             Q_EMIT status(Running, i18n("Saving downloaded messages."));
      |                                    ^~~~
/home/claucambra/kde/src/kdepim-runtime/resources/pop3/pop3resource.cpp:352:36: error: ‘i18n’ was not declared in this scope
  352 |             Q_EMIT status(Running, i18n("Saving password to the wallet."));
      |                                    ^~~~
/home/claucambra/kde/src/kdepim-runtime/resources/pop3/pop3resource.cpp: In member function ‘void POP3Resource::localFolderRequestJobFinished(KJob*)’:
/home/claucambra/kde/src/kdepim-runtime/resources/pop3/pop3resource.cpp:394:20: error: ‘i18n’ was not declared in this scope
  394 |         cancelSync(i18n("Error while trying to get the local inbox folder, "
      |                    ^~~~
/home/claucambra/kde/src/kdepim-runtime/resources/pop3/pop3resource.cpp:401:34: error: ‘i18n’ was not declared in this scope
  401 |                                  i18n("<qt>The folder you deleted was associated with the account "
      |                                  ^~~~
/home/claucambra/kde/src/kdepim-runtime/resources/pop3/pop3resource.cpp: In member function ‘void POP3Resource::targetCollectionFetchJobFinished(KJob*)’:
/home/claucambra/kde/src/kdepim-runtime/resources/pop3/pop3resource.cpp:422:24: error: ‘i18n’ was not declared in this scope
  422 |             cancelSync(i18n("Error while trying to get the folder for incoming mail, "
      |                        ^~~~
/home/claucambra/kde/src/kdepim-runtime/resources/pop3/pop3resource.cpp:435:20: error: ‘i18n’ was not declared in this scope
  435 |         cancelSync(i18n("Could not find folder for incoming mail, aborting mail check."));
      |                    ^~~~
/home/claucambra/kde/src/kdepim-runtime/resources/pop3/pop3resource.cpp: In member function ‘void POP3Resource::precommandResult(KJob*)’:
/home/claucambra/kde/src/kdepim-runtime/resources/pop3/pop3resource.cpp:446:20: error: ‘i18n’ was not declared in this scope
  446 |         cancelSync(i18n("Error while executing precommand.") + QLatin1Char('\n') + job->errorString());
      |                    ^~~~
/home/claucambra/kde/src/kdepim-runtime/resources/pop3/pop3resource.cpp: In member function ‘void POP3Resource::loginJobResult(KJob*)’:
/home/claucambra/kde/src/kdepim-runtime/resources/pop3/pop3resource.cpp:460:20: error: ‘i18n’ was not declared in this scope
  460 |         cancelSync(i18n("Unable to login to the server \"%1\".", mSettings.host()) + QLatin1Char('\n') + job->errorString());
      |                    ^~~~
/home/claucambra/kde/src/kdepim-runtime/resources/pop3/pop3resource.cpp: In member function ‘void POP3Resource::listJobResult(KJob*)’:
/home/claucambra/kde/src/kdepim-runtime/resources/pop3/pop3resource.cpp:469:20: error: ‘i18n’ was not declared in this scope
  469 |         cancelSync(i18n("Error while getting the list of messages on the server.") + QLatin1Char('\n') + job->errorString());
      |                    ^~~~
/home/claucambra/kde/src/kdepim-runtime/resources/pop3/pop3resource.cpp: In member function ‘void POP3Resource::uidListJobResult(KJob*)’:
/home/claucambra/kde/src/kdepim-runtime/resources/pop3/pop3resource.cpp:483:20: error: ‘i18n’ was not declared in this scope
  483 |         cancelSync(i18n("Error while getting list of unique mail identifiers from the server.") + QLatin1Char('\n') + job->errorString());
      |                    ^~~~
/home/claucambra/kde/src/kdepim-runtime/resources/pop3/pop3resource.cpp:496:32: error: ‘i18n’ was not declared in this scope
  496 |                                i18n("Your POP3 server (Account: %1) does not support "
      |                                ^~~~
/home/claucambra/kde/src/kdepim-runtime/resources/pop3/pop3resource.cpp: In member function ‘void POP3Resource::fetchJobResult(KJob*)’:
/home/claucambra/kde/src/kdepim-runtime/resources/pop3/pop3resource.cpp:511:20: error: ‘i18n’ was not declared in this scope
  511 |         cancelSync(i18n("Error while fetching mails from the server.") + QLatin1Char('\n') + job->errorString());
      |                    ^~~~
/home/claucambra/kde/src/kdepim-runtime/resources/pop3/pop3resource.cpp: In member function ‘void POP3Resource::messageDownloadProgress(KJob*, KJob::Unit, qulonglong)’:
/home/claucambra/kde/src/kdepim-runtime/resources/pop3/pop3resource.cpp:570:25: error: ‘i18n’ was not declared in this scope
  570 |         statusMessage = i18n(
      |                         ^~~~
/home/claucambra/kde/src/kdepim-runtime/resources/pop3/pop3resource.cpp:580:25: error: ‘i18n’ was not declared in this scope
  580 |         statusMessage = i18n("Fetching message %1 of %2 (%3 of %4 KB) for %5",
      |                         ^~~~
/home/claucambra/kde/src/kdepim-runtime/resources/pop3/pop3resource.cpp: In member function ‘void POP3Resource::itemCreateJobResult(KJob*)’:
/home/claucambra/kde/src/kdepim-runtime/resources/pop3/pop3resource.cpp:603:20: error: ‘i18n’ was not declared in this scope
  603 |         cancelSync(i18n("Unable to store downloaded mails.") + QLatin1Char('\n') + job->errorString());
      |                    ^~~~
/home/claucambra/kde/src/kdepim-runtime/resources/pop3/pop3resource.cpp: In member function ‘void POP3Resource::deleteJobResult(KJob*)’:
/home/claucambra/kde/src/kdepim-runtime/resources/pop3/pop3resource.cpp:751:20: error: ‘i18n’ was not declared in this scope
  751 |         cancelSync(i18n("Failed to delete the messages from the server.") + QLatin1Char('\n') + job->errorString());
      |                    ^~~~
/home/claucambra/kde/src/kdepim-runtime/resources/pop3/pop3resource.cpp: In member function ‘void POP3Resource::finish()’:
/home/claucambra/kde/src/kdepim-runtime/resources/pop3/pop3resource.cpp:807:29: error: ‘i18n’ was not declared in this scope
  807 |         Q_EMIT status(Idle, i18n("Finished mail check, no message downloaded."));
      |                             ^~~~
/home/claucambra/kde/src/kdepim-runtime/resources/pop3/pop3resource.cpp:809:29: error: ‘i18np’ was not declared in this scope
  809 |         Q_EMIT status(Idle, i18np("Finished mail check, 1 message downloaded.", "Finished mail check, %1 messages downloaded.", mDownloadedIDs.size()));
      |                             ^~~~~
/home/claucambra/kde/src/kdepim-runtime/resources/pop3/pop3resource.cpp: In member function ‘void POP3Resource::quitJobResult(KJob*)’:
/home/claucambra/kde/src/kdepim-runtime/resources/pop3/pop3resource.cpp:823:20: error: ‘i18n’ was not declared in this scope
  823 |         cancelSync(i18n("Unable to complete the mail fetch.") + QLatin1Char('\n') + job->errorString());
      |                    ^~~~
/home/claucambra/kde/src/kdepim-runtime/resources/pop3/pop3resource.cpp: In member function ‘virtual void POP3Resource::retrieveCollections()’:
/home/claucambra/kde/src/kdepim-runtime/resources/pop3/pop3resource.cpp:958:20: error: ‘i18n’ was not declared in this scope
  958 |         cancelSync(i18n("Mail check already in progress, unable to start a second check."));
      |                    ^~~~
/home/claucambra/kde/src/kdepim-runtime/resources/pop3/pop3resource.cpp: In member function ‘virtual void POP3Resource::doSetOnline(bool)’:
/home/claucambra/kde/src/kdepim-runtime/resources/pop3/pop3resource.cpp:979:29: error: ‘i18n’ was not declared in this scope
  979 |         Q_EMIT status(Idle, i18n("Ready"));
      |                             ^~~~
/home/claucambra/kde/src/kdepim-runtime/resources/pop3/pop3resource.cpp:982:24: error: ‘i18n’ was not declared in this scope
  982 |             cancelSync(i18n("Mail check aborted after going offline."), false /* no error */);
      |                        ^~~~
/home/claucambra/kde/src/kdepim-runtime/resources/pop3/pop3resource.cpp:984:29: error: ‘i18n’ was not declared in this scope
  984 |         Q_EMIT status(Idle, i18n("Offline"));

Signed-off-by: Claudio Cambra claudio.cambra@kde.org

Merge request reports

Loading