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:
@@ -126,7 +126,7 @@ void DynamicElementTextItemEditor::apply()
|
||||
else
|
||||
{
|
||||
QUndoStack &us = m_element->diagram()->undoStack();
|
||||
us.beginMacro(tr("Modifier des textes d'élément"));
|
||||
us.beginMacro(tr("Edit an element texts"));
|
||||
for (QUndoCommand *quc : undo_list)
|
||||
us.push(quc);
|
||||
us.endMacro();
|
||||
@@ -168,7 +168,7 @@ void DynamicElementTextItemEditor::setCurrentGroup(ElementTextItemGroup *group)
|
||||
|
||||
QUndoCommand *DynamicElementTextItemEditor::associatedUndo() const
|
||||
{
|
||||
QUndoCommand *parent_undo = new QUndoCommand(tr("Modifier un texte d'élément"));
|
||||
QUndoCommand *parent_undo = new QUndoCommand(tr("Edit element text"));
|
||||
for (DynamicElementTextItem *deti : m_element.data()->dynamicTextItems())
|
||||
m_model->undoForEditedText(deti, parent_undo);
|
||||
|
||||
@@ -178,7 +178,7 @@ QUndoCommand *DynamicElementTextItemEditor::associatedUndo() const
|
||||
if(parent_undo->childCount() >= 1)
|
||||
{
|
||||
if(parent_undo->childCount() >= 2)
|
||||
parent_undo->setText(tr("Modifier %1 textes d'élément").arg(QString::number(parent_undo->childCount())));
|
||||
parent_undo->setText(tr("Edit %1 telement text").arg(QString::number(parent_undo->childCount())));
|
||||
return parent_undo;
|
||||
}
|
||||
else
|
||||
@@ -240,7 +240,7 @@ void DynamicElementTextItemEditor::on_m_remove_selection_clicked()
|
||||
*/
|
||||
void DynamicElementTextItemEditor::on_m_add_group_clicked()
|
||||
{
|
||||
QString name = QInputDialog::getText(this, tr("Nom du groupe"), tr("Entrer le nom du nouveau groupe"));
|
||||
QString name = QInputDialog::getText(this, tr("Name of the group"), tr("Enter the name of the new group"));
|
||||
|
||||
if(name.isEmpty())
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user