Use absolute locations in translation files (#288)

They provide context when using Qt Liguist, as it shows the source code where it is being used.

Also replaced QT (capital T) with Qt, as the latter is the correct name.
This commit is contained in:
Alfredo Ramos
2018-07-27 17:03:02 -05:00
committed by Dharkael
parent fd99234bba
commit 228c4f15e5
13 changed files with 212 additions and 46 deletions

View File

@@ -312,7 +312,7 @@ QString CommandLineParser::value(const CommandOption &option) const {
}
void CommandLineParser::printVersion() {
out << "Flameshot " << qApp->applicationVersion() << "\nCompiled with QT "
out << "Flameshot " << qApp->applicationVersion() << "\nCompiled with Qt "
<< static_cast<QString>(QT_VERSION_STR) << "\n";
}

View File

@@ -72,8 +72,8 @@ private slots:
private:
Controller();
// replace QTimer::singleShot introduced in QT 5.4
// the actual target QT version is QT 5.3
// replace QTimer::singleShot introduced in Qt 5.4
// the actual target Qt version is 5.3
void doLater(int msec, QObject *receiver, lambda func);
QMap<uint, CaptureRequest> m_requestMap;

View File

@@ -115,7 +115,7 @@ void InfoWindow::initLabels() {
QLabel *versionTitleLabel = new QLabel(tr("<u><b>Version</b></u>"), this);
versionTitleLabel->setAlignment(Qt::AlignHCenter);
m_layout->addWidget(versionTitleLabel);
QString versionMsg = "Flameshot " + QString(APP_VERSION) + "\nCompiled with QT "
QString versionMsg = "Flameshot " + QString(APP_VERSION) + "\nCompiled with Qt "
+ QT_VERSION_STR;
QLabel *versionLabel = new QLabel(versionMsg, this);
versionLabel->setAlignment(Qt::AlignHCenter);