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
+26 -26
View File
@@ -70,7 +70,7 @@ ExportDialog::ExportDialog(
// la taille minimale du dialogue est fixee
setMinimumSize(800, 590);
resize(minimumSize());
setWindowTitle(tr("Exporter les folios du projet", "window title"));
setWindowTitle(tr("Export the project sheets", "window title"));
// options d'export, dans le widget epw
epw = new ExportPropertiesWidget(default_export_properties);
@@ -80,16 +80,16 @@ ExportDialog::ExportDialog(
buttons -> setOrientation(Qt::Horizontal);
buttons -> setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Save);
QPushButton *export_button = buttons -> button(QDialogButtonBox::Save);
export_button -> setText(tr("Exporter"));
export_button -> setText(tr("Export"));
// disposition des elements
QHBoxLayout *hLayout = new QHBoxLayout();
hLayout -> addWidget(new QLabel(tr("Choisissez les folios que vous désirez exporter ainsi que leurs dimensions :")));
hLayout -> addWidget(new QLabel(tr("Choose the sheets you wish to export and specify their size :")));
selectAll = new QPushButton();
deSelectAll = new QPushButton();
selectAll -> setText(tr("Tout cocher"));
deSelectAll -> setText(tr("Tout décocher"));
selectAll -> setText(tr("Check all"));
deSelectAll -> setText(tr("Uncheck all"));
hLayout -> addWidget(selectAll);
hLayout -> addWidget(deSelectAll);
connect(selectAll, &QPushButton::clicked, this, &ExportDialog::slot_selectAllClicked);
@@ -157,8 +157,8 @@ QWidget *ExportDialog::initDiagramsListPart()
diagrams_list_layout_ = new QGridLayout();
int line_count = 0;
diagrams_list_layout_ -> addWidget(new QLabel(tr("Titre du folio")), line_count, 1, Qt::AlignHCenter | Qt::AlignVCenter);
diagrams_list_layout_ -> addWidget(new QLabel(tr("Nom de fichier")), line_count, 2, Qt::AlignHCenter | Qt::AlignVCenter);
diagrams_list_layout_ -> addWidget(new QLabel(tr("Sheet title")), line_count, 1, Qt::AlignHCenter | Qt::AlignVCenter);
diagrams_list_layout_ -> addWidget(new QLabel(tr("Filename")), line_count, 2, Qt::AlignHCenter | Qt::AlignVCenter);
diagrams_list_layout_ -> addWidget(new QLabel(tr("Dimensions")), line_count, 3, Qt::AlignHCenter | Qt::AlignVCenter);
// remplit la liste
@@ -460,10 +460,10 @@ void ExportDialog::slot_export()
if (filenames.count() != diagrams_to_export.count()) {
QET::QetMessageBox::warning(
this,
tr("Noms des fichiers cibles", "message box title"),
tr("Target files names", "message box title"),
tr(
"Vous devez entrer un nom de fichier non vide et unique pour chaque "
"folio à exporter.",
"You must enter a non-empty, unique filename for each sheet to "
"export.",
"message box content"
)
);
@@ -476,8 +476,8 @@ void ExportDialog::slot_export()
if (!target_dir_path.exists()) {
QET::QetMessageBox::warning(
this,
tr("Dossier non spécifié", "message box title"),
tr("Vous devez spécifier le chemin du dossier dans lequel seront enregistrés les fichiers images.", "message box content"),
tr("Directory missing", "message box title"),
tr("You must specify the path of the directory in which the images files will be saved.", "message box content"),
QMessageBox::Ok
);
return;
@@ -512,10 +512,10 @@ void ExportDialog::slot_export()
{
QET::QetMessageBox::warning(
this,
tr("Images non incluses dans l'export DXF", "message box title"),
tr("Le format DXF utilisé ici (AC1006) ne permet pas d'inclure d'image. "
"Les images seront représentées uniquement par un rectangle de contour "
"(position, taille, rotation et inclinaison conservées), sans le contenu de l'image.",
tr("Images not included in the DXF export", "message box title"),
tr("The DXF format used here (AC1006) cannot embed images. Images will only be "
"represented by an outline rectangle (position, size, rotation and skew are "
"preserved), without the image content.",
"message box content")
);
}
@@ -556,11 +556,11 @@ void ExportDialog::exportDiagram(ExportDiagramLine *diagram_line) {
if (file_infos.exists() && !file_infos.isWritable()) {
QET::QetMessageBox::critical(
this,
tr("Impossible d'écrire dans ce fichier", "message box title"),
tr("Can not write to this file", "message box title"),
QString(
tr(
"Il semblerait que vous n'ayez pas les permissions "
"nécessaires pour écrire dans le fichier %1.",
"It appears you do not have the required "
"permissions to write the file %1.",
"message box content"
)
).arg(diagram_path),
@@ -691,7 +691,7 @@ void ExportDialog::slot_previewDiagram(int diagram_id) {
// initialise un dialogue
QDialog preview_dialog;
preview_dialog.setWindowTitle(tr("Aperçu"));
preview_dialog.setWindowTitle(tr("Preview"));
preview_dialog.setWindowState(preview_dialog.windowState() | Qt::WindowMaximized);
QGraphicsScene *preview_scene = new QGraphicsScene();
@@ -782,9 +782,9 @@ ExportDialog::ExportDiagramLine::ExportDiagramLine(Diagram *dia, QSize diagram_s
QString diagram_title = diagram -> title();
QString diagram_index = QString::number(diagram -> folioIndex()+1);
//QString diagram_folio_label = diagram -> border_and_titleblock.finalfolio();
if (diagram_title.isEmpty()) diagram_title = QObject::tr("Folio sans titre");
if (diagram_title.isEmpty()) diagram_title = QObject::tr("Untitled sheet");
QString diagram_filename = diagram -> title();
if (diagram_filename.isEmpty()) diagram_filename = QObject::tr("schema");
if (diagram_filename.isEmpty()) diagram_filename = QObject::tr("diagram");
diagram_filename = QET::stringToFileName(diagram_index % "_" % diagram_filename);
title_label = new QLabel(diagram_title);
@@ -809,19 +809,19 @@ ExportDialog::ExportDiagramLine::ExportDiagramLine(Diagram *dia, QSize diagram_s
keep_ratio -> setCheckable(true);
keep_ratio -> setChecked(true);
keep_ratio -> setIcon(QET::Icons::ObjectLocked);
keep_ratio -> setToolTip(QObject::tr("Conserver les proportions"));
keep_ratio -> setToolTip(QObject::tr("Keep aspect ratio"));
reset_size = new QPushButton();
reset_size -> setIcon(QET::Icons::Start);
reset_size -> setToolTip(QObject::tr("Réinitialiser les dimensions"));
reset_size -> setToolTip(QObject::tr("Reset size"));
preview = new QPushButton();
preview -> setIcon(QET::Icons::ZoomOriginal);
preview -> setToolTip(QObject::tr("Aperçu"));
preview -> setToolTip(QObject::tr("Preview"));
clipboard = new QPushButton();
clipboard -> setIcon(QET::Icons::IC_CopyFile);
clipboard -> setToolTip(QObject::tr("Exporter vers le presse-papier"));
clipboard -> setToolTip(QObject::tr("Export to clipboard"));
}
/**