From 7be85bf569e022cd44f2b7df9d97cf127116a09e Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Tue, 3 Nov 2020 13:44:58 +0100 Subject: [PATCH] Avoid using tr inside NotesFolderFS Not sure why it doesn't work. Fixes APP-F4 --- lib/core/notes_folder_fs.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/core/notes_folder_fs.dart b/lib/core/notes_folder_fs.dart index f74f404a..016528a8 100644 --- a/lib/core/notes_folder_fs.dart +++ b/lib/core/notes_folder_fs.dart @@ -239,9 +239,10 @@ class NotesFolderFS with NotesFolderNotifier implements NotesFolder { var note = Note(this, fsEntity.path); if (note.fileName.startsWith('.')) { + // FIXME: Why does 'tr' not work over here var ignoredFile = IgnoredFile( filePath: fsEntity.path, - reason: tr("ignoredFiles.dot"), + reason: "Starts with a .", ); _ignoredFiles.add(ignoredFile); @@ -254,8 +255,7 @@ class NotesFolderFS with NotesFolderNotifier implements NotesFolder { if (!NoteFileFormatInfo.isAllowedFileName(note.filePath)) { var ignoredFile = IgnoredFile( filePath: fsEntity.path, - reason: tr("ignoredFiles.ext") + - " " + + reason: "Doesn't end with one of the following - " + NoteFileFormatInfo.allowedExtensions().join(' '), ); _ignoredFiles.add(ignoredFile);