diff options
author | rtk0c <[email protected]> | 2021-06-10 18:07:30 -0700 |
---|---|---|
committer | rtk0c <[email protected]> | 2021-06-10 18:07:30 -0700 |
commit | 222cfec6ad882196d8927f73e30d905daae89556 (patch) | |
tree | 9347bb0ebf99cc79e4ee629d0edf7fd744bdeb1b /core/src/UI/UI_Items.cpp | |
parent | dc09ba073744292a4d4af0445e5095f424fffa22 (diff) |
Polish UI and add translations
Diffstat (limited to 'core/src/UI/UI_Items.cpp')
-rw-r--r-- | core/src/UI/UI_Items.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/core/src/UI/UI_Items.cpp b/core/src/UI/UI_Items.cpp index d006166..6887f23 100644 --- a/core/src/UI/UI_Items.cpp +++ b/core/src/UI/UI_Items.cpp @@ -57,16 +57,16 @@ ActionResult ItemEditor(ItemList<T>& list, T* item) if constexpr (kHasEmail) ImGui::InputText(ls->ItemEmailColumn.Get(), &email); if (name.empty()) { - ImGui::ErrorMessage("%s", ls->EmptyItemNameError.Get()); + ImGui::ErrorMessage("%s", ls->EmptyNameError.Get()); } if (duplicateName) { - ImGui::ErrorMessage("%s", ls->DuplicateItemNameError.Get()); + ImGui::ErrorMessage("%s", ls->DuplicateNameError.Get()); } // Return Value auto rv = ActionResult::Pending; - if (ImGui::Button(ls->DialogConfirm.Get(), name.empty() || duplicateName)) { + if (ImGui::Button(ls->Confirm.Get(), name.empty() || duplicateName)) { if (item->GetName() != name) { item->SetName(std::move(name)); } @@ -85,7 +85,7 @@ ActionResult ItemEditor(ItemList<T>& list, T* item) } ImGui::SameLine(); - if (ImGui::Button(ls->DialogCancel.Get())) { + if (ImGui::Button(ls->Cancel.Get())) { ImGui::CloseCurrentPopup(); ClearStates(); rv = ActionResult::Canceled; @@ -221,12 +221,12 @@ void ItemListEditor(ItemList<T>& list) if (ImGui::BeginPopupModal(ls->DeleteItemDialogTitle.Get(), &opened, ImGuiWindowFlags_AlwaysAutoResize)) { ImGui::TextUnformatted(ls->DeleteItemDialogMessage.Get()); - if (ImGui::Button(ls->DialogConfirm.Get())) { + if (ImGui::Button(ls->Confirm.Get())) { ImGui::CloseCurrentPopup(); } ImGui::SameLine(); - if (ImGui::Button(ls->DialogCancel.Get())) { + if (ImGui::Button(ls->Cancel.Get())) { ImGui::CloseCurrentPopup(); } |