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:
@@ -203,8 +203,8 @@ ConductorProperties PotentialSelectorDialog::chosenProperties(QList<ConductorPro
|
||||
QDialog dialog(widget);
|
||||
QVBoxLayout layout(widget);
|
||||
dialog.setLayout(&layout);
|
||||
QLabel label(tr("Veuillez choisir un potentiel électrique de la liste \n"
|
||||
"à utiliser pour le nouveau potentiel"));
|
||||
QLabel label(tr("Please select an electrical potential from the list \n"
|
||||
"to use for the new potential"));
|
||||
layout.addWidget(&label);
|
||||
|
||||
QHash <QRadioButton *, ConductorProperties> H;
|
||||
@@ -212,15 +212,15 @@ ConductorProperties PotentialSelectorDialog::chosenProperties(QList<ConductorPro
|
||||
{
|
||||
QString text;
|
||||
if(!cp.text.isEmpty())
|
||||
text.append(tr("\nNuméro : %1").arg(cp.text));
|
||||
text.append(tr("\nNumber: %1").arg(cp.text));
|
||||
if(!cp.m_function.isEmpty())
|
||||
text.append(tr("\nFonction : %1").arg(cp.m_function));
|
||||
text.append(tr("\nFunction : %1").arg(cp.m_function));
|
||||
if(!cp.m_tension_protocol.isEmpty())
|
||||
text.append(tr("\nTension/protocole : %1").arg(cp.m_tension_protocol));
|
||||
text.append(tr("\nVoltage / Protocol : %1").arg(cp.m_tension_protocol));
|
||||
if(!cp.m_wire_color.isEmpty())
|
||||
text.append(tr("\nCouleur du conducteur : %1").arg(cp.m_wire_color));
|
||||
text.append(tr("\nConductor color : %1").arg(cp.m_wire_color));
|
||||
if(!cp.m_wire_section.isEmpty())
|
||||
text.append(tr("\nSection du conducteur : %1").arg(cp.m_wire_section));
|
||||
text.append(tr("\nConductor section : %1").arg(cp.m_wire_section));
|
||||
|
||||
QRadioButton *b = new QRadioButton(text, &dialog);
|
||||
layout.addWidget(b);
|
||||
@@ -311,7 +311,7 @@ PotentialSelectorDialog::~PotentialSelectorDialog()
|
||||
*/
|
||||
void PotentialSelectorDialog::buildWidget()
|
||||
{
|
||||
QString text1(tr("%n conducteurs composent le potentiel suivant :",
|
||||
QString text1(tr("%n conductors make up the following potential :",
|
||||
"",
|
||||
m_potential_selector->m_conductor_number_1));
|
||||
|
||||
@@ -320,20 +320,20 @@ void PotentialSelectorDialog::buildWidget()
|
||||
cp1 = m_potential_selector->m_properties_list_1.first();;
|
||||
|
||||
if(!cp1.text.isEmpty())
|
||||
text1.append(tr("\nNuméro : %1").arg(cp1.text));
|
||||
text1.append(tr("\nNumber: %1").arg(cp1.text));
|
||||
if(!cp1.m_function.isEmpty())
|
||||
text1.append(tr("\nFonction : %1").arg(cp1.m_function));
|
||||
text1.append(tr("\nFunction : %1").arg(cp1.m_function));
|
||||
if(!cp1.m_tension_protocol.isEmpty())
|
||||
text1.append(tr("\nTension/protocole : %1")
|
||||
text1.append(tr("\nVoltage / Protocol : %1")
|
||||
.arg(cp1.m_tension_protocol));
|
||||
if(!cp1.m_wire_color.isEmpty())
|
||||
text1.append(tr("\nCouleur du conducteur : %1")
|
||||
text1.append(tr("\nConductor color : %1")
|
||||
.arg(cp1.m_wire_color));
|
||||
if(!cp1.m_wire_section.isEmpty())
|
||||
text1.append(tr("\nSection du conducteur : %1")
|
||||
text1.append(tr("\nConductor section : %1")
|
||||
.arg(cp1.m_wire_section));
|
||||
|
||||
QString text2(tr("%n conducteurs composent le potentiel suivant :",
|
||||
QString text2(tr("%n conductors make up the following potential :",
|
||||
"",
|
||||
m_potential_selector->m_conductor_number_2));
|
||||
ConductorProperties cp2;
|
||||
@@ -341,27 +341,27 @@ void PotentialSelectorDialog::buildWidget()
|
||||
cp2 = m_potential_selector->m_properties_list_2.first();
|
||||
|
||||
if(!cp2.text.isEmpty())
|
||||
text2.append(tr("\nNuméro : %1").arg(cp2.text));
|
||||
text2.append(tr("\nNumber: %1").arg(cp2.text));
|
||||
if(!cp2.m_function.isEmpty())
|
||||
text2.append(tr("\nFonction : %1").arg(cp2.m_function));
|
||||
text2.append(tr("\nFunction : %1").arg(cp2.m_function));
|
||||
if(!cp2.m_tension_protocol.isEmpty())
|
||||
text2.append(tr("\nTension/protocole : %1")
|
||||
text2.append(tr("\nVoltage / Protocol : %1")
|
||||
.arg(cp2.m_tension_protocol));
|
||||
if(!cp2.m_wire_color.isEmpty())
|
||||
text2.append(tr("\nCouleur du conducteur : %1")
|
||||
text2.append(tr("\nConductor color : %1")
|
||||
.arg(cp2.m_wire_color));
|
||||
if(!cp2.m_wire_section.isEmpty())
|
||||
text2.append(tr("\nSection du conducteur : %1")
|
||||
text2.append(tr("\nConductor section : %1")
|
||||
.arg(cp2.m_wire_section));
|
||||
|
||||
QRadioButton *rb1 = new QRadioButton(text1, this);
|
||||
QRadioButton *rb2 = new QRadioButton(text2, this);
|
||||
|
||||
QRadioButton *rbk = new QRadioButton(
|
||||
tr("Ajouter au câble: %1")
|
||||
tr("Add to cable: %1")
|
||||
.arg("wouldn't this be nice?"), this);
|
||||
QRadioButton *rbb = new QRadioButton(
|
||||
tr("Ajouter au bus: %1")
|
||||
tr("Add to bus: %1")
|
||||
.arg("wouldn't this be nice?"), this);
|
||||
|
||||
#if TODO_LIST
|
||||
@@ -433,7 +433,7 @@ void PotentialSelectorDialog::on_buttonBox_accepted()
|
||||
undo = m_parent_undo;
|
||||
else
|
||||
undo = new QUndoCommand(
|
||||
tr("Modifier les propriétés de plusieurs conducteurs",
|
||||
tr("Edit the properties of several conductors",
|
||||
"undo caption"));
|
||||
|
||||
Diagram * diagram = nullptr;
|
||||
@@ -486,9 +486,9 @@ void PotentialSelectorDialog::on_buttonBox_accepted()
|
||||
<< "%M"
|
||||
<< "%LM";
|
||||
|
||||
QString text(tr("La formule du nouveau potentiel contient des variables incompatibles avec les reports de folio.\n"
|
||||
"Veuillez saisir une formule compatible pour ce potentiel.\n"
|
||||
"Les variables suivantes sont incompatibles :\n"
|
||||
QString text(tr("The new potential formula contains variables incompatible with sheet references.\n"
|
||||
"Please enter a compatible formula for this potential.\n"
|
||||
"The following variables are incompatible:\n"
|
||||
"%sequf_ %seqtf_ %seqhf_ %id %F %M %LM"));
|
||||
FormulaAssistantDialog fag(this);
|
||||
fag.setForbiddenVariables(forbidden_str);
|
||||
|
||||
Reference in New Issue
Block a user