diff --git a/ftl/core/importing.ftl b/ftl/core/importing.ftl index 7bd57718f..6323ca602 100644 --- a/ftl/core/importing.ftl +++ b/ftl/core/importing.ftl @@ -87,3 +87,4 @@ importing-processed-notes = [one] Processed { $count } note... *[other] Processed { $count } notes... } +importing-unable-to-import-filename = Unable to import { $filename }: file type not supported diff --git a/qt/aqt/import_export/importing.py b/qt/aqt/import_export/importing.py index 6fdbe37a5..21d58a17d 100644 --- a/qt/aqt/import_export/importing.py +++ b/qt/aqt/import_export/importing.py @@ -25,7 +25,11 @@ def import_file(mw: aqt.main.AnkiQt, path: str) -> None: elif filename.endswith(".apkg"): import_anki_package(mw, path) else: - raise NotImplementedError + showWarning( + tr.importing_unable_to_import_filename(filename=filename), + parent=mw, + textFormat="plain", + ) def prompt_for_file_then_import(mw: aqt.main.AnkiQt) -> None: