Avoid using tr inside NotesFolderFS

Not sure why it doesn't work.

Fixes APP-F4
This commit is contained in:
Vishesh Handa
2020-11-03 13:44:58 +01:00
parent 73c9122392
commit 7be85bf569

View File

@ -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);