mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-10 22:24:13 +02:00
Make English the source language of the interface text
Every tr() source string in the code and the forms is now the English
text, and French is a translation (qet_fr.ts) like the other languages.
Generated, not hand-edited: master ef795a21e5 converted by
qet-en-source (harness 4c4ddc9).
3144 messages get an English source, 665 already had one, 0 left French; 8 shared-wording pairs disambiguated.
C++: 2904 literals in 233 files. Forms: 809 strings in 65 files. All 34 .ts files re-keyed; qet_fr.ts filled.
lupdate check: PASS. What each of 38 languages shows, old vs new: same 118266, English instead of French 38433, comment fallback 51, differences 0.
This commit is contained in:
@@ -78,8 +78,8 @@ QSqlQuery execReadOnly(const QSqlDatabase &db, const QString &query, QString *er
|
||||
if (!QSqlQuery(db).exec(QStringLiteral("PRAGMA query_only = ON"))) {
|
||||
if (error) {
|
||||
*error = QCoreApplication::translate("QETSql",
|
||||
"Impossible de vérifier la requête : "
|
||||
"la base de données ne peut pas être mise en lecture seule.");
|
||||
"Unable to verify the query: the database cannot be set to "
|
||||
"read-only.");
|
||||
}
|
||||
return QSqlQuery(db);
|
||||
}
|
||||
@@ -103,11 +103,11 @@ QSqlQuery execReadOnly(const QSqlDatabase &db, const QString &query, QString *er
|
||||
// SQLITE_READONLY is 8; extended codes keep it in the low byte.
|
||||
if ((result.lastError().nativeErrorCode().toInt() & 0xff) == 8) {
|
||||
*error = QCoreApplication::translate("QETSql",
|
||||
"Seules les requêtes en lecture seule sont autorisées : "
|
||||
"cette requête modifierait la base de données.");
|
||||
"Only read-only queries are allowed: this query would "
|
||||
"modify the database.");
|
||||
} else {
|
||||
*error = QCoreApplication::translate("QETSql",
|
||||
"Requête SQL invalide : %1")
|
||||
"Invalid SQL query: %1")
|
||||
.arg(result.lastError().databaseText());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user