mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-29 02:07:39 +08:00
Avoid using tr inside NotesFolderFS
Not sure why it doesn't work. Fixes APP-F4
This commit is contained in:
@ -239,9 +239,10 @@ class NotesFolderFS with NotesFolderNotifier implements NotesFolder {
|
|||||||
|
|
||||||
var note = Note(this, fsEntity.path);
|
var note = Note(this, fsEntity.path);
|
||||||
if (note.fileName.startsWith('.')) {
|
if (note.fileName.startsWith('.')) {
|
||||||
|
// FIXME: Why does 'tr' not work over here
|
||||||
var ignoredFile = IgnoredFile(
|
var ignoredFile = IgnoredFile(
|
||||||
filePath: fsEntity.path,
|
filePath: fsEntity.path,
|
||||||
reason: tr("ignoredFiles.dot"),
|
reason: "Starts with a .",
|
||||||
);
|
);
|
||||||
_ignoredFiles.add(ignoredFile);
|
_ignoredFiles.add(ignoredFile);
|
||||||
|
|
||||||
@ -254,8 +255,7 @@ class NotesFolderFS with NotesFolderNotifier implements NotesFolder {
|
|||||||
if (!NoteFileFormatInfo.isAllowedFileName(note.filePath)) {
|
if (!NoteFileFormatInfo.isAllowedFileName(note.filePath)) {
|
||||||
var ignoredFile = IgnoredFile(
|
var ignoredFile = IgnoredFile(
|
||||||
filePath: fsEntity.path,
|
filePath: fsEntity.path,
|
||||||
reason: tr("ignoredFiles.ext") +
|
reason: "Doesn't end with one of the following - " +
|
||||||
" " +
|
|
||||||
NoteFileFormatInfo.allowedExtensions().join(' '),
|
NoteFileFormatInfo.allowedExtensions().join(' '),
|
||||||
);
|
);
|
||||||
_ignoredFiles.add(ignoredFile);
|
_ignoredFiles.add(ignoredFile);
|
||||||
|
Reference in New Issue
Block a user