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:
@@ -63,7 +63,7 @@ AutoNumberingDockWidget::AutoNumberingDockWidget(QWidget *parent) :
|
||||
m_element_apply_pb = new QPushButton(QET::Icons::DialogOk, QString(), actions);
|
||||
m_element_apply_pb->setObjectName(QStringLiteral("m_element_apply_pb"));
|
||||
m_element_apply_pb->setMaximumWidth(24);
|
||||
m_element_apply_pb->setToolTip(tr("Appliquer cette numérotation aux éléments sélectionnés"));
|
||||
m_element_apply_pb->setToolTip(tr("Apply this numbering to the selected elements"));
|
||||
reset->setParent(actions);
|
||||
actions_layout->addWidget(m_element_apply_pb);
|
||||
actions_layout->addWidget(reset);
|
||||
@@ -93,13 +93,13 @@ void AutoNumberingDockWidget::applyElementSchemeToSelection()
|
||||
if (!m_project || m_project->isReadOnly()) {
|
||||
return;
|
||||
}
|
||||
const QString caption = tr("Appliquer la numérotation");
|
||||
const QString caption = tr("Apply numbering");
|
||||
const QString title = ui->m_element_cb->currentText();
|
||||
DiagramView *view = m_project_view ? m_project_view->currentDiagram() : nullptr;
|
||||
Diagram *diagram = view ? view->diagram() : nullptr;
|
||||
if (!diagram || !m_project->elementAutoNum().contains(title)) {
|
||||
QMessageBox::information(this, caption,
|
||||
tr("Choisissez une numérotation d'éléments du projet."));
|
||||
tr("Choose an element numbering from the project."));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -112,17 +112,17 @@ void AutoNumberingDockWidget::applyElementSchemeToSelection()
|
||||
}
|
||||
if (selected.isEmpty()) {
|
||||
QMessageBox::information(this, caption,
|
||||
tr("Sélectionnez d'abord des éléments dans le folio."));
|
||||
tr("First select elements in the sheet."));
|
||||
return;
|
||||
}
|
||||
|
||||
const auto plan = ElementAutoNumSchemeCommand::assignPlan(m_project, title, selected);
|
||||
QVector<RenumberPreviewDialog::LeftAlone> left;
|
||||
for (Element *el : plan.frozen) {
|
||||
left.append({el, tr("(figé)")});
|
||||
left.append({el, tr("(frozen)")});
|
||||
}
|
||||
for (Element *el : plan.otherFormula) {
|
||||
left.append({el, tr("(autre numérotation)")});
|
||||
left.append({el, tr("(other numbering)")});
|
||||
}
|
||||
const int replaceable = static_cast<int>(left.size());
|
||||
|
||||
@@ -130,22 +130,21 @@ void AutoNumberingDockWidget::applyElementSchemeToSelection()
|
||||
if (!cmd && !replaceable) {
|
||||
QMessageBox::information(
|
||||
this, caption,
|
||||
tr("Rien à appliquer : les éléments sélectionnés suivent déjà "
|
||||
"la numérotation « %1 », ou prennent leur nom d'un autre élément.").arg(title));
|
||||
tr("Nothing to apply: the selected elements already follow the “%1” "
|
||||
"numbering, or take their name from another element.").arg(title));
|
||||
return;
|
||||
}
|
||||
|
||||
const QString intro = cmd
|
||||
? tr("%n élément(s) vont recevoir la numérotation « %1 », dans l'ordre des folios "
|
||||
"et des positions.", "", static_cast<int>(plan.todo.size())).arg(title)
|
||||
: tr("Aucun élément ne peut recevoir la numérotation « %1 » sans remplacer "
|
||||
"ce qu'il a.").arg(title);
|
||||
? tr("%n elements will receive the “%1” numbering, in sheet and position order.", "", static_cast<int>(plan.todo.size())).arg(title)
|
||||
: tr("No element can receive the “%1” numbering without replacing what it "
|
||||
"already has.").arg(title);
|
||||
const auto answer = RenumberPreviewDialog::ask(
|
||||
this, caption, intro,
|
||||
cmd ? cmd->changes() : QVector<RenumberElementsCommand::ElementChange>(),
|
||||
left,
|
||||
replaceable
|
||||
? tr("Remplacer aussi les %n élément(s) laissés comme ils sont", "", replaceable)
|
||||
? tr("Also replace the %n elements left as they are", "", replaceable)
|
||||
: QString());
|
||||
|
||||
if (answer == RenumberPreviewDialog::Answer::Cancel) {
|
||||
@@ -166,9 +165,9 @@ void AutoNumberingDockWidget::applyElementSchemeToSelection()
|
||||
if (not_given > 0) {
|
||||
QMessageBox::information(
|
||||
this, caption,
|
||||
tr("%n élément(s) numérotés.", "", applied)
|
||||
tr("%n elements numbered.", "", applied)
|
||||
+ QLatin1Char('\n')
|
||||
+ tr("%n élément(s) sélectionnés sont restés comme ils sont.", "", not_given));
|
||||
+ tr("%n selected elements were left as they are.", "", not_given));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -292,7 +291,7 @@ void AutoNumberingDockWidget::setProject(QETProject *project,
|
||||
setContext();
|
||||
|
||||
ShortcutManager::instance().registerAction(ui->m_configure_pb, "autonum.configure",
|
||||
tr("Autonumérotation"), Qt::CTRL | Qt::SHIFT | Qt::Key_P);
|
||||
tr("Auto Numbering"), Qt::CTRL | Qt::SHIFT | Qt::Key_P);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -383,8 +382,8 @@ void AutoNumberingDockWidget::updateApplyEnabled()
|
||||
&& ui->m_element_cb->count() > 0);
|
||||
m_element_apply_pb->setToolTip(
|
||||
elements_selected
|
||||
? tr("Appliquer cette numérotation aux éléments sélectionnés")
|
||||
: tr("Sélectionnez d'abord des éléments dans le folio"));
|
||||
? tr("Apply this numbering to the selected elements")
|
||||
: tr("First select elements in the sheet"));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -11,14 +11,14 @@
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Sélection numérotation auto</string>
|
||||
<string>Auto numbering selection</string>
|
||||
</property>
|
||||
<widget class="QWidget" name="dockWidgetContents">
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="0" column="3">
|
||||
<widget class="QLabel" name="value_header_label">
|
||||
<property name="text">
|
||||
<string>Valeur</string>
|
||||
<string>Value</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
@@ -28,7 +28,7 @@
|
||||
<item row="0" column="4">
|
||||
<widget class="QLabel" name="increase_header_label">
|
||||
<property name="text">
|
||||
<string>Incrément</string>
|
||||
<string>Increment</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
@@ -38,7 +38,7 @@
|
||||
<item row="0" column="5">
|
||||
<widget class="QLabel" name="next_header_label">
|
||||
<property name="text">
|
||||
<string>Suivant</string>
|
||||
<string>Next</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
@@ -51,7 +51,7 @@
|
||||
<item row="4" column="0">
|
||||
<widget class="QLabel" name="label_3">
|
||||
<property name="text">
|
||||
<string>Folio</string>
|
||||
<string>Sheet</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -67,7 +67,7 @@
|
||||
</size>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Réinitialiser à la valeur de départ</string>
|
||||
<string>Reset to the default value</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
@@ -86,7 +86,7 @@
|
||||
</size>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Valeur actuelle du compteur. Saisir une nouvelle valeur et valider pour la modifier.</string>
|
||||
<string>Current meter reading. Enter a new value and press ‘Confirm’ to change it.</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -99,7 +99,7 @@
|
||||
</size>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Incrément : valeur ajoutée au compteur à chaque nouvelle numérotation</string>
|
||||
<string>Increment: the value added to the counter each time a new number is dialled</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
@@ -121,7 +121,7 @@
|
||||
</size>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Prochaine valeur qui sera appliquée avec cet incrément</string>
|
||||
<string>The next value to be applied using this increment</string>
|
||||
</property>
|
||||
<property name="readOnly">
|
||||
<bool>true</bool>
|
||||
@@ -141,7 +141,7 @@
|
||||
<item row="2" column="0">
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="text">
|
||||
<string>Conducteur</string>
|
||||
<string>Conductor</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -154,7 +154,7 @@
|
||||
</size>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Réinitialiser à la valeur de départ</string>
|
||||
<string>Reset to the default value</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
@@ -173,7 +173,7 @@
|
||||
</size>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Valeur actuelle du compteur. Saisir une nouvelle valeur et valider pour la modifier.</string>
|
||||
<string>Current meter reading. Enter a new value and press ‘Confirm’ to change it.</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -186,7 +186,7 @@
|
||||
</size>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Incrément : valeur ajoutée au compteur à chaque nouvelle numérotation</string>
|
||||
<string>Increment: the value added to the counter each time a new number is dialled</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
@@ -208,7 +208,7 @@
|
||||
</size>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Prochaine valeur qui sera appliquée avec cet incrément</string>
|
||||
<string>The next value to be applied using this increment</string>
|
||||
</property>
|
||||
<property name="readOnly">
|
||||
<bool>true</bool>
|
||||
@@ -230,7 +230,7 @@
|
||||
</size>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Réinitialiser à la valeur de départ</string>
|
||||
<string>Reset to the default value</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
@@ -249,7 +249,7 @@
|
||||
</size>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Valeur actuelle du compteur. Saisir une nouvelle valeur et valider pour la modifier.</string>
|
||||
<string>Current meter reading. Enter a new value and press ‘Confirm’ to change it.</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -262,7 +262,7 @@
|
||||
</size>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Incrément : valeur ajoutée au compteur à chaque nouvelle numérotation</string>
|
||||
<string>Increment: the value added to the counter each time a new number is dialled</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
@@ -284,7 +284,7 @@
|
||||
</size>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Prochaine valeur qui sera appliquée avec cet incrément</string>
|
||||
<string>The next value to be applied using this increment</string>
|
||||
</property>
|
||||
<property name="readOnly">
|
||||
<bool>true</bool>
|
||||
@@ -310,10 +310,10 @@
|
||||
<item row="5" column="1">
|
||||
<widget class="QPushButton" name="m_configure_pb">
|
||||
<property name="toolTip">
|
||||
<string>Configurer les règles d'auto numérotation</string>
|
||||
<string>Configure auto numbering rules</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Configurer</string>
|
||||
<string>Configure</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset theme="configure"/>
|
||||
|
||||
@@ -129,38 +129,38 @@ void AutoNumberingManagementW::on_m_renumber_elements_pb_clicked()
|
||||
QVector<Element *> frozen;
|
||||
auto *cmd = ElementAutoNumSchemeCommand::renumber(
|
||||
project_, title, &frozen,
|
||||
title.isEmpty() ? tr("Renuméroter les éléments")
|
||||
: tr("Renuméroter les éléments (%1)").arg(title));
|
||||
title.isEmpty() ? tr("Renumber elements")
|
||||
: tr("Renumber elements (%1)").arg(title));
|
||||
if (!cmd)
|
||||
{
|
||||
QMessageBox::information(
|
||||
this, tr("Renuméroter les éléments"),
|
||||
this, tr("Renumber elements"),
|
||||
frozen.isEmpty()
|
||||
? tr("Aucun élément ne suit cette numérotation.")
|
||||
: tr("Les %n élément(s) qui suivent cette numérotation ont un nom "
|
||||
"figé : rien n'est renuméroté.", "", frozen.size()));
|
||||
? tr("No element follows this numbering.")
|
||||
: tr("The %n elements following this numbering have a frozen name: "
|
||||
"nothing is renumbered.", "", frozen.size()));
|
||||
return;
|
||||
}
|
||||
|
||||
const int renumbered = static_cast<int>(cmd->changes().size());
|
||||
const int changed = RenumberPreviewDialog::changedLabelCount(cmd->changes());
|
||||
if (!RenumberPreviewDialog::confirm(
|
||||
this, tr("Renuméroter les éléments"),
|
||||
tr("%n élément(s) vont être renumérotés, à partir du premier numéro, "
|
||||
"dans l'ordre des folios et des positions.", "", renumbered),
|
||||
this, tr("Renumber elements"),
|
||||
tr("%n elements will be renumbered, starting from the first number, "
|
||||
"in sheet and position order.", "", renumbered),
|
||||
cmd->changes(), frozen)) {
|
||||
delete cmd;
|
||||
return;
|
||||
}
|
||||
project_->undoStack()->push(cmd);
|
||||
|
||||
QString summary = tr("%n élément(s) renumérotés, dont %1 avec un nouveau nom.", "", renumbered)
|
||||
QString summary = tr("%n elements renumbered, %1 of them with a new name.", "", renumbered)
|
||||
.arg(changed);
|
||||
if (!frozen.isEmpty()) {
|
||||
summary += QLatin1Char('\n') + tr("%n élément(s) au nom figé n'ont pas été touchés, "
|
||||
"et leur numéro n'a pas été redonné.", "", frozen.size());
|
||||
summary += QLatin1Char('\n') + tr("%n elements with a frozen name were not touched, "
|
||||
"and their numbers were not given out again.", "", frozen.size());
|
||||
}
|
||||
QMessageBox::information(this, tr("Renuméroter les éléments"), summary);
|
||||
QMessageBox::information(this, tr("Renumber elements"), summary);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -271,14 +271,14 @@ void AutoNumberingManagementW::on_buttonBox_clicked(QAbstractButton *button)
|
||||
QMessageBox::information(
|
||||
this,
|
||||
tr("Auto Numbering Management", "title window"),
|
||||
tr("In this Menu you can set whether you want the Auto Numberings to be updated or not."
|
||||
" For Element Auto Numbering you have 4 options of Update Policy:\n"
|
||||
"-Both: both New and Existent Element labels will be updated. This is the default option.\n"
|
||||
"-Update Only New: only new created Elements will be updated. Existent Element labels will be frozen.\n"
|
||||
"-Update Only Existent: only existent Elements will be updated. New Elements will be assigned "
|
||||
"their formula but will not update once created.\n"
|
||||
"-Disable: both New and Existent Element labels will not be updated. This is valid for new folios as well.\n"
|
||||
"Note: These options DO NOT allow or block Auto Numberings, only their Update Policy."
|
||||
tr("In this menu you can set whether you want the auto numberings to be updated or not. For element auto "
|
||||
"numbering you have 4 options of update policy:\n"
|
||||
"-Both: both new and existent element labels will be updated. This is the default option.\n"
|
||||
"-Update only new: only new created elements will be updated. Existent element labels will be frozen.\n"
|
||||
"-Update only existent: only existent elements will be updated. New elements will be assigned their formula "
|
||||
"but will not update once created.\n"
|
||||
"-Disable: both new and existent element labels will not be updated. This is valid for new sheets as well.\n"
|
||||
"Note: these options DO NOT allow or block auto numberings, only their update policy."
|
||||
));
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
<item row="1" column="0">
|
||||
<widget class="QRadioButton" name="m_apply_folios_rb">
|
||||
<property name="text">
|
||||
<string>Apply to Selected Folios</string>
|
||||
<string>Apply to Selected Sheets</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -345,7 +345,7 @@
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Folio</string>
|
||||
<string>Sheet</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
||||
@@ -38,12 +38,15 @@ bool CounterWarning::confirm(QWidget *parent,
|
||||
}
|
||||
const auto answer = QET::QetMessageBox::question(
|
||||
parent,
|
||||
tr("Compteur de la numérotation"),
|
||||
tr("Le prochain numéro serait %1, mais %n élément(s) de la numérotation « %2 » "
|
||||
"ont déjà un numéro égal ou supérieur (jusqu'à %3).", "", conflict->count)
|
||||
tr("Numbering counter"),
|
||||
tr("The next number would be %1, but %n elements of the “%2” numbering already "
|
||||
"have an equal or higher number (up to %3).", "", conflict->count)
|
||||
.arg(conflict->counter).arg(title).arg(conflict->highest)
|
||||
+ tr("\nLes nouveaux éléments sauteront les numéros déjà pris : ils ne recevront "
|
||||
"pas forcément les numéros à partir de %1.\n\nContinuer ?").arg(conflict->counter),
|
||||
+ tr("\n"
|
||||
"New elements will skip numbers that are already taken: they will not "
|
||||
"necessarily receive numbers starting from %1.\n"
|
||||
"\n"
|
||||
"Continue?").arg(conflict->counter),
|
||||
QMessageBox::Yes | QMessageBox::Cancel,
|
||||
QMessageBox::Cancel);
|
||||
return answer == QMessageBox::Yes;
|
||||
|
||||
@@ -189,20 +189,21 @@ void FolioAutonumberingW::on_buttonBox_clicked(QAbstractButton *button)
|
||||
case QDialogButtonBox::HelpRole:
|
||||
QMessageBox::information (
|
||||
this,
|
||||
tr("Folio Autonumbering",
|
||||
tr("Sheet Autonumbering",
|
||||
"title window"),
|
||||
tr("C'est ici que vous pouvez définir la manière dont seront numérotés les nouveaux folios.\n"
|
||||
"-Une numérotation est composée d'une variable minimum.\n"
|
||||
"-Vous pouvez ajouter ou supprimer une variable de numérotation par le biais des boutons - et +.\n"
|
||||
"-Une variable de numérotation comprend : un type, une valeur et une incrémentation.\n"
|
||||
|
||||
"\n-les types \"Chiffre 1\", \"Chiffre 01\" et \"Chiffre 001\", représentent un type numérique défini dans le champ \"Valeur\", "
|
||||
"qui s'incrémente à chaque nouveau folio de la valeur du champ \"Incrémentation\".\n"
|
||||
"-\"Chiffre 01\" et \"Chiffre 001\", sont respectivement représentés sur le schéma par deux et trois digits minimum.\n"
|
||||
"Si le chiffre défini dans le champ Valeur possède moins de digits que le type choisi,"
|
||||
"celui-ci sera précédé par un ou deux 0 afin de respecter son type.\n"
|
||||
|
||||
"\n-Le type \"Texte\", représente un texte fixe.\nLe champ \"Incrémentation\" n'est pas utilisé.\n",
|
||||
tr("This is where you can define how the new sheets will be numbered.\n"
|
||||
"-A numbering is composed of a minimum variable.\n"
|
||||
"-You can add or delete a dialing variable through the - and + buttons.\n"
|
||||
"A numbering variable includes: a type, a value and an increment.\n"
|
||||
"\n"
|
||||
"-the \"Digit 1\", \"Digit 01\" and \"Digit 001\" types represent a numeric type defined in the \"Value\" field, which "
|
||||
"increments each new sheet by the value of the \"Incrementation\" field.\n"
|
||||
"- \"Digit 01\" and \"Digit 001\", are respectively represented on the diagram by two and three digits minimum.\n"
|
||||
"If the digit defined in the Value field has fewer digits than the chosen type, it will be preceded by one or two 0s in "
|
||||
"order to respect its type.\n"
|
||||
"\n"
|
||||
"-Type \"Text\", represents a fixed text.\n"
|
||||
"The \"Incrementation\" field is not used.\n",
|
||||
"help dialog about the folio autonumerotation"
|
||||
));
|
||||
break;
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Numérotation automatique de Folio :</string>
|
||||
<string>Sheet Auto Numbering :</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -63,7 +63,7 @@
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="title">
|
||||
<string>Sélection:</string>
|
||||
<string>Select:</string>
|
||||
</property>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||
<item>
|
||||
@@ -75,7 +75,7 @@
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>C&réer de nouveaux folios</string>
|
||||
<string>C&reate new sheets</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -88,7 +88,7 @@
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Numérotation automatique des folios sélectionnés</string>
|
||||
<string>Automatic numbering of selected sheets</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -104,7 +104,7 @@
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="title">
|
||||
<string> Options de numérotation</string>
|
||||
<string> Options of numbering</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout_2">
|
||||
<item row="2" column="1">
|
||||
@@ -129,7 +129,7 @@
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Nouveaux folios</string>
|
||||
<string>New sheets</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -171,7 +171,7 @@
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>À</string>
|
||||
<string>From</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -184,7 +184,7 @@
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>De</string>
|
||||
<string>To</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="title">
|
||||
<string>Dénomination automatique :</string>
|
||||
<string>Automatic name :</string>
|
||||
</property>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||
<item>
|
||||
@@ -50,7 +50,7 @@
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Formule</string>
|
||||
<string>Formula</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -102,9 +102,9 @@
|
||||
-%prefix: Default Element Prefix
|
||||
-%l: Element Line
|
||||
-%c: Element Column
|
||||
-%F: Folio Name
|
||||
-%f or %id: Folio ID
|
||||
-%total: Total of folios
|
||||
-%F: Sheet Name
|
||||
-%f or %id: Sheet ID
|
||||
-%total: Total of sheets
|
||||
You can also assign any other titleblock variable
|
||||
that you create. Text and number inputs are
|
||||
also available.</string>
|
||||
|
||||
@@ -124,43 +124,43 @@ void NumPartEditorW::setVisibleItems()
|
||||
QStringList items;
|
||||
if (m_edited_type == 2)
|
||||
{
|
||||
items << tr("Chiffre 1")
|
||||
<< tr("Chiffre 01")
|
||||
<< tr("Chiffre 001")
|
||||
<< tr("Cyclique (modulo)")
|
||||
<< tr("Alphabétique")
|
||||
<< tr("Texte");
|
||||
items << tr("number format 1")
|
||||
<< tr("number format 01")
|
||||
<< tr("number format 001")
|
||||
<< tr("Cyclic (modulo)")
|
||||
<< tr("Alphabetical")
|
||||
<< tr("Text");
|
||||
}
|
||||
else if (m_edited_type == 1)
|
||||
{
|
||||
items << tr("Chiffre 1")
|
||||
<< tr("Chiffre 1 - Folio")
|
||||
<< tr("Chiffre 01")
|
||||
<< tr("Chiffre 01 - Folio")
|
||||
<< tr("Chiffre 001")
|
||||
<< tr("Chiffre 001 - Folio")
|
||||
<< tr("Cyclique (modulo)")
|
||||
<< tr("Alphabétique")
|
||||
<< tr("Texte")
|
||||
<< tr("N° folio")
|
||||
<< tr("Folio")
|
||||
<< tr("Installation")
|
||||
<< tr("Locmach");
|
||||
items << tr("number format 1")
|
||||
<< tr("number format 1 - Sheet")
|
||||
<< tr("number format 01")
|
||||
<< tr("number format 01 - Sheet")
|
||||
<< tr("number format 001")
|
||||
<< tr("number format 001 - Sheet")
|
||||
<< tr("Cyclic (modulo)")
|
||||
<< tr("Alphabetical")
|
||||
<< tr("Text")
|
||||
<< tr("Sheet no.")
|
||||
<< tr("Sheet")
|
||||
<< tr("Plant")
|
||||
<< tr("Location");
|
||||
}
|
||||
else
|
||||
items << tr("Chiffre 1")
|
||||
<< tr("Chiffre 1 - Folio")
|
||||
<< tr("Chiffre 01")
|
||||
<< tr("Chiffre 01 - Folio")
|
||||
<< tr("Chiffre 001")
|
||||
<< tr("Chiffre 001 - Folio")
|
||||
<< tr("Cyclique (modulo)")
|
||||
<< tr("Alphabétique")
|
||||
<< tr("Texte")
|
||||
<< tr("N° folio")
|
||||
<< tr("Folio")
|
||||
<< tr("Installation")
|
||||
<< tr("Locmach")
|
||||
items << tr("number format 1")
|
||||
<< tr("number format 1 - Sheet")
|
||||
<< tr("number format 01")
|
||||
<< tr("number format 01 - Sheet")
|
||||
<< tr("number format 001")
|
||||
<< tr("number format 001 - Sheet")
|
||||
<< tr("Cyclic (modulo)")
|
||||
<< tr("Alphabetical")
|
||||
<< tr("Text")
|
||||
<< tr("Sheet no.")
|
||||
<< tr("Sheet")
|
||||
<< tr("Plant")
|
||||
<< tr("Location")
|
||||
<< tr("Element Line")
|
||||
<< tr("Element Column")
|
||||
<< tr("Element Prefix");
|
||||
@@ -274,27 +274,27 @@ bool NumPartEditorW::isValid()
|
||||
Action when user change the type comboBox
|
||||
*/
|
||||
void NumPartEditorW::on_type_cb_activated(int) {
|
||||
if (ui->type_cb->currentText() == tr("Chiffre 1"))
|
||||
if (ui->type_cb->currentText() == tr("number format 1"))
|
||||
setType(unit);
|
||||
else if (ui->type_cb->currentText() == tr("Chiffre 1 - Folio"))
|
||||
else if (ui->type_cb->currentText() == tr("number format 1 - Sheet"))
|
||||
setType(unitfolio);
|
||||
else if (ui->type_cb->currentText() == tr("Chiffre 01"))
|
||||
else if (ui->type_cb->currentText() == tr("number format 01"))
|
||||
setType(ten);
|
||||
else if (ui->type_cb->currentText() == tr("Chiffre 01 - Folio"))
|
||||
else if (ui->type_cb->currentText() == tr("number format 01 - Sheet"))
|
||||
setType(tenfolio);
|
||||
else if (ui->type_cb->currentText() == tr("Chiffre 001"))
|
||||
else if (ui->type_cb->currentText() == tr("number format 001"))
|
||||
setType(hundred);
|
||||
else if (ui->type_cb->currentText() == tr("Chiffre 001 - Folio"))
|
||||
else if (ui->type_cb->currentText() == tr("number format 001 - Sheet"))
|
||||
setType(hundredfolio);
|
||||
else if (ui->type_cb->currentText() == tr("Texte"))
|
||||
else if (ui->type_cb->currentText() == tr("Text"))
|
||||
setType(string);
|
||||
else if (ui->type_cb->currentText() == tr("N° folio"))
|
||||
else if (ui->type_cb->currentText() == tr("Sheet no."))
|
||||
setType(idfolio);
|
||||
else if (ui->type_cb->currentText() == tr("Folio"))
|
||||
else if (ui->type_cb->currentText() == tr("Sheet"))
|
||||
setType(folio);
|
||||
else if (ui->type_cb->currentText() == tr("Installation"))
|
||||
else if (ui->type_cb->currentText() == tr("Plant"))
|
||||
setType(plant);
|
||||
else if (ui->type_cb->currentText() == tr("Locmach"))
|
||||
else if (ui->type_cb->currentText() == tr("Location"))
|
||||
setType(locmach);
|
||||
else if (ui->type_cb->currentText() == tr("Element Line"))
|
||||
setType(elementline);
|
||||
@@ -302,9 +302,9 @@ void NumPartEditorW::on_type_cb_activated(int) {
|
||||
setType(elementcolumn);
|
||||
else if (ui->type_cb->currentText() == tr("Element Prefix"))
|
||||
setType(elementprefix);
|
||||
else if (ui->type_cb->currentText() == tr("Cyclique (modulo)"))
|
||||
else if (ui->type_cb->currentText() == tr("Cyclic (modulo)"))
|
||||
setType(wrap);
|
||||
else if (ui->type_cb->currentText() == tr("Alphabétique"))
|
||||
else if (ui->type_cb->currentText() == tr("Alphabetical"))
|
||||
setType(alpha);
|
||||
emit changed();
|
||||
}
|
||||
@@ -462,29 +462,29 @@ void NumPartEditorW::setType(NumPartEditorW::type t, bool fnum) {
|
||||
void NumPartEditorW::setCurrentIndex(NumPartEditorW::type t) {
|
||||
int i=-1;
|
||||
if (t == unit)
|
||||
i = ui->type_cb->findText(tr("Chiffre 1"));
|
||||
i = ui->type_cb->findText(tr("number format 1"));
|
||||
else if (t == unitfolio)
|
||||
i = ui->type_cb->findText(tr("Chiffre 1 - Folio"));
|
||||
i = ui->type_cb->findText(tr("number format 1 - Sheet"));
|
||||
else if (t == ten)
|
||||
i = ui->type_cb->findText(tr("Chiffre 01"));
|
||||
i = ui->type_cb->findText(tr("number format 01"));
|
||||
else if (t == tenfolio)
|
||||
i = ui->type_cb->findText(tr("Chiffre 01 - Folio"));
|
||||
i = ui->type_cb->findText(tr("number format 01 - Sheet"));
|
||||
else if (t == hundred)
|
||||
i = ui->type_cb->findText(tr("Chiffre 001"));
|
||||
i = ui->type_cb->findText(tr("number format 001"));
|
||||
else if (t == hundredfolio)
|
||||
i = ui->type_cb->findText(tr("Chiffre 001 - Folio"));
|
||||
i = ui->type_cb->findText(tr("number format 001 - Sheet"));
|
||||
else if (t == alpha)
|
||||
i = ui->type_cb->findText(tr("Alphabétique"));
|
||||
i = ui->type_cb->findText(tr("Alphabetical"));
|
||||
else if (t == string)
|
||||
i = ui->type_cb->findText(tr("Texte"));
|
||||
i = ui->type_cb->findText(tr("Text"));
|
||||
else if (t == idfolio)
|
||||
i = ui->type_cb->findText(tr("N° folio"));
|
||||
i = ui->type_cb->findText(tr("Sheet no."));
|
||||
else if (t == folio)
|
||||
i = ui->type_cb->findText(tr("Folio"));
|
||||
i = ui->type_cb->findText(tr("Sheet"));
|
||||
else if (t == plant)
|
||||
i = ui->type_cb->findText(tr("Installation"));
|
||||
i = ui->type_cb->findText(tr("Plant"));
|
||||
else if (t == locmach)
|
||||
i = ui->type_cb->findText(tr("Locmach"));
|
||||
i = ui->type_cb->findText(tr("Location"));
|
||||
else if (t == elementline)
|
||||
i = ui->type_cb->findText(tr("Element Line"));
|
||||
else if (t == elementcolumn)
|
||||
@@ -492,6 +492,6 @@ void NumPartEditorW::setCurrentIndex(NumPartEditorW::type t) {
|
||||
else if (t == elementprefix)
|
||||
i = ui->type_cb->findText(tr("Element Prefix"));
|
||||
else if (t == wrap)
|
||||
i = ui->type_cb->findText(tr("Cyclique (modulo)"));
|
||||
i = ui->type_cb->findText(tr("Cyclic (modulo)"));
|
||||
ui->type_cb->setCurrentIndex(i);
|
||||
}
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Mettre à 0 pour un chiffre qui n'avance que par le report d'un chiffre cyclique suivant (ex: le "0" de "0.7")</string>
|
||||
<string>Set to 0 for a number that only increases by carrying over the next digit in the cycle (e.g. the ‘0’ in ‘0.7’)</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
@@ -107,7 +107,7 @@
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Valeur à laquelle ce chiffre revient à 0 en incrémentant le chiffre précédent (0 = pas de cycle)</string>
|
||||
<string>The value at which this figure returns to 0 when the previous figure is incremented (0 = no cycle)</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
@@ -138,7 +138,7 @@
|
||||
</size>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Format d'affichage : une suite de zéros donne le nombre minimum de chiffres (00 = 07, 000 = 007). Vide = largeur naturelle du type.</string>
|
||||
<string>Display format: a sequence of zeros specifies the minimum number of digits (00 = 07, 000 = 007). Blank = the natural width of the type.</string>
|
||||
</property>
|
||||
<property name="placeholderText">
|
||||
<string>0</string>
|
||||
|
||||
@@ -62,10 +62,11 @@ void PasteNumberingImport::push(QWidget *parent,
|
||||
}
|
||||
const auto answer = QET::QetMessageBox::question(
|
||||
parent,
|
||||
tr("Numérotation absente de ce projet"),
|
||||
tr("Les éléments collés suivent %n numérotation(s) qui n'existe(nt) pas dans ce projet : %1.\n\n"
|
||||
"Les importer ? Les éléments recevront alors les prochains numéros, à partir de 1. "
|
||||
"Sinon ils seront collés sans numérotation.", "", static_cast<int>(missing.size()))
|
||||
tr("Numbering missing from this project"),
|
||||
tr("The pasted elements follow %n numberings that do not exist in this project: %1.\n"
|
||||
"\n"
|
||||
"Import them? The elements will then receive the next numbers, starting from 1. Otherwise "
|
||||
"they will be pasted without numbering.", "", static_cast<int>(missing.size()))
|
||||
.arg(names.join(QStringLiteral(", "))),
|
||||
QMessageBox::Yes | QMessageBox::No,
|
||||
QMessageBox::Yes);
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -57,9 +57,9 @@ SelectAutonumW::SelectAutonumW(int type, QWidget *parent) :
|
||||
add_layout->addWidget(ui->add_button);
|
||||
add_layout->addStretch();
|
||||
ui->editor_layout->addWidget(m_add_row);
|
||||
ui->buttonBox->button(QDialogButtonBox::Reset)->setText(tr("Annuler"));
|
||||
ui->buttonBox->button(QDialogButtonBox::Reset)->setText(tr("Cancel"));
|
||||
ui->buttonBox->button(QDialogButtonBox::Reset)->setToolTip(
|
||||
tr("Revenir à la définition enregistrée"));
|
||||
tr("Revert to the saved definition"));
|
||||
|
||||
if (m_edited_type == 0)
|
||||
{
|
||||
@@ -166,9 +166,9 @@ void SelectAutonumW::insertPartRow(NumPartEditorW *part)
|
||||
layout->addWidget(button);
|
||||
return button;
|
||||
};
|
||||
r.up = make_button(QET::Icons::GoUp, tr("Monter cette variable"));
|
||||
r.down = make_button(QET::Icons::GoDown, tr("Descendre cette variable"));
|
||||
r.remove = make_button(QET::Icons::EditDelete, tr("Supprimer cette variable"));
|
||||
r.up = make_button(QET::Icons::GoUp, tr("Move this variable up"));
|
||||
r.down = make_button(QET::Icons::GoDown, tr("Move this variable down"));
|
||||
r.remove = make_button(QET::Icons::EditDelete, tr("Delete this variable"));
|
||||
QWidget *row = r.row;
|
||||
connect(r.up, &QToolButton::clicked, this, [this, row]() { movePartRow(row, -1); });
|
||||
connect(r.down, &QToolButton::clicked, this, [this, row]() { movePartRow(row, +1); });
|
||||
@@ -316,20 +316,21 @@ void SelectAutonumW::on_buttonBox_clicked(QAbstractButton *button)
|
||||
{
|
||||
QMessageBox::information (
|
||||
this,
|
||||
tr("Folio Autonumérotation",
|
||||
tr("Sheet Auto Numbering",
|
||||
"title window"),
|
||||
tr("C'est ici que vous pouvez définir la manière dont seront numérotés les nouveaux folios.\n"
|
||||
"-Une numérotation est composée d'une variable minimum.\n"
|
||||
"-Vous pouvez ajouter ou supprimer une variable de numérotation par le biais des boutons - et +.\n"
|
||||
"-Une variable de numérotation comprend : un type, une valeur et une incrémentation.\n"
|
||||
|
||||
"\n-les types \"Chiffre 1\", \"Chiffre 01\" et \"Chiffre 001\", représentent un type numérique défini dans le champ \"Valeur\", "
|
||||
"qui s'incrémente à chaque nouveau folio de la valeur du champ \"Incrémentation\".\n"
|
||||
"-\"Chiffre 01\" et \"Chiffre 001\", sont respectivement représentés sur le schéma par deux et trois digits minimum.\n"
|
||||
"Si le chiffre défini dans le champ Valeur possède moins de digits que le type choisi,"
|
||||
"celui-ci sera précédé par un ou deux 0 afin de respecter son type.\n"
|
||||
|
||||
"\n-Le type \"Texte\", représente un texte fixe.\nLe champ \"Incrémentation\" n'est pas utilisé.\n",
|
||||
tr("This is where you can define how the new sheets will be numbered.\n"
|
||||
"-A numbering is composed of a minimum variable.\n"
|
||||
"-You can add or delete a dialing variable through the - and + buttons.\n"
|
||||
"A numbering variable includes: a type, a value and an increment.\n"
|
||||
"\n"
|
||||
"-the \"Digit 1\", \"Digit 01\" and \"Digit 001\" types represent a numeric type defined in the \"Value\" field, which "
|
||||
"increments each new sheet by the value of the \"Incrementation\" field.\n"
|
||||
"- \"Digit 01\" and \"Digit 001\", are respectively represented on the diagram by two and three digits minimum.\n"
|
||||
"If the digit defined in the Value field has fewer digits than the chosen type, it will be preceded by one or two 0s in "
|
||||
"order to respect its type.\n"
|
||||
"\n"
|
||||
"-Type \"Text\", represents a fixed text.\n"
|
||||
"The \"Incrementation\" field is not used.\n",
|
||||
"help dialog about the folio autonumerotation"
|
||||
));
|
||||
break;
|
||||
@@ -338,24 +339,27 @@ void SelectAutonumW::on_buttonBox_clicked(QAbstractButton *button)
|
||||
{
|
||||
QMessageBox::information (
|
||||
this,
|
||||
tr("Conducteur Autonumérotation",
|
||||
tr("Numbering conductors",
|
||||
"title window"),
|
||||
tr("C'est ici que vous pouvez définir la manière dont seront numérotés les nouveaux conducteurs.\n"
|
||||
"-Une numérotation est composée d'une variable minimum.\n"
|
||||
"-Vous pouvez ajouter ou supprimer une variable de numérotation par le biais des boutons - et +.\n"
|
||||
"-Une variable de numérotation comprend : un type, une valeur et une incrémentation.\n"
|
||||
|
||||
"\n-les types \"Chiffre 1\", \"Chiffre 01\" et \"Chiffre 001\", représentent un type numérique défini dans le champ \"Valeur\", "
|
||||
"qui s'incrémente à chaque nouveau conducteur de la valeur du champ \"Incrémentation\".\n"
|
||||
"-\"Chiffre 01\" et \"Chiffre 001\", sont respectivement représentés sur le schéma par deux et trois digits minimum.\n"
|
||||
"Si le chiffre défini dans le champ Valeur possède moins de digits que le type choisi,"
|
||||
"celui-ci sera précédé par un ou deux 0 afin de respecter son type.\n"
|
||||
|
||||
"\n-Le type \"Texte\", représente un texte fixe.\nLe champ \"Incrémentation\" n'est pas utilisé.\n"
|
||||
|
||||
"\n-Le type \"N° folio\" représente le n° du folio en cours.\nLes autres champs ne sont pas utilisés.\n"
|
||||
|
||||
"\n-Le type \"Folio\" représente le nom du folio en cours.\nLes autres champs ne sont pas utilisés.",
|
||||
tr("This is where you can define how new conductors will be numbered.\n"
|
||||
"-A numbering is composed of a minimum variable.\n"
|
||||
"-You can add or delete a dialing variable through the - and + buttons.\n"
|
||||
"A numbering variable includes: a type, a value and an increment.\n"
|
||||
"\n"
|
||||
"the \"Digit 1\", \"Digit 01\" and \"Digit 001\" types represent a numeric type defined in the \"Value\" field, which is "
|
||||
"incremented to each new conductor by the value of the \"Incrementation\" field.\n"
|
||||
"- \"Digit 01\" and \"Digit 001\", are respectively represented on the diagram by two and three digits minimum.\n"
|
||||
"If the digit defined in the Value field has fewer digits than the chosen type, it will be preceded by one or two 0s in "
|
||||
"order to respect its type.\n"
|
||||
"\n"
|
||||
"-Type \"Text\", represents a fixed text.\n"
|
||||
"The \"Incrementation\" field is not used.\n"
|
||||
"\n"
|
||||
"-The \"sheet\" type represents the number of the current sheet.\n"
|
||||
"The other fields are not used.\n"
|
||||
"\n"
|
||||
"-The \"Sheet\" type represents the name of the current sheet.\n"
|
||||
"The other fields are not used.",
|
||||
"help dialog about the conductor autonumerotation"
|
||||
));
|
||||
break;
|
||||
@@ -364,24 +368,27 @@ void SelectAutonumW::on_buttonBox_clicked(QAbstractButton *button)
|
||||
{
|
||||
QMessageBox::information (
|
||||
this,
|
||||
tr("Element Autonumérotation",
|
||||
tr("Element Auto Numbering",
|
||||
"title window"),
|
||||
tr("C'est ici que vous pouvez définir la manière dont seront numérotés les nouveaux elements.\n"
|
||||
"-Une numérotation est composée d'une variable minimum.\n"
|
||||
"-Vous pouvez ajouter ou supprimer une variable de numérotation par le biais des boutons - et +.\n"
|
||||
"-Une variable de numérotation comprend : un type, une valeur et une incrémentation.\n"
|
||||
|
||||
"\n-les types \"Chiffre 1\", \"Chiffre 01\" et \"Chiffre 001\", représentent un type numérique défini dans le champ \"Valeur\", "
|
||||
"qui s'incrémente à chaque nouveau conducteur de la valeur du champ \"Incrémentation\".\n"
|
||||
"-\"Chiffre 01\" et \"Chiffre 001\", sont respectivement représentés sur le schéma par deux et trois digits minimum.\n"
|
||||
"Si le chiffre défini dans le champ Valeur possède moins de digits que le type choisi,"
|
||||
"celui-ci sera précédé par un ou deux 0 afin de respecter son type.\n"
|
||||
|
||||
"\n-Le type \"Texte\", représente un texte fixe.\nLe champ \"Incrémentation\" n'est pas utilisé.\n"
|
||||
|
||||
"\n-Le type \"N° folio\" représente le n° du folio en cours.\nLes autres champs ne sont pas utilisés.\n"
|
||||
|
||||
"\n-Le type \"Folio\" représente le nom du folio en cours.\nLes autres champs ne sont pas utilisés.",
|
||||
tr("This is where you can define how new elements will be numbered.\n"
|
||||
"-A numbering is composed of a minimum variable.\n"
|
||||
"-You can add or delete a dialing variable through the - and + buttons.\n"
|
||||
"A numbering variable includes: a type, a value and an increment.\n"
|
||||
"\n"
|
||||
"the \"Digit 1\", \"Digit 01\" and \"Digit 001\" types represent a numeric type defined in the \"Value\" field, which is "
|
||||
"incremented to each new conductor by the value of the \"Incrementation\" field.\n"
|
||||
"- \"Digit 01\" and \"Digit 001\", are respectively represented on the diagram by two and three digits minimum.\n"
|
||||
"If the digit defined in the Value field has fewer digits than the chosen type, it will be preceded by one or two 0s in "
|
||||
"order to respect its type.\n"
|
||||
"\n"
|
||||
"-Type \"Text\", represents a fixed text.\n"
|
||||
"The \"Incrementation\" field is not used.\n"
|
||||
"\n"
|
||||
"-The \"sheet\" type represents the number of the current sheet.\n"
|
||||
"The other fields are not used.\n"
|
||||
"\n"
|
||||
"-The \"Sheet\" type represents the name of the current sheet.\n"
|
||||
"The other fields are not used.",
|
||||
"help dialog about the element autonumerotation"
|
||||
));
|
||||
break;
|
||||
@@ -467,11 +474,11 @@ void SelectAutonumW::setExplicitNaming()
|
||||
const int index = row->indexOf(ui->m_remove_pb);
|
||||
|
||||
auto *new_pb = new QPushButton(QET::Icons::Add, QString(), this);
|
||||
new_pb->setToolTip(tr("Nouvelle numérotation…"));
|
||||
new_pb->setToolTip(tr("New numbering…"));
|
||||
connect(new_pb, &QPushButton::clicked, this, &SelectAutonumW::newClicked);
|
||||
|
||||
auto *rename_pb = new QPushButton(QET::Icons::EditRename, QString(), this);
|
||||
rename_pb->setToolTip(tr("Renommer la numérotation…"));
|
||||
rename_pb->setToolTip(tr("Rename numbering…"));
|
||||
connect(rename_pb, &QPushButton::clicked, this, &SelectAutonumW::renameClicked);
|
||||
|
||||
row->insertWidget(index, rename_pb);
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
<item>
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>Numérotations disponibles :</string>
|
||||
<string>Availables numbering :</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -49,7 +49,7 @@
|
||||
</property>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Nom de la nouvelle numérotation</string>
|
||||
<string>Name of the new numbering</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
@@ -57,7 +57,7 @@
|
||||
<item>
|
||||
<widget class="QPushButton" name="m_remove_pb">
|
||||
<property name="toolTip">
|
||||
<string>Supprimer la numérotation</string>
|
||||
<string>Delete numbering</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
@@ -96,7 +96,7 @@
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="title">
|
||||
<string>Définition</string>
|
||||
<string>Definition</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
|
||||
@@ -129,7 +129,7 @@
|
||||
<item>
|
||||
<widget class="QPushButton" name="remove_button">
|
||||
<property name="toolTip">
|
||||
<string><html><head/><body><p>Supprimer une variable de numérotation</p></body></html></string>
|
||||
<string><html><head/><body><p>Delete a variable numbering</p></body></html></string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
@@ -145,7 +145,7 @@
|
||||
<item>
|
||||
<widget class="QPushButton" name="add_button">
|
||||
<property name="toolTip">
|
||||
<string><html><head/><body><p>Ajouter une variable de numérotation</p></body></html></string>
|
||||
<string><html><head/><body><p>Add a variable numbering</p></body></html></string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
@@ -202,10 +202,10 @@
|
||||
<item>
|
||||
<widget class="QLabel" name="value_label">
|
||||
<property name="toolTip">
|
||||
<string>Pour un numéro : le prochain numéro attribué. Pour un texte : le texte fixe.</string>
|
||||
<string>For a number: the next number to be assigned. For text: the fixed text.</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Valeur</string>
|
||||
<string>Value</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
@@ -221,7 +221,7 @@
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Incrémentation</string>
|
||||
<string>Incrementing</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
|
||||
Reference in New Issue
Block a user