mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-10-07 15:51:08 +00:00
Update Translations + String improvements (#16142)
Co-authored-by: Alexandre Folle de Menezes <afmenez@gmail.com>
This commit is contained in:
co-authored by
Alexandre Folle de Menezes
parent
c1e6de7e4e
commit
eb5b9a77b9
@@ -1131,7 +1131,7 @@ void SelectMachineDialog::sync_ams_mapping_result(std::vector<FilamentInfo> &res
|
||||
if (result.empty()) {
|
||||
BOOST_LOG_TRIVIAL(info) << "ams_mapping result is empty";
|
||||
for (auto it = m_materialList.begin(); it != m_materialList.end(); it++) {
|
||||
wxString ams_id = "Ext";//
|
||||
wxString ams_id = _L("Ext");//
|
||||
wxColour ams_col = wxColour(0xCE, 0xCE, 0xCE);
|
||||
it->second->item->set_ams_info(ams_col, ams_id);
|
||||
it->second->item->set_nozzle_info(get_mapped_nozzle_str(it->first));
|
||||
@@ -1155,7 +1155,7 @@ void SelectMachineDialog::sync_ams_mapping_result(std::vector<FilamentInfo> &res
|
||||
|
||||
if (f->tray_id == VIRTUAL_TRAY_MAIN_ID || f->tray_id == VIRTUAL_TRAY_DEPUTY_ID)
|
||||
{
|
||||
ams_id = "Ext";
|
||||
ams_id = _L("Ext");
|
||||
}else if (f->tray_id >= 0) {
|
||||
ams_id = wxGetApp().transition_tridid(f->tray_id);
|
||||
} else {
|
||||
@@ -3863,7 +3863,7 @@ void SelectMachineDialog::on_refresh(wxCommandEvent &event)
|
||||
void SelectMachineDialog::on_set_finish_mapping(wxCommandEvent &evt)
|
||||
{
|
||||
auto selection_data = evt.GetString();
|
||||
auto selection_data_arr = wxSplit(selection_data.ToStdString(), '|');
|
||||
auto selection_data_arr = wxSplit(selection_data, '|');
|
||||
|
||||
BOOST_LOG_TRIVIAL(info) << "The ams mapping selection result: data is " << selection_data;
|
||||
|
||||
@@ -4376,9 +4376,9 @@ static wxString _check_kval_not_default(const MachineObject* obj, const std::vec
|
||||
|
||||
wxString ams_name;
|
||||
if (info.tray_id == VIRTUAL_TRAY_MAIN_ID) {
|
||||
ams_name = "Right-Ext";
|
||||
ams_name = _L("Right-Ext");
|
||||
} else if (info.tray_id == VIRTUAL_TRAY_DEPUTY_ID) {
|
||||
ams_name = "Left-Ext";
|
||||
ams_name = _L("Left-Ext");
|
||||
} else {
|
||||
ams_name = wxGetApp().transition_tridid(info.tray_id);
|
||||
}
|
||||
@@ -5509,7 +5509,7 @@ void SelectMachineDialog::change_materialitem_tip(bool no_ams_only_ext)
|
||||
int id = iter->first;
|
||||
Material *item = iter->second;
|
||||
if (item) {
|
||||
if (no_ams_only_ext && item->item->m_ams_name == "Ext") {
|
||||
if (no_ams_only_ext && item->item->m_ams_name == _L("Ext")) {
|
||||
item->item->SetToolTip(wxEmptyString);
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user