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:
ispyisail
2026-09-30 11:15:11 +13:00
parent 6c4ee10f44
commit aa09d0eb2a
+3 -1
View File
@@ -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;
}