mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-09-30 14:54:13 +02:00
Store the thumbnails folder's French name as French, not through tr()
tr() returns the interface language, so an English or German session would have written its own text under the "fr" name. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -2210,7 +2210,9 @@ void DiagramView::generateCabinetThumbnails()
|
||||
{
|
||||
NamesList dir_names;
|
||||
dir_names.addName(QStringLiteral("en"), dir_name);
|
||||
dir_names.addName(QStringLiteral("fr"), tr("Vignettes d'armoire"));
|
||||
//Stored per language, like an element's names: not tr(), which
|
||||
//would store the interface's language under "fr"
|
||||
dir_names.addName(QStringLiteral("fr"), QStringLiteral("Vignettes d'armoire"));
|
||||
if (!collection->createDir(QStringLiteral("import"), dir_name, dir_names)) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user