mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-06-12 23:23:14 +02:00
Element editor Save As: label the field as a file name, not element name (#469)
The Save As 'location' dialog used a QFileNameEdit (accepts only [0-9a-z_-.]) but labelled it 'New element name', which is confusing — QET also has a separate, translatable display name shown in the collection. Users reasonably tried to type a display name (spaces, capitals) and it was rejected. Rename the placeholder to 'Element file name' and add a tooltip noting the accepted characters and that the display name is edited separately in the element properties. Updates the English translation; other languages fall back until re-translated. Fixes #469.
This commit is contained in:
@@ -124,7 +124,17 @@ void ElementDialog::setUpWidget()
|
||||
} else if (m_mode == SaveTemplate) {
|
||||
m_text_field->setPlaceholderText(tr("Nom du nouveau template"));
|
||||
} else {
|
||||
m_text_field->setPlaceholderText(tr("Nom du nouvel élément"));
|
||||
// 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",
|
||||
"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.",
|
||||
"tooltip for the element file-name field"));
|
||||
}
|
||||
|
||||
layout->addWidget(m_text_field);
|
||||
|
||||
Reference in New Issue
Block a user