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:
ispyisail
2026-10-08 12:50:13 +13:00
parent 57c650e6e0
commit f5962ecd06
363 changed files with 227813 additions and 199545 deletions
+8 -9
View File
@@ -716,16 +716,16 @@ bool projectDataBase::isReadOnlySelect(const QString &query, QString *error)
if (trimmed.isEmpty()) {
if (error) {
*error = projectDataBase::tr("La requête est vide.");
*error = projectDataBase::tr("The query is empty.");
}
return false;
}
if (trimmed.contains(QLatin1Char(';'))) {
if (error) {
*error = projectDataBase::tr("Une seule requête SELECT est autorisée"
" (le caractère ';' ne peut apparaître"
" qu'à la toute fin).");
*error = projectDataBase::tr("Only a single SELECT query is allowed "
"(the ';' character may only appear at "
"the very end).");
}
return false;
}
@@ -734,9 +734,8 @@ bool projectDataBase::isReadOnlySelect(const QString &query, QString *error)
const QString first_word = (first_space == -1 ? trimmed : trimmed.left(first_space)).toUpper();
if (first_word != QLatin1String("SELECT") && first_word != QLatin1String("WITH")) {
if (error) {
*error = projectDataBase::tr("Seules les requêtes en lecture seule"
" (SELECT ou WITH ... SELECT) sont"
" autorisées.");
*error = projectDataBase::tr("Only read-only queries (SELECT or "
"WITH ... SELECT) are allowed.");
}
return false;
}
@@ -2374,14 +2373,14 @@ void projectDataBase::exportDb(projectDataBase *db,
{
auto caption_ = caption;
if (caption_.isEmpty()) {
caption_ = tr("Exporter la base de données interne du projet");
caption_ = tr("Export the internal project database");
}
auto dir_ = dir;
if(dir_.isEmpty()) {
dir_ = db->project()->filePath();
if (dir_.isEmpty()) {
dir_ = QETApp::documentDir() % "/" % tr("sans_nom") % ".sqlite";
dir_ = QETApp::documentDir() % "/" % tr("untitled") % ".sqlite";
} else {
dir_.remove(".qet");
dir_.append(".sqlite");