summaryrefslogtreecommitdiff
path: root/src/ui/ui_expenses.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/ui_expenses.cpp')
-rw-r--r--src/ui/ui_expenses.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ui/ui_expenses.cpp b/src/ui/ui_expenses.cpp
index 8635273..5556cd6 100644
--- a/src/ui/ui_expenses.cpp
+++ b/src/ui/ui_expenses.cpp
@@ -89,7 +89,7 @@ static void draw_expense_form(invoice* buffer, bool viewing_only = false)
ImGui::Separator();
- if (ImGui::FileSelect("Select file...", buffer->document.original_path)) { // @locale::get
+ if (ImGui::FileSelect(locale::get("ui.fileselect.text"), buffer->document.original_path)) {
buffer->document.copy_path[0] = 0;
}
@@ -175,7 +175,7 @@ static void draw_expenses_list()
if (ImGui::Button(locale::get("form.create")))
{
current_view_state = ui::view_state::CREATE;
- active_invoice = administration::invoice_create_empty(); // @leak
+ active_invoice = administration::invoice_create_empty();
active_invoice.customer = administration::company_info_get();
active_invoice.is_outgoing = 0;
active_invoice.status = invoice_status::INVOICE_RECEIVED;
@@ -183,9 +183,9 @@ static void draw_expenses_list()
char import_file_path[MAX_LEN_PATH] = {0};
ImGui::SameLine();
- if (ImGui::FileSelect("+ Import", import_file_path)) { // @localize
+ if (ImGui::FileSelect(locale::get("ui.import"), import_file_path)) {
current_view_state = ui::view_state::VIEW_IMPORT_REQUEST;
- active_invoice = administration::invoice_create_empty(); // @leak
+ active_invoice = administration::invoice_create_empty();
active_invoice.customer = administration::company_info_get();
active_invoice.is_outgoing = 0;
active_invoice.status = invoice_status::INVOICE_RECEIVED;
@@ -388,7 +388,7 @@ static void draw_import_request()
const ImVec4 col = ImGui::GetStyleColorVec4(ImGuiCol_ButtonHovered);
const ImVec4 bg = ImGui::GetStyleColorVec4(ImGuiCol_Button);
- ImGui::LoadingIndicatorCircle("##loadingAnim", radius, bg, col, 10, 4.0f);
+ ImGui::LoadingIndicatorCircle(radius, bg, col, 10, 4.0f);
}
ImGui::PopFont();