diff options
Diffstat (limited to 'src/ui/ui_settings.cpp')
| -rw-r--r-- | src/ui/ui_settings.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ui/ui_settings.cpp b/src/ui/ui_settings.cpp index 1d6a5f4..dea58ec 100644 --- a/src/ui/ui_settings.cpp +++ b/src/ui/ui_settings.cpp @@ -107,7 +107,10 @@ static void ui_draw_vat_rates() // Column 1: description of tax bracket. Is only displayed on shared tax brackets for clarity. ImGui::TableNextRow(); ImGui::TableSetColumnIndex(0); - ImGui::Text(can_be_modified ? "" : localize(c.description)); + + char category_code_desc[MAX_LEN_LONG_DESC]; + snprintf(category_code_desc, MAX_LEN_LONG_DESC, "taxcategory.%s", c.category_code); + ImGui::Text(can_be_modified ? "" : localize(category_code_desc)); // Column 2: When editing, show input for new rate. Else we display the stored rate and check for modify request. |
