[Companion] Qualify all translation strings (#5557)

* [Companion] Qualify all remaining QObject translations with proper class/object names; Centralize some common strings into constants.h.

* [Companion] Replace all instances of some common strings with macros from constants.h.

* [Companion] Fix translation warnings from lupdate.
This commit is contained in:
Max Paperno
2017-12-25 13:36:34 +01:00
committed by Bertrand Songis
parent ad0f727880
commit f018425e12
50 changed files with 331 additions and 303 deletions
+2 -2
View File
@@ -113,13 +113,13 @@ void SplashLibraryDialog::getFileList()
imageList.append(filename);
}
else {
QMessageBox::information(this, tr("Warning"), tr("Invalid image in library %1").arg(filename));
QMessageBox::warning(this, CPN_STR_TTL_WARNING, tr("Invalid image in library %1").arg(filename));
}
}
}
}
if (imageList.size() == 0) {
QMessageBox::information(this, tr("Information"), tr("No valid image found in library, check your settings"));
QMessageBox::information(this, CPN_STR_TTL_INFO, tr("No valid image found in library, check your settings"));
QTimer::singleShot(0, this, SLOT(dclose()));
}
else {