From a8d792ecf8508c030e27aae139eeaf45884ebdc7 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Tue, 25 Mar 2025 17:16:09 +0100 Subject: [PATCH] FIX: Fix missing L() localisation helper MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit /run/build/BambuStudio/src/libslic3r/PresetBundle.cpp: In member function ‘unsigned int Slic3r::PresetBundle::sync_ams_list(std::vector > >&, bool, std::map&, bool, Slic3r::MergeFilamentInfo&)’: /run/build/BambuStudio/src/libslic3r/PresetBundle.cpp:1973:49: error: ‘L’ was not declared in this scope 1973 | unknowns.emplace_back(&ams, L("The filament model is unknown. Still using the previous filament preset.")); | ^ --- src/libslic3r/PresetBundle.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libslic3r/PresetBundle.cpp b/src/libslic3r/PresetBundle.cpp index 62944541f..aec67cb83 100644 --- a/src/libslic3r/PresetBundle.cpp +++ b/src/libslic3r/PresetBundle.cpp @@ -2,6 +2,7 @@ #include "PresetBundle.hpp" #include "libslic3r.h" +#include "I18N.hpp" #include "Utils.hpp" #include "Model.hpp" #include "format.hpp" @@ -24,6 +25,8 @@ #include #include +// Mark string for localization and translate. +#define L(s) Slic3r::I18N::translate(s) // Store the print/filament/printer presets into a "presets" subdirectory of the Slic3rPE config dir. // This breaks compatibility with the upstream Slic3r if the --datadir is used to switch between the two versions.