mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-10 06:04:12 +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:
@@ -83,11 +83,11 @@ QString AutoNumSchemeCommand::nameProblem(const QETProject *project, Kind kind,
|
||||
const QString &name, const QString &ignored_title)
|
||||
{
|
||||
if (QETProject::normalizedAutoNumName(name).isEmpty()) {
|
||||
return tr("Le nom de la numérotation ne peut pas être vide.");
|
||||
return tr("The numbering name cannot be empty.");
|
||||
}
|
||||
const QString clash = nameClash(project, kind, name, ignored_title);
|
||||
if (!clash.isEmpty()) {
|
||||
return tr("Une numérotation nommée « %1 » existe déjà.").arg(clash);
|
||||
return tr("A numbering named “%1” already exists.").arg(clash);
|
||||
}
|
||||
return QString();
|
||||
}
|
||||
@@ -132,7 +132,7 @@ AutoNumSchemeCommand *AutoNumSchemeCommand::create(QETProject *project, Kind kin
|
||||
cmd->m_current_after = (kind == Kind::Conductor && make_current)
|
||||
? cmd->m_after->title
|
||||
: cmd->m_current_before;
|
||||
cmd->setText(tr("Créer la numérotation %1").arg(cmd->m_after->title));
|
||||
cmd->setText(tr("Create numbering %1").arg(cmd->m_after->title));
|
||||
return cmd;
|
||||
}
|
||||
|
||||
@@ -182,10 +182,10 @@ AutoNumSchemeCommand *AutoNumSchemeCommand::edit(QETProject *project, Kind kind,
|
||||
return nullptr;
|
||||
}
|
||||
if (cmd->m_before->title != cmd->m_after->title && same_definition) {
|
||||
cmd->setText(tr("Renommer la numérotation %1 en %2")
|
||||
cmd->setText(tr("Rename numbering %1 to %2")
|
||||
.arg(cmd->m_before->title, cmd->m_after->title));
|
||||
} else {
|
||||
cmd->setText(tr("Modifier la numérotation %1").arg(cmd->m_after->title));
|
||||
cmd->setText(tr("Modify numbering %1").arg(cmd->m_after->title));
|
||||
}
|
||||
return cmd;
|
||||
}
|
||||
@@ -208,7 +208,7 @@ AutoNumSchemeCommand *AutoNumSchemeCommand::remove(QETProject *project, Kind kin
|
||||
cmd->m_current_before = project->conductorCurrentAutoNum();
|
||||
cmd->m_current_after = (kind == Kind::Conductor && cmd->m_current_before == title)
|
||||
? QString() : cmd->m_current_before;
|
||||
cmd->setText(tr("Supprimer la numérotation %1").arg(title));
|
||||
cmd->setText(tr("Delete numbering %1").arg(title));
|
||||
return cmd;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user