mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-09 21:54:13 +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:
@@ -157,54 +157,54 @@ void SearchAndReplaceWidget::setUpTreeItems()
|
||||
{
|
||||
m_root_qtwi = new QTreeWidgetItem(ui->m_tree_widget);
|
||||
m_root_qtwi->setIcon(0, QET::Icons::ProjectProperties);
|
||||
m_root_qtwi->setText(0, tr("Correspondance :"));
|
||||
m_root_qtwi->setText(0, tr("Correspondence:"));
|
||||
m_root_qtwi->setCheckState(0, Qt::Checked);
|
||||
m_category_qtwi.append(m_root_qtwi);
|
||||
|
||||
m_folio_qtwi = new QTreeWidgetItem(m_root_qtwi);
|
||||
m_folio_qtwi->setIcon(0, QET::Icons::Diagram);
|
||||
m_folio_qtwi->setText(0, tr("Folios"));
|
||||
m_folio_qtwi->setText(0, tr("Sheets"));
|
||||
m_folio_qtwi->setCheckState(0, Qt::Checked);
|
||||
m_category_qtwi.append(m_folio_qtwi);
|
||||
|
||||
m_indi_text_qtwi = new QTreeWidgetItem(m_root_qtwi);
|
||||
m_indi_text_qtwi->setIcon(0, QET::Icons::PartText);
|
||||
m_indi_text_qtwi->setText(0, tr("Champs texte"));
|
||||
m_indi_text_qtwi->setText(0, tr("Text fields"));
|
||||
m_indi_text_qtwi->setCheckState(0, Qt::Checked);
|
||||
m_category_qtwi.append(m_indi_text_qtwi);
|
||||
|
||||
m_elements_qtwi = new QTreeWidgetItem(m_root_qtwi);
|
||||
m_elements_qtwi->setIcon(0, QET::Icons::Element);
|
||||
m_elements_qtwi->setText(0, tr("Eléments"));
|
||||
m_elements_qtwi->setText(0, tr("Elements"));
|
||||
m_elements_qtwi->setCheckState(0, Qt::Checked);
|
||||
m_category_qtwi.append(m_elements_qtwi);
|
||||
|
||||
m_simple_elmt_qtwi = new QTreeWidgetItem(m_elements_qtwi);
|
||||
m_simple_elmt_qtwi->setText(0, tr("Eléments simple"));
|
||||
m_simple_elmt_qtwi->setText(0, tr("Simple elements"));
|
||||
m_simple_elmt_qtwi->setIcon(0, QET::Icons::Element);
|
||||
m_simple_elmt_qtwi->setCheckState(0, Qt::Checked);
|
||||
m_qtwi_elmts.append(m_simple_elmt_qtwi);
|
||||
|
||||
m_master_elmt_qtwi= new QTreeWidgetItem(m_elements_qtwi);
|
||||
m_master_elmt_qtwi->setText(0, tr("Eléments maître"));
|
||||
m_master_elmt_qtwi->setText(0, tr("Master elements"));
|
||||
m_master_elmt_qtwi->setIcon(0, QET::Icons::ElementMaster);
|
||||
m_master_elmt_qtwi->setCheckState(0, Qt::Checked);
|
||||
m_qtwi_elmts.append(m_master_elmt_qtwi);
|
||||
|
||||
m_slave_elmt_qtwi = new QTreeWidgetItem(m_elements_qtwi);
|
||||
m_slave_elmt_qtwi->setText(0, tr("Eléments esclave"));
|
||||
m_slave_elmt_qtwi->setText(0, tr("Slave elements"));
|
||||
m_slave_elmt_qtwi->setIcon(0, QET::Icons::ElementSlave);
|
||||
m_slave_elmt_qtwi->setCheckState(0, Qt::Checked);
|
||||
m_qtwi_elmts.append(m_slave_elmt_qtwi);
|
||||
|
||||
m_report_elmt_qtwi = new QTreeWidgetItem(m_elements_qtwi);
|
||||
m_report_elmt_qtwi->setText(0, tr("Eléments report de folio"));
|
||||
m_report_elmt_qtwi->setText(0, tr("Sheet reference elements"));
|
||||
m_report_elmt_qtwi->setIcon(0, QET::Icons::FolioXrefComing);
|
||||
m_report_elmt_qtwi->setCheckState(0, Qt::Checked);
|
||||
m_qtwi_elmts.append(m_report_elmt_qtwi);
|
||||
|
||||
m_terminal_elmt_qtwi = new QTreeWidgetItem(m_elements_qtwi);
|
||||
m_terminal_elmt_qtwi->setText(0, tr("Eléments bornier"));
|
||||
m_terminal_elmt_qtwi->setText(0, tr("Terminal elements"));
|
||||
m_terminal_elmt_qtwi->setIcon(0, QET::Icons::ElementTerminal);
|
||||
m_terminal_elmt_qtwi->setCheckState(0, Qt::Checked);
|
||||
m_qtwi_elmts.append(m_terminal_elmt_qtwi);
|
||||
@@ -212,7 +212,7 @@ void SearchAndReplaceWidget::setUpTreeItems()
|
||||
|
||||
m_conductor_qtwi = new QTreeWidgetItem(m_root_qtwi);
|
||||
m_conductor_qtwi->setIcon(0, QET::Icons::Conductor);
|
||||
m_conductor_qtwi->setText(0, tr("Conducteurs"));
|
||||
m_conductor_qtwi->setText(0, tr("Conductors"));
|
||||
m_conductor_qtwi->setCheckState(0, Qt::Checked);
|
||||
m_category_qtwi.append(m_conductor_qtwi);
|
||||
|
||||
@@ -361,7 +361,7 @@ void SearchAndReplaceWidget::addElement(Element *element)
|
||||
str += (" ");
|
||||
str += element->elementInformations().value("comment").toString();
|
||||
if (str.isEmpty())
|
||||
str = tr("Inconnue");
|
||||
str = tr("Unknown");
|
||||
qtwi->setText(0, str);
|
||||
qtwi->setCheckState(0, Qt::Checked);
|
||||
qtwi->setData(0, Qt::UserRole, searchTerms(element));
|
||||
@@ -463,9 +463,9 @@ void SearchAndReplaceWidget::search()
|
||||
*/
|
||||
void SearchAndReplaceWidget::setUpActions()
|
||||
{
|
||||
m_select_elements = new QAction(QET::Icons::Element, tr("Sélectionner les éléments de ce folio"), ui->m_tree_widget);
|
||||
m_select_conductors = new QAction(QET::Icons::Conductor, tr("Sélectionner les conducteurs de ce folio"), ui->m_tree_widget);
|
||||
m_select_texts = new QAction(QET::Icons::PartText, tr("Sélectionner les textes de ce folio"), ui->m_tree_widget);
|
||||
m_select_elements = new QAction(QET::Icons::Element, tr("Select the elements of this sheet"), ui->m_tree_widget);
|
||||
m_select_conductors = new QAction(QET::Icons::Conductor, tr("Select the conductors of this sheet"), ui->m_tree_widget);
|
||||
m_select_texts = new QAction(QET::Icons::PartText, tr("Select the texts of this sheet"), ui->m_tree_widget);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1138,8 +1138,8 @@ void SearchAndReplaceWidget::on_m_folio_pb_clicked()
|
||||
if (result == QDialogButtonBox::AcceptRole)
|
||||
{
|
||||
QString text = ui->m_folio_pb->text();
|
||||
if (!text.endsWith(tr(" [édité]"))) {
|
||||
text.append(tr(" [édité]"));
|
||||
if (!text.endsWith(tr(" [edited]"))) {
|
||||
text.append(tr(" [edited]"));
|
||||
}
|
||||
ui->m_folio_pb->setText(text);
|
||||
m_worker.m_titleblock_properties =
|
||||
@@ -1148,8 +1148,8 @@ void SearchAndReplaceWidget::on_m_folio_pb_clicked()
|
||||
else if (result == QDialogButtonBox::ResetRole)
|
||||
{
|
||||
QString text = ui->m_folio_pb->text();
|
||||
if (text.endsWith(tr(" [édité]"))) {
|
||||
text.remove(tr(" [édité]"));
|
||||
if (text.endsWith(tr(" [edited]"))) {
|
||||
text.remove(tr(" [edited]"));
|
||||
}
|
||||
ui->m_folio_pb->setText(text);
|
||||
m_worker.m_titleblock_properties = TitleBlockProperties();
|
||||
@@ -1169,7 +1169,7 @@ void SearchAndReplaceWidget::on_m_replace_pb_clicked()
|
||||
if (!m_category_qtwi.contains(qtwi)
|
||||
&& qtwi->checkState(0) == Qt::Checked)
|
||||
{
|
||||
if (ui->m_folio_pb->text().endsWith(tr(" [édité]")) &&
|
||||
if (ui->m_folio_pb->text().endsWith(tr(" [edited]")) &&
|
||||
m_diagram_hash.contains(qtwi))
|
||||
{
|
||||
QPointer<Diagram> d = m_diagram_hash.value(qtwi);
|
||||
@@ -1177,7 +1177,7 @@ void SearchAndReplaceWidget::on_m_replace_pb_clicked()
|
||||
m_worker.replaceDiagram(d.data());
|
||||
}
|
||||
}
|
||||
else if (ui->m_element_pb->text().endsWith(tr(" [édité]")) &&
|
||||
else if (ui->m_element_pb->text().endsWith(tr(" [edited]")) &&
|
||||
m_element_hash.contains(qtwi))
|
||||
{
|
||||
QPointer<Element> e = m_element_hash.value(qtwi);
|
||||
@@ -1196,7 +1196,7 @@ void SearchAndReplaceWidget::on_m_replace_pb_clicked()
|
||||
}
|
||||
|
||||
}
|
||||
else if (ui->m_conductor_pb->text().endsWith(tr(" [édité]")) &&
|
||||
else if (ui->m_conductor_pb->text().endsWith(tr(" [edited]")) &&
|
||||
m_conductor_hash.contains(qtwi))
|
||||
{
|
||||
QPointer<Conductor> c = m_conductor_hash.value(qtwi);
|
||||
@@ -1206,7 +1206,7 @@ void SearchAndReplaceWidget::on_m_replace_pb_clicked()
|
||||
}
|
||||
|
||||
//Replace advanced
|
||||
if (ui->m_advanced_replace_pb->text().endsWith(tr(" [édité]")))
|
||||
if (ui->m_advanced_replace_pb->text().endsWith(tr(" [edited]")))
|
||||
{
|
||||
QList <Diagram *>dl;
|
||||
QList <Element *>el;
|
||||
@@ -1260,20 +1260,20 @@ void SearchAndReplaceWidget::on_m_replace_pb_clicked()
|
||||
*/
|
||||
void SearchAndReplaceWidget::on_m_replace_all_pb_clicked()
|
||||
{
|
||||
if (ui->m_folio_pb->text().endsWith(tr(" [édité]"))) {
|
||||
if (ui->m_folio_pb->text().endsWith(tr(" [edited]"))) {
|
||||
m_worker.replaceDiagram(selectedDiagram());
|
||||
}
|
||||
if (ui->m_element_pb->text().endsWith(tr(" [édité]"))) {
|
||||
if (ui->m_element_pb->text().endsWith(tr(" [edited]"))) {
|
||||
m_worker.replaceElement(selectedElement());
|
||||
}
|
||||
if (!ui->m_replace_le->text().isEmpty()) {
|
||||
m_worker.m_indi_text = ui->m_replace_le->text();
|
||||
m_worker.replaceIndiText(selectedText() );
|
||||
}
|
||||
if (ui->m_conductor_pb->text().endsWith(tr(" [édité]"))) {
|
||||
if (ui->m_conductor_pb->text().endsWith(tr(" [edited]"))) {
|
||||
m_worker.replaceConductor(selectedConductor());
|
||||
}
|
||||
if (ui->m_advanced_replace_pb->text().endsWith(tr(" [édité]"))) {
|
||||
if (ui->m_advanced_replace_pb->text().endsWith(tr(" [edited]"))) {
|
||||
|
||||
m_worker.replaceAdvanced(selectedDiagram(),
|
||||
selectedElement(),
|
||||
@@ -1300,8 +1300,8 @@ void SearchAndReplaceWidget::on_m_element_pb_clicked()
|
||||
if (result == QDialogButtonBox::AcceptRole)
|
||||
{
|
||||
QString text = ui->m_element_pb->text();
|
||||
if (!text.endsWith(tr(" [édité]"))) {
|
||||
text.append(tr(" [édité]"));
|
||||
if (!text.endsWith(tr(" [edited]"))) {
|
||||
text.append(tr(" [edited]"));
|
||||
}
|
||||
ui->m_element_pb->setText(text);
|
||||
m_worker.m_element_context = dialog->context();
|
||||
@@ -1309,8 +1309,8 @@ void SearchAndReplaceWidget::on_m_element_pb_clicked()
|
||||
else if (result == QDialogButtonBox::ResetRole)
|
||||
{
|
||||
QString text = ui->m_element_pb->text();
|
||||
if (text.endsWith(tr(" [édité]"))) {
|
||||
text.remove(tr(" [édité]"));
|
||||
if (text.endsWith(tr(" [edited]"))) {
|
||||
text.remove(tr(" [edited]"));
|
||||
}
|
||||
ui->m_element_pb->setText(text);
|
||||
m_worker.m_element_context = DiagramContext();
|
||||
@@ -1353,8 +1353,8 @@ void SearchAndReplaceWidget::on_m_conductor_pb_clicked()
|
||||
if (result == QDialogButtonBox::AcceptRole)
|
||||
{
|
||||
QString text = ui->m_conductor_pb->text();
|
||||
if (!text.endsWith(tr(" [édité]"))) {
|
||||
text.append(tr(" [édité]"));
|
||||
if (!text.endsWith(tr(" [edited]"))) {
|
||||
text.append(tr(" [edited]"));
|
||||
}
|
||||
ui->m_conductor_pb->setText(text);
|
||||
m_worker.m_conductor_properties = dialog->properties();
|
||||
@@ -1362,8 +1362,8 @@ void SearchAndReplaceWidget::on_m_conductor_pb_clicked()
|
||||
else if (result == QDialogButtonBox::ResetRole)
|
||||
{
|
||||
QString text = ui->m_conductor_pb->text();
|
||||
if (text.endsWith(tr(" [édité]"))) {
|
||||
text.remove(tr(" [édité]"));
|
||||
if (text.endsWith(tr(" [edited]"))) {
|
||||
text.remove(tr(" [edited]"));
|
||||
}
|
||||
ui->m_conductor_pb->setText(text);
|
||||
m_worker.m_conductor_properties =
|
||||
@@ -1385,8 +1385,8 @@ void SearchAndReplaceWidget::on_m_advanced_replace_pb_clicked()
|
||||
if (result == QDialogButtonBox::AcceptRole)
|
||||
{
|
||||
QString text = ui->m_advanced_replace_pb->text();
|
||||
if (!text.endsWith(tr(" [édité]"))) {
|
||||
text.append(tr(" [édité]"));
|
||||
if (!text.endsWith(tr(" [edited]"))) {
|
||||
text.append(tr(" [edited]"));
|
||||
}
|
||||
ui->m_advanced_replace_pb->setText(text);
|
||||
m_worker.m_advanced_struct = dialog->advancedStruct();
|
||||
@@ -1394,8 +1394,8 @@ void SearchAndReplaceWidget::on_m_advanced_replace_pb_clicked()
|
||||
else if (result == QDialogButtonBox::ResetRole)
|
||||
{
|
||||
QString text = ui->m_advanced_replace_pb->text();
|
||||
if (text.endsWith(tr(" [édité]"))) {
|
||||
text.remove(tr(" [édité]"));
|
||||
if (text.endsWith(tr(" [edited]"))) {
|
||||
text.remove(tr(" [edited]"));
|
||||
}
|
||||
ui->m_advanced_replace_pb->setText(text);
|
||||
m_worker.m_advanced_struct = advancedReplaceStruct();
|
||||
|
||||
Reference in New Issue
Block a user