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
+110 -110
View File
@@ -143,7 +143,7 @@ ProjectMainConfigPage::~ProjectMainConfigPage()
*/
QString ProjectMainConfigPage::title() const
{
return(tr("Général", "configuration page title"));
return(tr("General", "configuration page title"));
}
/**
@@ -225,12 +225,12 @@ QString ProjectMainConfigPage::projectTitle() const
*/
void ProjectMainConfigPage::initWidgets()
{
title_label_ = new QLabel(tr("Titre du projet :", "label when configuring"));
title_label_ = new QLabel(tr("Project title :", "label when configuring"));
title_value_ = new QLineEdit();
title_information_ = new QLabel(tr("Ce titre sera disponible pour tous les folios de ce projet en tant que %projecttitle.", "informative label"));
title_information_ = new QLabel(tr("This title is made available to all child sheets as %projecttitle.", "informative label"));
project_variables_label_ = new QLabel(
tr(
"Vous pouvez définir ci-dessous des propriétés personnalisées qui seront disponibles pour tous les folios de ce projet (typiquement pour les cartouches).",
"You may define below custom properties that will be made available to all sheets of the project (typically to use within title blocks).",
"informative label"
)
);
@@ -238,38 +238,38 @@ void ProjectMainConfigPage::initWidgets()
project_variables_ = new DiagramContextWidget();
project_variables_ -> setContext(DiagramContext());
usage_label_ = new QLabel(tr("Temps passé sur ce projet :", "label when configuring"));
usage_label_ = new QLabel(tr("Time spent on this project:", "label when configuring"));
usage_value_ = new QLabel();
usage_enabled_cb_ = new QCheckBox(tr("Suivre le temps passé sur ce projet (uniquement enregistré localement dans ce fichier)", "checkbox label"));
usage_reset_pb_ = new QPushButton(tr("Réinitialiser", "button label"));
usage_enabled_cb_ = new QCheckBox(tr("Track the time spent on this project (recorded locally in this file only)", "checkbox label"));
usage_reset_pb_ = new QPushButton(tr("Reset", "button label"));
connect(usage_reset_pb_, &QPushButton::clicked, this, &ProjectMainConfigPage::resetUsageTracker);
//Hops where two conductors cross without being connected (issue #436)
wire_hops_label_ = new QLabel(tr("Croisements de conducteurs :", "label when configuring"));
wire_hops_label_ = new QLabel(tr("Conductor crossings:", "label when configuring"));
wire_hops_cb_ = new QComboBox();
wire_hops_cb_ -> addItem(tr("Sans saut", "wire crossings"),
wire_hops_cb_ -> addItem(tr("No hop", "wire crossings"),
WireHops::toString(WireHops::Mode::None));
wire_hops_cb_ -> addItem(tr("Saut sur les conducteurs horizontaux", "wire crossings"),
wire_hops_cb_ -> addItem(tr("Hop on horizontal conductors", "wire crossings"),
WireHops::toString(WireHops::Mode::Horizontal));
wire_hops_cb_ -> addItem(tr("Saut sur les conducteurs verticaux", "wire crossings"),
wire_hops_cb_ -> addItem(tr("Hop on vertical conductors", "wire crossings"),
WireHops::toString(WireHops::Mode::Vertical));
wire_hops_cb_ -> setToolTip(tr("Dessine un petit arc là où deux conducteurs se croisent sans être reliés. "
"Seul le dessin change : aucun élément n'est ajouté et aucun conducteur n'est coupé.",
wire_hops_cb_ -> setToolTip(tr("Draws a small arc where two conductors cross without being connected. Only the "
"drawing changes: no element is added and no conductor is cut.",
"tooltip"));
//Texts of turned symbols kept horizontal
upright_symbol_texts_cb_ = new QCheckBox(tr("Garder horizontaux les textes des symboles pivotés",
upright_symbol_texts_cb_ = new QCheckBox(tr("Keep the texts of rotated elements horizontal",
"checkbox label"));
upright_symbol_texts_cb_ -> setToolTip(tr("Les textes dessinés dans un symbole et les noms de ses bornes restent "
"lisibles quand le symbole est pivoté : leur cadre tourne avec le symbole, "
"pas le texte. Décochez pour qu'ils tournent avec le symbole, comme avant.",
upright_symbol_texts_cb_ -> setToolTip(tr("Texts drawn in an element and the names of its terminals stay readable "
"when the element is rotated: their frame turns with the element, not the "
"text. Uncheck to make them turn with the element, as before.",
"tooltip"));
//How many wires a terminal may take (discussion #1158)
wiring_rules_gb_ = new QGroupBox(tr("Conducteurs par borne", "group box title"));
use_application_rules_cb_ = new QCheckBox(tr("Utiliser les réglages de l'application", "checkbox label"));
use_application_rules_cb_ -> setToolTip(tr("Les réglages de Configurer QElectroTech > Général s'appliquent. "
"Décochez pour donner à ce projet ses propres réglages, enregistrés dans le projet.",
wiring_rules_gb_ = new QGroupBox(tr("Conductors per terminal", "group box title"));
use_application_rules_cb_ = new QCheckBox(tr("Use the application settings", "checkbox label"));
use_application_rules_cb_ -> setToolTip(tr("The settings in Configure QElectroTech > General apply. Untick to give this "
"project its own settings, saved in the project.",
"tooltip"));
connect(use_application_rules_cb_, &QCheckBox::toggled, this, [this](bool use) {
//Show the values that will apply: the application's, or the
@@ -281,20 +281,20 @@ void ProjectMainConfigPage::initWidgets()
}
updateWiringRulesWidgets();
});
max_wires_label_ = new QLabel(tr("Nombre maximal de conducteurs par borne :", "label when configuring"));
max_wires_label_ = new QLabel(tr("Maximum conductors per terminal:", "label when configuring"));
max_wires_sb_ = new QSpinBox();
max_wires_sb_ -> setRange(0, 99);
max_wires_sb_ -> setSpecialValueText(tr("Sans limite", "wires per terminal"));
max_wires_sb_ -> setToolTip(tr("Un nouveau conducteur qui dépasserait ce nombre sur une borne est refusé. "
"Les conducteurs déjà dessinés ne sont pas modifiés. "
"4 correspond à deux embouts doubles, un de chaque côté de la vis.",
max_wires_sb_ -> setSpecialValueText(tr("No limit", "wires per terminal"));
max_wires_sb_ -> setToolTip(tr("A new conductor that would take a terminal past this number is refused. "
"Conductors already drawn are not changed. 4 means two twin ferrules, one "
"on each side of the screw.",
"tooltip"));
one_wire_per_report_cb_ = new QCheckBox(tr("Un seul conducteur par renvoi de folio", "checkbox label"));
one_wire_per_report_cb_ -> setToolTip(tr("Un renvoi de folio est un point virtuel : il ne reçoit qu'un conducteur, "
"celui qui continue sur l'autre folio.",
one_wire_per_report_cb_ = new QCheckBox(tr("Only one conductor per sheet reference", "checkbox label"));
one_wire_per_report_cb_ -> setToolTip(tr("A sheet reference is a virtual point: it takes only one conductor, the "
"one that continues on the other sheet.",
"tooltip"));
wiring_rules_off_label_ = new QLabel(tr("Ces règles sont désactivées pour tous les projets "
"(Configurer QElectroTech > Général).",
wiring_rules_off_label_ = new QLabel(tr("These rules are turned off for every project "
"(Configure QElectroTech > General).",
"informative label"));
wiring_rules_off_label_ -> setWordWrap(true);
}
@@ -456,7 +456,7 @@ ProjectAutoNumConfigPage::ProjectAutoNumConfigPage (QETProject *project,
*/
QString ProjectAutoNumConfigPage::title() const
{
return tr("Numérotation auto");
return tr("Auto Numbering");
}
/**
@@ -490,7 +490,7 @@ QWidget *schemeTab(SelectAutonumW *saw, QGroupBox *&box, QTableWidget *&table)
box = new QGroupBox(tab);
auto *box_layout = new QVBoxLayout(box);
table = new QTableWidget(0, 2, box);
table->setHorizontalHeaderLabels({QObject::tr("Folio"), QObject::tr("Titre")});
table->setHorizontalHeaderLabels({QObject::tr("Sheet"), QObject::tr("Title")});
table->setEditTriggers(QAbstractItemView::NoEditTriggers);
table->setSelectionBehavior(QAbstractItemView::SelectRows);
table->verticalHeader()->setVisible(false);
@@ -518,7 +518,7 @@ void ProjectAutoNumConfigPage::initWidgets()
//Conductor tab
m_saw_conductor = new SelectAutonumW(1);
m_saw_conductor->setExplicitNaming();
tab_widget->addTab(schemeTab(m_saw_conductor, m_conductor_users_box, m_conductor_users), tr("Conducteurs"));
tab_widget->addTab(schemeTab(m_saw_conductor, m_conductor_users_box, m_conductor_users), tr("Conductors"));
//Element tab
m_saw_element = new SelectAutonumW(0);
@@ -533,38 +533,38 @@ void ProjectAutoNumConfigPage::initWidgets()
m_element_users_box = new QGroupBox(element_tab);
auto *users_layout = new QVBoxLayout(m_element_users_box);
m_element_users = new QTableWidget(0, 5, m_element_users_box);
m_element_users->setHorizontalHeaderLabels({tr("N°"), tr("Nom"), tr("Folio"), tr("Élément"), tr("Figé")});
m_element_users->setHorizontalHeaderLabels({tr("No."), tr("Name"), tr("Sheet"), tr("Element"), tr("Frozen")});
m_element_users->setEditTriggers(QAbstractItemView::NoEditTriggers);
m_element_users->setSelectionBehavior(QAbstractItemView::SelectRows);
m_element_users->verticalHeader()->setVisible(false);
m_element_users->horizontalHeader()->setStretchLastSection(true);
m_element_users->setAlternatingRowColors(true);
users_layout->addWidget(m_element_users);
m_assign_number_pb = new QPushButton(tr("Attribuer un numéro libre…"), m_element_users_box);
m_assign_number_pb->setToolTip(tr("Donner à l'élément sélectionné un numéro que personne n'a : "
"il garde sa numérotation, seul son numéro change."));
m_assign_number_pb = new QPushButton(tr("Assign a free number…"), m_element_users_box);
m_assign_number_pb->setToolTip(tr("Give the selected element a number nobody has: it keeps its "
"numbering, only its number changes."));
m_assign_number_pb->setEnabled(false);
users_layout->addWidget(m_assign_number_pb, 0, Qt::AlignLeft);
connect(m_assign_number_pb, &QPushButton::clicked, this, &ProjectAutoNumConfigPage::assignFreeNumber);
connect(m_element_users, &QTableWidget::itemSelectionChanged,
this, &ProjectAutoNumConfigPage::updateAssignNumberButton);
element_layout->addWidget(m_element_users_box, 1);
tab_widget->addTab(element_tab, tr("Eléments"));
tab_widget->addTab(element_tab, tr("Elements"));
//Folio Tab
m_saw_folio = new SelectAutonumW(2);
m_saw_folio->setExplicitNaming();
tab_widget->addTab(schemeTab(m_saw_folio, m_folio_users_box, m_folio_users), tr("Folios"));
tab_widget->addTab(schemeTab(m_saw_folio, m_folio_users_box, m_folio_users), tr("Sheets"));
//AutoNumbering Tab
m_faw = new FolioAutonumberingW(project());
tab_widget->addTab(m_faw, tr("Numérotation auto des folios"));
tab_widget->addTab(m_faw, tr("Sheet Auto Numbering"));
m_import_pb = new QPushButton(
tr("Importer depuis un autre projet..."), this);
tr("Import from another project..."), this);
m_import_pb->setToolTip(
tr("Reprendre les numérotations automatiques "
"enregistrées dans un autre projet"));
tr("Reuse the automatic numbering saved in "
"another project"));
QHBoxLayout *button_layout = new QHBoxLayout();
button_layout->addStretch();
@@ -752,7 +752,7 @@ void ProjectAutoNumConfigPage::refreshElementUsers()
entry.element->elementInformations().value(QStringLiteral("label")).toString(),
entry.element->diagram() ? QString::number(entry.element->diagram()->folioIndex() + 1) : QString(),
entry.element->name(),
is_frozen ? tr("figé") : QString()};
is_frozen ? tr("frozen") : QString()};
}
else
{
@@ -760,8 +760,8 @@ void ProjectAutoNumConfigPage::refreshElementUsers()
cells = QStringList{
entry.to > entry.number ? QStringLiteral("%1 – %2").arg(entry.number).arg(entry.to)
: QString::number(entry.number),
tr("— libre —"), QString(),
tr("aucun élément n'a ce numéro (supprimé ou renuméroté)"), QString()};
tr("— free —"), QString(),
tr("no element has this number (deleted or renumbered)"), QString()};
}
for (int column = 0 ; column < cells.size() ; ++column) {
auto *item = new QTableWidgetItem(cells.at(column));
@@ -778,10 +778,10 @@ void ProjectAutoNumConfigPage::refreshElementUsers()
m_element_users->resizeColumnsToContents();
m_element_users_box->setTitle(
users.isEmpty()
? tr("Aucun élément ne suit cette numérotation")
: tr("%n élément(s) suivent cette numérotation, dont %1 au nom figé", "", users.size())
? tr("No element follows this numbering")
: tr("%n elements follow this numbering, %1 with a frozen name", "", users.size())
.arg(frozen)
+ (gaps ? tr(" ; %n numéro(s) sans élément", "", gaps) : QString()));
+ (gaps ? tr("; %n numbers without an element", "", gaps) : QString()));
updateAssignNumberButton();
}
@@ -803,10 +803,10 @@ void ProjectAutoNumConfigPage::updateAssignNumberButton()
m_assign_number_pb->setEnabled(element && supported && !m_project->isReadOnly());
m_assign_number_pb->setToolTip(
!supported
? tr("Cette numérotation a plusieurs numéros (ou un numéro par folio) : "
"on ne peut pas en choisir un à la main.")
: tr("Donner à l'élément sélectionné un numéro que personne n'a : "
"il garde sa numérotation, seul son numéro change."));
? tr("This numbering has several numbers (or one number per sheet): one "
"cannot be chosen by hand.")
: tr("Give the selected element a number nobody has: it keeps its "
"numbering, only its number changes."));
}
/**
@@ -820,18 +820,18 @@ void ProjectAutoNumConfigPage::assignFreeNumber()
const int row = m_element_users->currentRow();
Element *element = row >= 0 ? m_element_rows.value(row).data() : nullptr;
const QString title = m_saw_element->contextComboBox()->currentText();
const QString caption = tr("Attribuer un numéro libre");
const QString caption = tr("Assign a free number");
if (!element || m_project->isReadOnly()) {
return;
}
if (element->isFreezeLabel()) {
QMessageBox::information(this, caption,
tr("Le nom de cet élément est figé : dégelez-le d'abord."));
tr("This element's name is frozen: unfreeze it first."));
return;
}
const QList<int> numbers = ElementAutoNumSchemeCommand::freeNumbers(m_project, title, element);
if (numbers.isEmpty()) {
QMessageBox::information(this, caption, tr("Aucun numéro n'est libre."));
QMessageBox::information(this, caption, tr("No number is free."));
return;
}
QStringList items;
@@ -842,7 +842,7 @@ void ProjectAutoNumConfigPage::assignFreeNumber()
bool ok = false;
const QString chosen = QInputDialog::getItem(
this, caption,
tr("Numéro libre pour l'élément « %1 » (%2) :")
tr("Free number for element “%1” (%2):")
.arg(element->elementInformations().value(QStringLiteral("label")).toString(), element->name()),
items, 0, false, &ok);
if (!ok) {
@@ -893,7 +893,7 @@ QString ProjectAutoNumConfigPage::askElementSchemeName(const QString &title,
for (;;)
{
bool ok = false;
name = QInputDialog::getText(this, title, tr("Nom de la numérotation :"),
name = QInputDialog::getText(this, title, tr("Numbering name:"),
QLineEdit::Normal, name, &ok);
if (!ok) {
return QString();
@@ -922,9 +922,9 @@ bool ProjectAutoNumConfigPage::pushElementSchemeCommand(ElementAutoNumSchemeComm
{
if (!RenumberPreviewDialog::confirm(
this,
tr("Modifier la numérotation"),
tr("%n élément(s) suivent cette numérotation et vont "
"changer de formule et de nom.", "", changed),
tr("Modify numbering"),
tr("%n elements follow this numbering and will change "
"formula and name.", "", changed),
cmd->changes(), {})) {
delete cmd;
return false;
@@ -944,7 +944,7 @@ void ProjectAutoNumConfigPage::newContextElement()
if (m_project->isReadOnly()) {
return;
}
const QString name = askElementSchemeName(tr("Nouvelle numérotation"),
const QString name = askElementSchemeName(tr("New numbering"),
QString(), QString());
if (name.isEmpty()) {
return;
@@ -969,7 +969,7 @@ void ProjectAutoNumConfigPage::renameContextElement()
if (m_project->isReadOnly() || !m_project->elementAutoNum().contains(old_title)) {
return;
}
const QString name = askElementSchemeName(tr("Renommer la numérotation"),
const QString name = askElementSchemeName(tr("Rename numbering"),
old_title, old_title);
if (name.isEmpty() || name == old_title) {
return;
@@ -997,7 +997,7 @@ void ProjectAutoNumConfigPage::saveContextElement()
if (!m_project->elementAutoNum().contains(title))
{
//No numbering yet: the definition needs a name
shown = askElementSchemeName(tr("Nouvelle numérotation"),
shown = askElementSchemeName(tr("New numbering"),
QString(), QString());
if (shown.isEmpty()) {
return;
@@ -1012,11 +1012,11 @@ void ProjectAutoNumConfigPage::saveContextElement()
m_project, title, wanted).size())
{
QMessageBox::warning(
this, tr("Modifier la numérotation"),
tr("La numérotation « %1 » ne peut pas être modifiée : "
"%n élément(s) au nom figé la suivent.\n"
"Dégelez-les d'abord (voir la liste), ou renommez seulement la "
"numérotation.", "", frozen).arg(title));
this, tr("Modify numbering"),
tr("The “%1” numbering cannot be modified: %n elements with a "
"frozen name follow it.\n"
"Unfreeze them first (see the list), or just rename the "
"numbering.", "", frozen).arg(title));
refreshElementSchemes(title); //Back to the definition the project has
return;
}
@@ -1052,24 +1052,24 @@ void ProjectAutoNumConfigPage::importFromProject()
const QString path = QFileDialog::getOpenFileName(
this,
tr("Importer les numérotations d'un projet"),
tr("Import numbering from a project"),
m_project->currentDir(),
tr("Projet QElectroTech (*.qet)"));
tr("Project QElectroTech (*.qet)"));
if (path.isEmpty()) {
return;
}
QFile file(path);
if (!file.open(QIODevice::ReadOnly)) {
QMessageBox::warning(this, tr("Import impossible"),
tr("Impossible d'ouvrir %1").arg(path));
QMessageBox::warning(this, tr("Import not possible"),
tr("Unable to open %1").arg(path));
return;
}
QDomDocument doc;
if (!doc.setContent(&file)) {
QMessageBox::warning(this, tr("Import impossible"),
tr("%1 n'est pas un projet QElectroTech valide.")
QMessageBox::warning(this, tr("Import not possible"),
tr("%1 is not a valid QElectroTech project.")
.arg(QFileInfo(path).fileName()));
return;
}
@@ -1078,8 +1078,8 @@ void ProjectAutoNumConfigPage::importFromProject()
const QDomNodeList newdiagrams =
doc.elementsByTagName(QStringLiteral("newdiagrams"));
if (newdiagrams.isEmpty()) {
QMessageBox::information(this, tr("Aucune numérotation"),
tr("Ce projet ne contient aucune numérotation automatique."));
QMessageBox::information(this, tr("No numbering"),
tr("This project does not contain any automatic numbering."));
return;
}
const QDomElement root = newdiagrams.at(0).toElement();
@@ -1092,18 +1092,18 @@ void ProjectAutoNumConfigPage::importFromProject()
};
const QList<Category> categories {
{QStringLiteral("conductors_autonums"),
QStringLiteral("conductor_autonum"), tr("Conducteurs")},
QStringLiteral("conductor_autonum"), tr("Conductors")},
{QStringLiteral("element_autonums"),
QStringLiteral("element_autonum"), tr("Eléments")},
QStringLiteral("element_autonum"), tr("Elements")},
{QStringLiteral("folio_autonums"),
QStringLiteral("folio_autonum"), tr("Folios")}
QStringLiteral("folio_autonum"), tr("Sheets")}
};
QDialog dialog(this);
dialog.setWindowTitle(tr("Numérotations à importer"));
dialog.setWindowTitle(tr("Numbering to import"));
QVBoxLayout *layout = new QVBoxLayout(&dialog);
layout->addWidget(new QLabel(
tr("Numérotations trouvées dans %1 :")
tr("Numbering found in %1:")
.arg(QFileInfo(path).fileName()), &dialog));
QListWidget *list = new QListWidget(&dialog);
@@ -1141,7 +1141,7 @@ void ProjectAutoNumConfigPage::importFromProject()
}
QListWidgetItem *item = new QListWidgetItem(
exists ? tr("%1 : %2 (existe déjà)")
exists ? tr("%1: %2 (already exists)")
.arg(category.label, title)
: QStringLiteral("%1 : %2")
.arg(category.label, title),
@@ -1160,13 +1160,13 @@ void ProjectAutoNumConfigPage::importFromProject()
}
if (contexts.isEmpty()) {
QMessageBox::information(this, tr("Aucune numérotation"),
tr("Ce projet ne contient aucune numérotation automatique."));
QMessageBox::information(this, tr("No numbering"),
tr("This project does not contain any automatic numbering."));
return;
}
QCheckBox *overwrite_cb = new QCheckBox(
tr("Remplacer les numérotations de même nom"), &dialog);
tr("Replace numbering with the same name"), &dialog);
layout->addWidget(overwrite_cb);
QDialogButtonBox *buttons = new QDialogButtonBox(
@@ -1180,7 +1180,7 @@ void ProjectAutoNumConfigPage::importFromProject()
}
int imported = 0, skipped = 0, conductors = 0, relabelled = 0, blocked = 0;
m_project->undoStack()->beginMacro(tr("Importer des numérotations"));
m_project->undoStack()->beginMacro(tr("Import numberings"));
for (int row = 0 ; row < list->count() ; ++row)
{
QListWidgetItem *item = list->item(row);
@@ -1261,17 +1261,17 @@ void ProjectAutoNumConfigPage::importFromProject()
}
QMessageBox::information(
this, tr("Import terminé"),
(skipped ? tr("%1 numérotation(s) importée(s), "
"%2 conservée(s) telles quelles.")
this, tr("Import complete"),
(skipped ? tr("%1 numbering(s) imported, %2 "
"kept unchanged.")
.arg(imported).arg(skipped)
: tr("%1 numérotation(s) importée(s).").arg(imported))
: tr("%1 numbering(s) imported.").arg(imported))
+ (blocked ? QStringLiteral("\n")
+ tr("%n numérotation(s) suivie(s) par des éléments au nom figé "
"n'ont pas été remplacées.", "", blocked)
+ tr("%n numberings followed by elements with a frozen name were "
"not replaced.", "", blocked)
: QString())
+ (relabelled ? QStringLiteral("\n")
+ tr("%n élément(s) ont changé de formule.", "", relabelled)
+ tr("%n elements changed formula.", "", relabelled)
: QString()));
}
@@ -1288,10 +1288,10 @@ void ProjectAutoNumConfigPage::removeContextElement()
if (const int used = m_project->elementsUsingElementAutoNum(title).size())
{
QMessageBox::information(
this, tr("Supprimer la numérotation"),
tr("%n élément(s) suivent la numérotation « %1 », elle ne "
"peut pas être supprimée.\nDonnez-leur une autre "
"numérotation ou un nom fixe d'abord.", "", used)
this, tr("Delete numbering"),
tr("%n elements follow the “%1” numbering, so it cannot be "
"deleted.\n"
"Give them another numbering or a fixed name first.", "", used)
.arg(title));
return;
}
@@ -1513,12 +1513,12 @@ void ProjectAutoNumConfigPage::refreshSchemeUsers(SchemeKind kind)
table->resizeColumnsToContents();
if (kind == SchemeKind::Folio) {
box->setTitle(users.isEmpty()
? tr("Aucun folio ne nomme cette numérotation")
: tr("%n folio(s) nomment cette numérotation", "", users.size()));
? tr("No sheet names this numbering")
: tr("%n sheets name this numbering", "", users.size()));
} else {
box->setTitle(users.isEmpty()
? tr("Aucun folio ne suit cette numérotation")
: tr("%n folio(s) suivent cette numérotation", "", users.size()));
? tr("No sheet follows this numbering")
: tr("%n sheets follow this numbering", "", users.size()));
}
}
@@ -1528,7 +1528,7 @@ QString ProjectAutoNumConfigPage::askSchemeName(SchemeKind kind, const QString &
for (;;)
{
bool ok = false;
name = QInputDialog::getText(this, title, tr("Nom de la numérotation :"),
name = QInputDialog::getText(this, title, tr("Numbering name:"),
QLineEdit::Normal, name, &ok);
if (!ok) {
return QString();
@@ -1550,7 +1550,7 @@ void ProjectAutoNumConfigPage::newScheme(SchemeKind kind)
if (m_project->isReadOnly()) {
return;
}
const QString name = askSchemeName(kind, tr("Nouvelle numérotation"), QString(), QString());
const QString name = askSchemeName(kind, tr("New numbering"), QString(), QString());
if (name.isEmpty()) {
return;
}
@@ -1572,7 +1572,7 @@ void ProjectAutoNumConfigPage::renameScheme(SchemeKind kind)
if (m_project->isReadOnly() || !AutoNumSchemeCommand::contains(m_project, kind, old_title)) {
return;
}
const QString name = askSchemeName(kind, tr("Renommer la numérotation"), old_title, old_title);
const QString name = askSchemeName(kind, tr("Rename numbering"), old_title, old_title);
if (name.isEmpty() || name == old_title) {
return;
}
@@ -1601,7 +1601,7 @@ void ProjectAutoNumConfigPage::saveScheme(SchemeKind kind)
AutoNumSchemeCommand *cmd = nullptr;
if (!AutoNumSchemeCommand::contains(m_project, kind, title))
{
shown = askSchemeName(kind, tr("Nouvelle numérotation"), QString(), QString());
shown = askSchemeName(kind, tr("New numbering"), QString(), QString());
if (shown.isEmpty()) {
return;
}
@@ -1630,9 +1630,9 @@ void ProjectAutoNumConfigPage::removeScheme(SchemeKind kind)
if (const int used = AutoNumSchemeCommand::usersOf(m_project, kind, title).size())
{
QMessageBox::information(
this, tr("Supprimer la numérotation"),
tr("%n folio(s) suivent la numérotation « %1 », elle ne peut pas être "
"supprimée.\nDonnez-leur une autre numérotation d'abord.", "", used)
this, tr("Delete numbering"),
tr("%n sheets follow the “%1” numbering, so it cannot be deleted.\n"
"Give them another numbering first.", "", used)
.arg(title));
return;
}