mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-10 14:14:18 +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:
@@ -87,10 +87,10 @@ RenumberPreviewDialog::Answer RenumberPreviewDialog::ask(
|
||||
const int changed = changedLabelCount(changes);
|
||||
QString text = intro;
|
||||
if (changes.size() > changed) {
|
||||
text += QLatin1Char('\n') + tr("%n élément(s) gardent le nom qu'ils ont.", "", changes.size() - changed);
|
||||
text += QLatin1Char('\n') + tr("%n elements keep the name they have.", "", changes.size() - changed);
|
||||
}
|
||||
if (!left_alone.isEmpty()) {
|
||||
text += QLatin1Char('\n') + tr("%n élément(s) restent comme ils sont.", "", left_alone.size());
|
||||
text += QLatin1Char('\n') + tr("%n elements stay as they are.", "", left_alone.size());
|
||||
}
|
||||
auto *intro_label = new QLabel(text, &dialog);
|
||||
intro_label->setWordWrap(true);
|
||||
@@ -98,7 +98,7 @@ RenumberPreviewDialog::Answer RenumberPreviewDialog::ask(
|
||||
|
||||
auto *table = new QTableWidget(&dialog);
|
||||
table->setColumnCount(4);
|
||||
table->setHorizontalHeaderLabels({tr("Folio"), tr("Élément"), tr("Nom actuel"), tr("Nouveau nom")});
|
||||
table->setHorizontalHeaderLabels({tr("Sheet"), tr("Element"), tr("Current name"), tr("New name")});
|
||||
table->setEditTriggers(QAbstractItemView::NoEditTriggers);
|
||||
table->setSelectionBehavior(QAbstractItemView::SelectRows);
|
||||
table->verticalHeader()->setVisible(false);
|
||||
@@ -181,7 +181,7 @@ bool RenumberPreviewDialog::confirm(
|
||||
{
|
||||
QVector<LeftAlone> left;
|
||||
for (Element *el : frozen) {
|
||||
left.append({el, tr("(figé)")});
|
||||
left.append({el, tr("(frozen)")});
|
||||
}
|
||||
return ask(parent, title, intro, changes, left) == Answer::Go;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user