From d04f0ab1335951ed9647a05dab3a1fbeff350539 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B1=B1=E8=8B=8D?= Date: Tue, 12 Aug 2025 17:41:48 +0800 Subject: [PATCH] Revert "FIX: Add the prefix 'a' or 'an' based on the pronunciation of the first letter of the machine name." This reverts commit 0d177738d488e4c736e7f18113feeaed3ef7cc1b. Reason for revert: wrong translation Change-Id: I7953b1878a758e43a534323adfebcacee1dc164a (cherry picked from commit 131aaf92e67d0c1dc2b851889ea841c3b260be26) --- src/slic3r/GUI/Plater.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index e267908535..6830116162 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -15951,17 +15951,12 @@ wxString Plater::get_selected_printer_name_in_combox() { void Plater::pop_warning_and_go_to_device_page(wxString printer_name, PrinterWarningType type, const wxString &title) { printer_name.Replace("Bambu Lab", "", false); - - char first_char = std::toupper(printer_name[1]); - const std::unordered_set an_letters = {'A', 'E', 'F', 'H', 'I', 'L', 'M', 'N', 'O', 'R', 'S', 'X'}; - printer_name = (an_letters.count(first_char) > 0 ? "an " : "a ") + printer_name; - wxString content; if (type == PrinterWarningType::NOT_CONNECTED) { - content = wxString::Format(_L("Printer not connected. Please go to the device page to connect %s printer before syncing."), printer_name); + content = wxString::Format(_L("Printer not connected. Please go to the device page to connect an %s printer before syncing."), printer_name); } else if (type == PrinterWarningType::INCONSISTENT) { - content = wxString::Format(_L("The currently connected printer on the device page is not %s. Please switch to %s before syncing."), printer_name, printer_name); + content = wxString::Format(_L("The currently connected printer on the device page is not an %s. Please switch to an %s before syncing."), printer_name, printer_name); } else if (type == PrinterWarningType::UNINSTALL_FILAMENT) { content = _L("There are no filaments on the printer. Please load the filaments on the printer first."); } else if (type == PrinterWarningType::EMPTY_FILAMENT) {