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:
@@ -45,31 +45,31 @@ ElementsCategoryEditor::ElementsCategoryEditor(const ElementsLocation &location,
|
||||
|
||||
if (m_location.isElement()) {
|
||||
QET::QetMessageBox::warning(this,
|
||||
tr("L'item n'est pas une catégorie", "message box title"),
|
||||
tr("L'item demandé n'est pas une categrie. Abandon.", "message box content"));
|
||||
tr("The item is not a category", "message box title"),
|
||||
tr("The item requested is not a category. Abort.", "message box content"));
|
||||
return;
|
||||
}
|
||||
|
||||
if (!location.exist()) {
|
||||
QET::QetMessageBox::warning(this,
|
||||
tr("Catégorie inexistante", "message box title"),
|
||||
tr("La catégorie demandée n'existe pas. Abandon.", "message box content"));
|
||||
tr("Non-existent category", "message box title"),
|
||||
tr("The required category does not exist. Giving up.", "message box content"));
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_edit_mode) {
|
||||
setWindowTitle(tr("Éditer une catégorie", "window title"));
|
||||
setWindowTitle(tr("Edit category", "window title"));
|
||||
connect(m_buttons, &QDialogButtonBox::accepted, this, &ElementsCategoryEditor::acceptUpdate);
|
||||
|
||||
m_names_list -> setNames(m_location.nameList());
|
||||
m_file_line_edit -> setText(m_location.fileSystemPath());
|
||||
m_file_line_edit -> setReadOnly(true);
|
||||
} else {
|
||||
setWindowTitle(tr("Créer une nouvelle catégorie", "window title"));
|
||||
setWindowTitle(tr("Add a new category", "window title"));
|
||||
connect(m_buttons, &QDialogButtonBox::accepted, this, &ElementsCategoryEditor::acceptCreation);
|
||||
|
||||
NamesList cat_names;
|
||||
cat_names.addName(QLocale::system().name().left(2), tr("Nom de la nouvelle catégorie", "default name when creating a new category"));
|
||||
cat_names.addName(QLocale::system().name().left(2), tr("Name of the new category", "default name when creating a new category"));
|
||||
m_names_list -> setNames(cat_names);
|
||||
}
|
||||
|
||||
@@ -77,8 +77,8 @@ ElementsCategoryEditor::ElementsCategoryEditor(const ElementsLocation &location,
|
||||
if (!m_location.isWritable()) {
|
||||
QET::QetMessageBox::warning(
|
||||
this,
|
||||
tr("Édition en lecture seule", "message box title"),
|
||||
tr("Vous n'avez pas les privilèges nécessaires pour modifier cette catégorie. Elle sera donc ouverte en lecture seule.", "message box content")
|
||||
tr("Read only edition", "message box title"),
|
||||
tr("You are not allowed to modify this category. Thus it will be edited read-only.", "message box content")
|
||||
);
|
||||
m_names_list -> setReadOnly(true);
|
||||
m_file_line_edit -> setReadOnly(true);
|
||||
@@ -111,7 +111,7 @@ void ElementsCategoryEditor::setUpWidget()
|
||||
setLayout(editor_layout);
|
||||
|
||||
m_names_list = new NameListWidget(this);
|
||||
m_file_name = new QLabel(tr("Nom interne : "));
|
||||
m_file_name = new QLabel(tr("Internal name : "));
|
||||
m_file_line_edit = new QFileNameEdit();
|
||||
|
||||
m_buttons = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
|
||||
@@ -122,7 +122,7 @@ void ElementsCategoryEditor::setUpWidget()
|
||||
internal_name_layout -> addWidget(m_file_line_edit);
|
||||
|
||||
editor_layout -> addLayout(internal_name_layout);
|
||||
editor_layout -> addWidget(new QLabel(tr("Vous pouvez spécifier un nom par langue pour la catégorie.")));
|
||||
editor_layout -> addWidget(new QLabel(tr("You can add a name per language for the category.")));
|
||||
editor_layout -> addWidget(m_names_list);
|
||||
editor_layout -> addWidget(m_buttons);
|
||||
}
|
||||
@@ -145,8 +145,8 @@ void ElementsCategoryEditor::acceptCreation()
|
||||
//User must enter a directory name
|
||||
if (!m_file_line_edit -> isValid()) {
|
||||
QET::QetMessageBox::critical(this,
|
||||
tr("Nom interne manquant", "message box title"),
|
||||
tr("Vous devez spécifier un nom interne.", "message box content"));
|
||||
tr("Missing internal name", "message box title"),
|
||||
tr("You must provide an internal name.", "message box content"));
|
||||
return;
|
||||
}
|
||||
QString dirname = m_file_line_edit -> text();
|
||||
@@ -158,9 +158,9 @@ void ElementsCategoryEditor::acceptCreation()
|
||||
|
||||
if (created_location.exist()) {
|
||||
QET::QetMessageBox::critical(this,
|
||||
tr("Nom interne déjà utilisé", "message box title"),
|
||||
tr("Le nom interne que vous avez choisi est déjà utilisé "
|
||||
"par une catégorie existante. Veuillez en choisir un autre.",
|
||||
tr("Internal name already used", "message box title"),
|
||||
tr("The internal name you chose is already used by another "
|
||||
"category. Please choose another one.",
|
||||
"message box content"));
|
||||
return;
|
||||
}
|
||||
@@ -170,8 +170,8 @@ void ElementsCategoryEditor::acceptCreation()
|
||||
m_created_location = ech_.createDir(m_location, dirname, nl);
|
||||
if (m_created_location.isNull()) {
|
||||
QET::QetMessageBox::critical(this,
|
||||
tr("Erreur", "message box title"),
|
||||
tr("Impossible de créer la catégorie", "message box content"));
|
||||
tr("Error", "message box title"),
|
||||
tr("Unable to create the category", "message box content"));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user