Skip to content

Commit

Permalink
corrected Status for saved items
Browse files Browse the repository at this point in the history
  • Loading branch information
daddel80 committed Feb 3, 2024
1 parent 325af63 commit fb00564
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
9 changes: 6 additions & 3 deletions languages.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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."

Expand Down Expand Up @@ -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."
Expand Down Expand Up @@ -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."
Expand Down
2 changes: 1 addition & 1 deletion src/MultiReplacePanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions src/language_mapping.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ std::unordered_map<std::wstring, std::wstring> 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." },

Expand Down

0 comments on commit fb00564

Please sign in to comment.