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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user