From fb00564978b956b1e3fa72a8839dc1b5aa807255 Mon Sep 17 00:00:00 2001 From: Thomas Knoefel Date: Sat, 3 Feb 2024 15:42:00 +0100 Subject: [PATCH] corrected Status for saved items --- languages.ini | 9 ++++++--- src/MultiReplacePanel.cpp | 2 +- src/language_mapping.cpp | 1 + 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/languages.ini b/languages.ini index dde8016..ba8673e 100644 --- a/languages.ini +++ b/languages.ini @@ -104,7 +104,8 @@ status_syntax_error_in_column_data="Syntax error in column data" status_invalid_column_number="Invalid column number" status_extended_delimiter_empty="Extended delimiter is empty" status_invalid_quote_character="Invalid quote character. Use \" or ' or leave it empty." -status_unable_to_open_file="Error: Unable to open file for writing." +status_unable_to_save_file="Error: Unable to open or write to file." +status_saved_items_to_csv="$REPLACE_STRING items saved to CSV." status_no_valid_items_in_csv="No valid items found in the CSV file." status_list_exported_to_bash="List exported to BASH script." @@ -249,7 +250,8 @@ status_syntax_error_in_column_data="Syntaxfehler in Spaltendaten." status_invalid_column_number="Ungültige Spaltennummer." status_extended_delimiter_empty="Erweitertes Trennzeichen ist leer." status_invalid_quote_character="Ungültiges Anführungszeichen. " oder ' verwenden oder leer lassen." -status_unable_to_open_file="Fehler: Datei kann nicht zum Schreiben geöffnet werden." +status_unable_to_save_file=""Fehler: Datei kann nicht geöffnet oder beschrieben werden." +status_saved_items_to_csv="$REPLACE_STRING Einträge in die CSV-Datei gespeichert." status_no_valid_items_in_csv="Keine gültigen Einträge in der CSV-Datei gefunden." status_list_exported_to_bash="Liste in BASH-Skript exportiert." @@ -396,7 +398,8 @@ status_syntax_error_in_column_data="Szintaxis hiba az oszlop adatokban." status_invalid_column_number="Érvénytelen oszlopszám." status_extended_delimiter_empty="A kiterjesztett határoló üres." status_invalid_quote_character="Érvénytelen idéz?jel karakter. Használjon \" vagy ' vagy hagyja üresen." -status_unable_to_open_file="Hiba: Nem sikerült megnyitni a fájlt írásra." +status_unable_to_save_file="Hiba: Nem sikerült a fájlt megnyitni vagy írni." +status_saved_items_to_csv="$REPLACE_STRING elem CSV fájlba mentett." status_no_valid_items_in_csv="Nem található érvényes elem a CSV fájlban." status_list_exported_to_bash="A lista exportálva BASH scriptbe." diff --git a/src/MultiReplacePanel.cpp b/src/MultiReplacePanel.cpp index be07350..55ff95b 100644 --- a/src/MultiReplacePanel.cpp +++ b/src/MultiReplacePanel.cpp @@ -4367,7 +4367,7 @@ void MultiReplace::saveListToCsv(const std::wstring& filePath, const std::vector return; } - showStatusMessage(std::to_wstring(list.size()) + L" items saved to CSV.", RGB(0, 128, 0)); + showStatusMessage(getLangStr(L"status_saved_items_to_csv", { std::to_wstring(list.size()) }), RGB(0, 128, 0)); // Enable the ListView accordingly SendMessage(GetDlgItem(_hSelf, IDC_USE_LIST_CHECKBOX), BM_SETCHECK, BST_CHECKED, 0); diff --git a/src/language_mapping.cpp b/src/language_mapping.cpp index a790812..28e0156 100644 --- a/src/language_mapping.cpp +++ b/src/language_mapping.cpp @@ -109,6 +109,7 @@ std::unordered_map languageMap = { { L"status_extended_delimiter_empty", L"Extended delimiter is empty" }, { L"status_invalid_quote_character", L"Invalid quote character. Use \" or ' or leave it empty." }, { L"status_unable_to_save_file", L"Error: Unable to open or write to file." }, +{ L"status_saved_items_to_csv", L"$REPLACE_STRING items saved to CSV." }, { L"status_no_valid_items_in_csv", L"No valid items found in the CSV file." }, { L"status_list_exported_to_bash", L"List exported to BASH script." },