mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-27 10:51:22 +00:00
i18n(fr): fix untranslated UI strings, extract hardcoded ones, complete French catalog (#14164)
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
|
||||
#include "GLGizmoBase.hpp"
|
||||
#include "slic3r/GUI/GLSelectionRectangle.hpp"
|
||||
#include "slic3r/GUI/I18N.hpp"
|
||||
#include "libslic3r/BrimEarsPoint.hpp"
|
||||
#include "libslic3r/ObjectID.hpp"
|
||||
|
||||
@@ -87,8 +88,8 @@ public:
|
||||
bool is_selection_rectangle_dragging() const { return m_selection_rectangle.is_dragging(); }
|
||||
|
||||
bool wants_enter_leave_snapshots() const override { return true; }
|
||||
std::string get_gizmo_entering_text() const override { return "Entering Brim Ears"; }
|
||||
std::string get_gizmo_leaving_text() const override { return "Leaving Brim Ears"; }
|
||||
std::string get_gizmo_entering_text() const override { return _u8L("Entering Brim Ears"); }
|
||||
std::string get_gizmo_leaving_text() const override { return _u8L("Leaving Brim Ears"); }
|
||||
|
||||
private:
|
||||
bool on_init() override;
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
#include "libslic3r/Print.hpp"
|
||||
#include "libslic3r/ObjectID.hpp"
|
||||
#include "slic3r/GUI/3DScene.hpp"
|
||||
#include "slic3r/GUI/I18N.hpp"
|
||||
|
||||
#include <boost/thread.hpp>
|
||||
|
||||
@@ -36,9 +37,9 @@ protected:
|
||||
void render_tooltip_button(float x, float y);
|
||||
wxString handle_snapshot_action_name(bool shift_down, Button button_down) const override;
|
||||
|
||||
std::string get_gizmo_entering_text() const override { return "Entering Paint-on supports"; }
|
||||
std::string get_gizmo_leaving_text() const override { return "Leaving Paint-on supports"; }
|
||||
std::string get_action_snapshot_name() const override { return "Paint-on supports editing"; }
|
||||
std::string get_gizmo_entering_text() const override { return _u8L("Entering Paint-on supports"); }
|
||||
std::string get_gizmo_leaving_text() const override { return _u8L("Leaving Paint-on supports"); }
|
||||
std::string get_action_snapshot_name() const override { return _u8L("Paint-on supports editing"); }
|
||||
|
||||
// BBS
|
||||
wchar_t m_current_tool = 0;
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
#define slic3r_GLGizmoMmuSegmentation_hpp_
|
||||
|
||||
#include "GLGizmoPainterBase.hpp"
|
||||
#include "slic3r/GUI/I18N.hpp"
|
||||
|
||||
namespace Slic3r::GUI {
|
||||
|
||||
@@ -100,9 +101,9 @@ protected:
|
||||
|
||||
wxString handle_snapshot_action_name(bool shift_down, Button button_down) const override;
|
||||
|
||||
std::string get_gizmo_entering_text() const override { return "Entering color painting"; }
|
||||
std::string get_gizmo_leaving_text() const override { return "Leaving color painting"; }
|
||||
std::string get_action_snapshot_name() const override { return "Color painting editing"; }
|
||||
std::string get_gizmo_entering_text() const override { return _u8L("Entering color painting"); }
|
||||
std::string get_gizmo_leaving_text() const override { return _u8L("Leaving color painting"); }
|
||||
std::string get_action_snapshot_name() const override { return _u8L("Color painting editing"); }
|
||||
|
||||
// BBS
|
||||
size_t m_selected_extruder_idx = 0;
|
||||
|
||||
@@ -367,7 +367,7 @@ std::string PartSkipDialog::create_tmp_path()
|
||||
}
|
||||
std::string tmp_path = (parent_path / buf.str()).string();
|
||||
|
||||
if (!std::filesystem::exists(tmp_path + "Metadata/") && !fs::create_directories(tmp_path + "Metadata/")) { wxMessageBox("create file failed."); }
|
||||
if (!std::filesystem::exists(tmp_path + "Metadata/") && !fs::create_directories(tmp_path + "Metadata/")) { wxMessageBox(_L("Failed to create the temporary folder.")); }
|
||||
return tmp_path;
|
||||
}
|
||||
|
||||
|
||||
@@ -6225,12 +6225,12 @@ std::vector<size_t> Plater::priv::load_files(const std::vector<fs::path>& input_
|
||||
BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << ":" << __LINE__ << " " << boost::format("%1%: %2%")%it->first %it->second;
|
||||
//
|
||||
NotificationManager *notify_manager = q->get_notification_manager();
|
||||
std::string error_message = L("Invalid values found in the 3MF:");
|
||||
std::string error_message = _u8L("Invalid values found in the 3MF:");
|
||||
error_message += "\n";
|
||||
for (std::map<std::string, std::string>::iterator it=validity.begin(); it!=validity.end(); ++it)
|
||||
error_message += "-" + it->first + ": " + it->second + "\n";
|
||||
error_message += "\n";
|
||||
error_message += L("Please correct them in the param tabs");
|
||||
error_message += _u8L("Please correct them in the param tabs");
|
||||
notify_manager->bbl_show_3mf_warn_notification(error_message);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -562,7 +562,7 @@ void PrintHostSendDialog::init()
|
||||
// });
|
||||
// }
|
||||
|
||||
add_button(wxID_CANCEL,false, L("Cancel"));
|
||||
add_button(wxID_CANCEL,false, _L("Cancel"));
|
||||
finalize();
|
||||
|
||||
#ifdef __linux__
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
namespace Slic3r { namespace GUI {
|
||||
|
||||
PrinterCloudAuthDialog::PrinterCloudAuthDialog(wxWindow* parent, PrintHost* host)
|
||||
: wxDialog((wxWindow*) (wxGetApp().mainframe), wxID_ANY, "Login")
|
||||
: wxDialog((wxWindow*) (wxGetApp().mainframe), wxID_ANY, _L("Login"))
|
||||
{
|
||||
SetBackgroundColour(*wxWHITE);
|
||||
// Url
|
||||
|
||||
@@ -607,7 +607,7 @@ SelectMachineDialog::SelectMachineDialog(Plater *plater)
|
||||
auto completedimg = new wxStaticBitmap(m_panel_finish, wxID_ANY, create_scaled_bitmap("completed", m_panel_finish, 25), wxDefaultPosition, wxSize(imgsize, imgsize), 0);
|
||||
m_sizer_finish_h->Add(completedimg, 0, wxALIGN_CENTER | wxALL, FromDIP(5));
|
||||
|
||||
m_statictext_finish = new wxStaticText(m_panel_finish, wxID_ANY, L("Send complete"), wxDefaultPosition, wxDefaultSize, 0);
|
||||
m_statictext_finish = new wxStaticText(m_panel_finish, wxID_ANY, _L("Send complete"), wxDefaultPosition, wxDefaultSize, 0);
|
||||
m_statictext_finish->Wrap(-1);
|
||||
m_statictext_finish->SetForegroundColour(wxColour(0, 150, 136));
|
||||
m_sizer_finish_h->Add(m_statictext_finish, 0, wxALIGN_CENTER | wxALL, FromDIP(5));
|
||||
|
||||
@@ -61,10 +61,10 @@ static const std::map<int, std::string> error_messages = {
|
||||
{SendToPrinterDialog::SEND_ERR, L("File upload failed, please try again.")}
|
||||
};
|
||||
|
||||
static std::string ParseErrorCode(int errorcde)
|
||||
static wxString ParseErrorCode(int errorcde)
|
||||
{
|
||||
auto it = error_messages.find(errorcde);
|
||||
if (it != error_messages.end()) { return it->second; }
|
||||
if (it != error_messages.end()) { return _L(it->second); }
|
||||
return "";
|
||||
}
|
||||
|
||||
@@ -367,7 +367,7 @@ SendToPrinterDialog::SendToPrinterDialog(Plater *plater)
|
||||
auto completedimg = new wxStaticBitmap(m_panel_finish, wxID_ANY, create_scaled_bitmap("completed", m_panel_finish, 25), wxDefaultPosition, wxSize(imgsize, imgsize), 0);
|
||||
m_sizer_finish_h->Add(completedimg, 0, wxALIGN_CENTER | wxALL, FromDIP(5));
|
||||
|
||||
m_statictext_finish = new wxStaticText(m_panel_finish, wxID_ANY, L("Send complete"), wxDefaultPosition, wxDefaultSize, 0);
|
||||
m_statictext_finish = new wxStaticText(m_panel_finish, wxID_ANY, _L("Send complete"), wxDefaultPosition, wxDefaultSize, 0);
|
||||
m_statictext_finish->Wrap(-1);
|
||||
m_statictext_finish->SetForegroundColour(wxColour(0, 150, 136));
|
||||
m_sizer_finish_h->Add(m_statictext_finish, 0, wxALIGN_CENTER | wxALL, FromDIP(5));
|
||||
@@ -1982,7 +1982,7 @@ void SendToPrinterDialog::UploadFileRessultCallback(int res, int resp_ec, std::s
|
||||
if (ParseErrorCode(resp_ec) != "")
|
||||
update_print_status_msg(ParseErrorCode(resp_ec), false, true);
|
||||
else
|
||||
update_print_status_msg("Sending failed, please try again!", false, true);
|
||||
update_print_status_msg(_L("Sending failed, please try again!"), false, true);
|
||||
m_filetransfer_uploadfile_job.reset();
|
||||
m_filetransfer_uploadfile_job = nullptr;
|
||||
}
|
||||
|
||||
@@ -685,7 +685,7 @@ void PrintingTaskPanel::create_panel(wxWindow* parent)
|
||||
#endif
|
||||
|
||||
|
||||
m_staticText_progress_left = new wxStaticText(penel_text, wxID_ANY, L("N/A"), wxDefaultPosition, wxDefaultSize, 0);
|
||||
m_staticText_progress_left = new wxStaticText(penel_text, wxID_ANY, _L("N/A"), wxDefaultPosition, wxDefaultSize, 0);
|
||||
m_staticText_progress_left->Wrap(-1);
|
||||
m_staticText_progress_left->SetFont(wxFont(12, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxT("HarmonyOS Sans SC")));
|
||||
m_staticText_progress_left->SetForegroundColour(wxColour(146, 146, 146));
|
||||
@@ -787,7 +787,7 @@ void PrintingTaskPanel::create_panel(wxWindow* parent)
|
||||
m_printing_stage_panel->SetSizer(printingstage_vertical_sizer);
|
||||
|
||||
// Orca: display the end time of the print
|
||||
m_staticText_progress_end = new wxStaticText(penel_finish_time, wxID_ANY, L("N/A"), wxDefaultPosition, wxDefaultSize, 0);
|
||||
m_staticText_progress_end = new wxStaticText(penel_finish_time, wxID_ANY, _L("N/A"), wxDefaultPosition, wxDefaultSize, 0);
|
||||
m_staticText_progress_end->Wrap(-1);
|
||||
m_staticText_progress_end->SetFont(
|
||||
wxFont(12, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxT("HarmonyOS Sans SC")));
|
||||
|
||||
@@ -109,7 +109,7 @@ MachineInfoPanel::MachineInfoPanel(wxWindow* parent, wxWindowID id, const wxPoin
|
||||
m_staticText_ver_val->Wrap(-1);
|
||||
|
||||
|
||||
m_staticText_beta_version = new wxStaticText(this, wxID_ANY, "Beta", wxDefaultPosition, wxDefaultSize, 0);
|
||||
m_staticText_beta_version = new wxStaticText(this, wxID_ANY, _L("Beta"), wxDefaultPosition, wxDefaultSize, 0);
|
||||
m_staticText_beta_version->SetForegroundColour("#778899");
|
||||
m_staticText_beta_version->Wrap(-1);
|
||||
m_staticText_beta_version->Hide();
|
||||
@@ -1571,7 +1571,7 @@ bool UpgradePanel::Show(bool show)
|
||||
m_staticText_ams_ver_val->SetForegroundColour("#262E30");
|
||||
m_staticText_ams_ver_val->Wrap(-1);
|
||||
|
||||
m_staticText_beta_version = new wxStaticText(this, wxID_ANY, "Beta", wxDefaultPosition, wxDefaultSize, 0);
|
||||
m_staticText_beta_version = new wxStaticText(this, wxID_ANY, _L("Beta"), wxDefaultPosition, wxDefaultSize, 0);
|
||||
m_staticText_beta_version->SetForegroundColour("#778899");
|
||||
m_staticText_beta_version->Wrap(-1);
|
||||
m_staticText_beta_version->Hide();
|
||||
|
||||
Reference in New Issue
Block a user