diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-08-09 12:51:47 +0200 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-08-09 12:51:47 +0200 |
| commit | 94e52baaed095f571c41cabe80d3a6b7e03653d2 (patch) | |
| tree | 9486f29b22aa34ef47cae6ccc70b0edb8914024c /src/ui/ui_main.cpp | |
| parent | 5854629f246aed30e1e7e4239c9283e2a6c8053f (diff) | |
localize
Diffstat (limited to 'src/ui/ui_main.cpp')
| -rw-r--r-- | src/ui/ui_main.cpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/ui/ui_main.cpp b/src/ui/ui_main.cpp index 8af8dbc..10f9cea 100644 --- a/src/ui/ui_main.cpp +++ b/src/ui/ui_main.cpp @@ -91,8 +91,8 @@ void ui_draw_main() ImGui::PopStyleVar(); } - if (ImGui::Button(localize("nav.Projects"), ImVec2(buttonWidth, 24))) set_dashboard_state(dashboard_view_state::PROJECTS); - if (ImGui::Button("Settings", ImVec2(buttonWidth, 24))) set_dashboard_state(dashboard_view_state::SETTINGS); //@localize + if (ImGui::Button(localize("nav.projects"), ImVec2(buttonWidth, 24))) set_dashboard_state(dashboard_view_state::PROJECTS); + if (ImGui::Button(localize("nav.settings"), ImVec2(buttonWidth, 24))) set_dashboard_state(dashboard_view_state::SETTINGS); ImGui::PopStyleColor(1); ImGui::PopStyleVar(3); @@ -122,8 +122,14 @@ void ui_draw_main() ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_NoBringToFrontOnFocus | ImGuiWindowFlags_NoCollapse); - - ImGui::Text("Working on: %s", administration_get_file_path()); // @localize + + char* path = administration_get_file_path(); + if (strlen(path) == 0) { + ImGui::Text("%s: %s", localize("ui.workingOn"), localize("ui.unsavedProject")); + } + else { + ImGui::Text("%s: %s", localize("ui.workingOn"), administration_get_file_path()); + } ImGui::End(); ImGui::PopStyleVar(); |
