Skip to content

Commit f25da89

Browse files
committed
Fix ruff errors: remove unused TRANSLATIONS import and split long line
1 parent b98685d commit f25da89

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

bookmark_checker/ui/main_window.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
from bookmark_checker.core.exporters import export_dedupe_report_csv, export_netscape_html
2828
from bookmark_checker.core.merge import merge_collections
2929
from bookmark_checker.core.parsers import parse_many
30-
from bookmark_checker.i18n.translations import TRANSLATIONS, get_translation
30+
from bookmark_checker.i18n.translations import get_translation
3131

3232

3333
class MainWindow(QMainWindow):
@@ -422,10 +422,13 @@ def _export_merged(self) -> None:
422422
export_dedupe_report_csv(self.current_report, str(csv_path))
423423

424424
self.status_label.setText(f"Exported to {output_path} and {csv_path}")
425+
exported_msg = get_translation(
426+
self.current_language, "exported_successfully", "Exported successfully!"
427+
)
425428
QMessageBox.information(
426429
self,
427430
get_translation(self.current_language, "success", "Success"),
428-
f"{get_translation(self.current_language, 'exported_successfully', 'Exported successfully!')}\n\n{output_path}\n{csv_path}",
431+
f"{exported_msg}\n\n{output_path}\n{csv_path}",
429432
)
430433
except Exception as e:
431434
QMessageBox.critical(

0 commit comments

Comments
 (0)