mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-10 22:24: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:
+26
-25
@@ -62,27 +62,27 @@ void ElementDialog::setUpWidget()
|
||||
switch (m_mode)
|
||||
{
|
||||
case OpenElement:
|
||||
title_ = tr("Ouvrir un élément", "dialog title");
|
||||
label_ = tr("Choisissez l'élément que vous souhaitez ouvrir.", "dialog content");
|
||||
title_ = tr("Open an element", "dialog title");
|
||||
label_ = tr("Choose the element you wish to open.", "dialog content");
|
||||
break;
|
||||
case SaveElement:
|
||||
title_ = tr("Enregistrer un élément", "dialog title");
|
||||
label_ = tr("Choisissez l'élément dans lequel vous souhaitez enregistrer votre définition.", "dialog content");
|
||||
title_ = tr("Save an element", "dialog title");
|
||||
label_ = tr("Choose the element you wish to save your definition into.", "dialog content");
|
||||
break;
|
||||
case OpenCategory:
|
||||
title_ = tr("Ouvrir une catégorie", "dialog title");
|
||||
label_ = tr("Choisissez une catégorie.", "dialog content");
|
||||
title_ = tr("Open a category", "dialog title");
|
||||
label_ = tr("Choose a category.", "dialog content");
|
||||
break;
|
||||
case SaveCategory:
|
||||
title_ = tr("Enregistrer une catégorie", "dialog title");
|
||||
label_ = tr("Choisissez une catégorie.", "dialog content");
|
||||
title_ = tr("Save a category", "dialog title");
|
||||
label_ = tr("Choose a category.", "dialog content");
|
||||
break;
|
||||
case SaveTemplate:
|
||||
title_ = tr("Enregistrer un template", "dialog title");
|
||||
label_ = tr("Choisissez l'emplacement dans lequel vous souhaitez enregistrer votre template.", "dialog content");
|
||||
title_ = tr("Save a template", "dialog title");
|
||||
label_ = tr("Select the location where you want to save your template.", "dialog content");
|
||||
break;
|
||||
default:
|
||||
title_ = tr("Titre");
|
||||
title_ = tr("Title");
|
||||
label_ = tr("Label");
|
||||
break;
|
||||
}
|
||||
@@ -123,20 +123,21 @@ void ElementDialog::setUpWidget()
|
||||
m_text_field->setDisabled(true);
|
||||
|
||||
if (m_mode == SaveCategory) {
|
||||
m_text_field->setPlaceholderText(tr("Nom du nouveau dossier"));
|
||||
m_text_field->setPlaceholderText(tr("Name the new folder"));
|
||||
} else if (m_mode == SaveTemplate) {
|
||||
m_text_field->setPlaceholderText(tr("Nom du nouveau template"));
|
||||
m_text_field->setPlaceholderText(tr("Name of the new template"));
|
||||
} else {
|
||||
// This is the element's file name, not its display name: the field
|
||||
// only accepts file-name characters (QFileNameEdit). The visible
|
||||
// element name is edited separately in the element properties.
|
||||
m_text_field->setPlaceholderText(
|
||||
tr("Nom de fichier de l'élément",
|
||||
tr("Element file name",
|
||||
"placeholder: the element's file name, not its display name"));
|
||||
m_text_field->setToolTip(
|
||||
tr("Nom de fichier de l'élément : chiffres, minuscules, « - », "
|
||||
"« _ » et « . » uniquement.\nLe nom affiché de l'élément se "
|
||||
"modifie séparément dans les propriétés de l'élément.",
|
||||
tr("The element's file name: digits, lowercase letters, '-', "
|
||||
"'_' and '.' only.\n"
|
||||
"The element's display name is edited separately in the "
|
||||
"element properties.",
|
||||
"tooltip for the element file-name field"));
|
||||
}
|
||||
|
||||
@@ -228,15 +229,15 @@ void ElementDialog::checkAccept()
|
||||
if (!loc.exist())
|
||||
{
|
||||
QET::QetMessageBox::critical(this,
|
||||
tr("Sélection inexistante", "message box title"),
|
||||
tr("La sélection n'existe pas.", "message box content"));
|
||||
tr("Non-existent selection", "message box title"),
|
||||
tr("The selection does not exist.", "message box content"));
|
||||
return;
|
||||
}
|
||||
else if (!loc.isElement())
|
||||
{
|
||||
QET::QetMessageBox::critical(this,
|
||||
tr("Sélection incorrecte", "message box title"),
|
||||
tr("La sélection n'est pas un élément.", "message box content"));
|
||||
tr("Wrong selection", "message box title"),
|
||||
tr("The selection is not an element.", "message box content"));
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -248,8 +249,8 @@ void ElementDialog::checkAccept()
|
||||
{
|
||||
if (loc.exist())
|
||||
{
|
||||
QString msgTitle = (m_mode == SaveTemplate) ? tr("Écraser le template ?", "message box title") : tr("Écraser l'élément ?", "message box title");
|
||||
QString msgContent = (m_mode == SaveTemplate) ? tr("Le template existe déjà. Voulez-vous l'écraser ?", "message box content") : tr("L'élément existe déjà. Voulez-vous l'écraser ?", "message box content");
|
||||
QString msgTitle = (m_mode == SaveTemplate) ? tr("Overwrite the template?", "message box title") : tr("Overwrite the element?", "message box title");
|
||||
QString msgContent = (m_mode == SaveTemplate) ? tr("The template already exists. Do you want to overwrite it?", "message box content") : tr("The element already exists. Do you want to overwrite it?", "message box content");
|
||||
QMessageBox::StandardButton answer = QET::QetMessageBox::question(this,
|
||||
msgTitle,
|
||||
msgContent,
|
||||
@@ -263,8 +264,8 @@ void ElementDialog::checkAccept()
|
||||
else
|
||||
{
|
||||
QET::QetMessageBox::critical(this,
|
||||
tr("Sélection incorrecte", "message box title"),
|
||||
tr("Vous devez sélectionner un élément ou une catégorie avec un nom pour l'élément.", "message box content"));
|
||||
tr("Wrong selection", "message box title"),
|
||||
tr("You must select an element or category with a name for the element.", "message box content"));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user