reduce the max file size to import from 10 to 1 mb

This commit is contained in:
tibbi 2019-06-14 16:49:30 +02:00
parent 5893e5946f
commit c49e210344
26 changed files with 26 additions and 26 deletions

View File

@ -380,7 +380,7 @@ class MainActivity : SimpleActivity() {
val file = File(path)
if (path.isMediaFile()) {
toast(R.string.invalid_file_format)
} else if (file.length() > 10 * 1000 * 1000) {
} else if (file.length() > 1000 * 1000) {
toast(R.string.file_too_large)
} else if (checkTitle && mNotes.any { it.title.equals(path.getFilenameFromPath(), true) }) {
toast(R.string.title_taken)

View File

@ -23,7 +23,7 @@
<!-- File notes -->
<string name="open_file">فتح ملف</string>
<string name="export_as_file">تصدير كملف</string>
<string name="file_too_large">ملف كبير جداً، الحد المسموح 10MB</string>
<string name="file_too_large">ملف كبير جداً، الحد المسموح 1MB</string>
<string name="only_import_file_content">استيراد محتوى الملف فقط\n(تغيير الملف لن يؤثر على الملاحظة)</string>
<string name="update_file_at_note">قم بتحديث الملف نفسه عند تحديث الملاحظة\n(يتم حذف الملاحظة إذا تم حذف الملف أو تغيير المسار)</string>
<string name="delete_file_itself">أيضا حذف الملف \"%s\"</string>

View File

@ -23,7 +23,7 @@
<!-- File notes -->
<string name="open_file">Faylı</string>
<string name="export_as_file">Fayl kimi çıxar</string>
<string name="file_too_large">Fayl çox böyükdür, limit 10mb\"dır</string>
<string name="file_too_large">Fayl çox böyükdür, limit 1mb\"dır</string>
<string name="only_import_file_content">Yalnız fayl məzmununu daxil et\n(faylı dəyişmək qeydı təsir etməyəcək)</string>
<string name="update_file_at_note">Qeydi təzələdikdə faylı da təzələ\n(fayl silinirsə qeyd də silinər və ya yeri dəyişər)</string>
<string name="delete_file_itself">Həmçinin \"%s\" faylını da sil</string>

View File

@ -23,7 +23,7 @@
<!-- File notes -->
<string name="open_file">Agor ffeil</string>
<string name="export_as_file">Allforio fel ffeil</string>
<string name="file_too_large">Ffeil yn rhy fawr. Ni all fod yn fwy na 10MB</string>
<string name="file_too_large">Ffeil yn rhy fawr. Ni all fod yn fwy na 1MB</string>
<string name="only_import_file_content">Mewnforio cynnwys y ffeil yn unig\n(ni fydd newid y ffeil yn addasu\'r nodyn)</string>
<string name="update_file_at_note">Diweddaru\'r ffeil ei hun wrth ddiweddaru\'r nodyn\n(caiff y nodyn ei ddileu os yw\'r ffeil yn cael ei dileu neu ei leoliad yn newid)</string>
<string name="delete_file_itself">Hefyd dileu\'r ffeil \"%s\"</string>

View File

@ -23,7 +23,7 @@
<!-- File notes -->
<string name="open_file">Åbn fil …</string>
<string name="export_as_file">Eksporter som fil</string>
<string name="file_too_large">Filen er for stor, den må højst fylde 10MB</string>
<string name="file_too_large">Filen er for stor, den må højst fylde 1MB</string>
<string name="only_import_file_content">Importer kun filindholdet\n(ændring af filen vil ikke berøre noten)</string>
<string name="update_file_at_note">Opdater selve filen når noten ændres\n(noten slettes hvis filen bliver slettet eller flyttes til en anden placering)</string>
<string name="delete_file_itself">Slet også filen \"%s\"</string>

View File

@ -23,7 +23,7 @@
<!-- File notes -->
<string name="open_file">Datei öffnen</string>
<string name="export_as_file">Als Datei exportieren</string>
<string name="file_too_large">Datei ist zu groß. Die maximale Größe beträgt 10 MB.</string>
<string name="file_too_large">Datei ist zu groß. Die maximale Größe beträgt 1 MB.</string>
<string name="only_import_file_content">Importiere nur den Dateiinhalt.\n(Änderungen an der Datei haben keine Auswirkungen auf die Notiz.)</string>
<string name="update_file_at_note">Übernehme Änderungen an der Notiz in die Datei\n(Notiz wird gelöscht, wenn die Datei gelöscht wird oder sich der Pfad ändert.)</string>
<string name="delete_file_itself">Lösche Datei \"%s\"</string>

View File

@ -23,7 +23,7 @@
<!-- File notes -->
<string name="open_file">Abrir archivo</string>
<string name="export_as_file">Exportar como archivo</string>
<string name="file_too_large">Archivo demasiado grande, el límite es 10MB</string>
<string name="file_too_large">Archivo demasiado grande, el límite es 1MB</string>
<string name="only_import_file_content">Sólo importar el contenido del archivo\n(cambiar el archivo no afectará a la nota)</string>
<string name="update_file_at_note">Actualizar el propio archivo cuando se actualice la nota\n(la nota se borrará si el archivo se elimina, o la ruta cambia)</string>
<string name="delete_file_itself">También borrar el archivo \"%s\"</string>

View File

@ -23,7 +23,7 @@
<!-- File notes -->
<string name="open_file">Ouvrir le fichier</string>
<string name="export_as_file">Exporter dans un fichier</string>
<string name="file_too_large">Taille du fichier trop importante, la limite est de 10MB</string>
<string name="file_too_large">Taille du fichier trop importante, la limite est de 1MB</string>
<string name="only_import_file_content">Importer seulement le contenu du fichier\n(changer le fichier n\'affectera pas la note)</string>
<string name="update_file_at_note">Mettre à jour le fichier lui-même lors de la mise à jour de la note\n(la note est supprimée si le fichier est supprimé, ou si le chemin change)</string>
<string name="delete_file_itself">Supprimer également le fichier \"%s\"</string>

View File

@ -25,7 +25,7 @@
<!-- File notes -->
<string name="open_file">Abrir ficheiro</string>
<string name="export_as_file">Exportar como ficheiro</string>
<string name="file_too_large">Ficheiro demasiado grande, o límite é 10MB</string>
<string name="file_too_large">Ficheiro demasiado grande, o límite é 1MB</string>
<string name="only_import_file_content">Só importa o contido do ficheiro\n(cambiar o ficheiro non afecta a nota)</string>
<string name="update_file_at_note">Actualiza o propio ficheiro ao actualizar a nota\n(a nota elimínase si se elimina o ficheiro, ou cambia a ruta)</string>
<string name="delete_file_itself">Borra tamén ficheiro \"%s\"</string>

View File

@ -23,7 +23,7 @@
<!-- File notes -->
<string name="open_file">Otvori datoteku</string>
<string name="export_as_file">Izvezi kao datoteku</string>
<string name="file_too_large">Datoteka je prevelika, granica je 10 MB</string>
<string name="file_too_large">Datoteka je prevelika, granica je 1 MB</string>
<string name="only_import_file_content">Uvezi samo sadržaj datoteke\n(promjena datoteke neće utjecati na bilješku)</string>
<string name="update_file_at_note">Ažurirajte samu datoteku prilikom ažuriranja bilješke\n(bilješka se briše ako se datoteka izbriše ili promjeni putanja)</string>
<string name="delete_file_itself">Također izbriši datoteku \"%s\"</string>

View File

@ -23,7 +23,7 @@
<!-- File notes -->
<string name="open_file">Fájl megnyitása</string>
<string name="export_as_file">Exportálás fájlba</string>
<string name="file_too_large">A fájl túl nagy, legfeljebb 10MB lehet</string>
<string name="file_too_large">A fájl túl nagy, legfeljebb 1MB lehet</string>
<string name="only_import_file_content">Csak a fájl tartalmának importálása\n(a fájl változásai nem látszanak a jegyzetben)</string>
<string name="update_file_at_note">A jegyzetbe íráskor a fájlba is írás\n(a jegyzet törlődik ha a fájl törlődik, vagy változik az elérési útvonala)</string>
<string name="delete_file_itself">\"%s\" fájl is törlődjön</string>

View File

@ -23,7 +23,7 @@
<!-- File notes -->
<string name="open_file">Apri file</string>
<string name="export_as_file">Esporta come file</string>
<string name="file_too_large">File troppo grande, il limite è di 10MB</string>
<string name="file_too_large">File troppo grande, il limite è di 1MB</string>
<string name="only_import_file_content">Importa solo il contenuto del file\n(modificare il file non influenzerà la nota)</string>
<string name="update_file_at_note">Aggiorna il file quando si aggiorna una nota\n(la nota viene eliminata se il file viene eliminato, oppure cambia il percorso)</string>
<string name="delete_file_itself">Elimina anche il file \"%s\"</string>

View File

@ -23,7 +23,7 @@
<!-- File notes -->
<string name="open_file">ファイルを開く</string>
<string name="export_as_file">ファイルとしてエクスポート</string>
<string name="file_too_large">ファイルが大きすぎます (最大:10MBまで)</string>
<string name="file_too_large">ファイルが大きすぎます (最大:1MBまで)</string>
<string name="only_import_file_content">ファイルの内容のみインポートする\n(メモを編集してもファイルには影響しません)</string>
<string name="update_file_at_note">メモを更新するとき、ファイル自体も更新する\n(ファイルが削除、またはパスが変更された場合、メモも削除されます)</string>
<string name="delete_file_itself">ファイル \"%s\" も削除する</string>

View File

@ -23,7 +23,7 @@
<!-- File notes -->
<string name="open_file">Atverti failą</string>
<string name="export_as_file">Kurti kopiją</string>
<string name="file_too_large">Failas per didelis, didžiausias leistinas dydis yra 10MB</string>
<string name="file_too_large">Failas per didelis, didžiausias leistinas dydis yra 1MB</string>
<string name="only_import_file_content">Įkelti tik įrašo turinį\n(Įrašant įrašą jis nebus redaguojamas)</string>
<string name="update_file_at_note">Atnaujinti failą kai atnaujinamas įrašas\n(Įrašas ištrinamas, jei ištrinamas failas ar pakeičiama įrašymo vieta)</string>
<string name="delete_file_itself">Taip pat ištrinti failą \"%s\"</string>

View File

@ -23,7 +23,7 @@
<!-- File notes -->
<string name="open_file">Bestand openen</string>
<string name="export_as_file">Als bestand exporteren</string>
<string name="file_too_large">Bestand is te groot: limiet is 10MB</string>
<string name="file_too_large">Bestand is te groot: limiet is 1MB</string>
<string name="only_import_file_content">Alleen de bestandsinhoud importeren\n(wijzigingen aan het bestand zullen de notitie niet beïnvloeden)</string>
<string name="update_file_at_note">Bestand aanpassen bij wijzigingen in de notitie\n(de notitie wordt gewist als het bestand wordt verplaatst of verwijderd)</string>
<string name="delete_file_itself">Bestand \"%s\" ook verwijderen</string>

View File

@ -23,7 +23,7 @@
<!-- File notes -->
<string name="open_file">Otwórz plik</string>
<string name="export_as_file">Wyeksportuj jako plik</string>
<string name="file_too_large">Plik jest za duży (może mieć co najwyżej 10 MB)</string>
<string name="file_too_large">Plik jest za duży (może mieć co najwyżej 1 MB)</string>
<string name="only_import_file_content">Zaimportuj tylko zawartość pliku\n(zmiana pliku nie będzie miała wpływu na notatkę)</string>
<string name="update_file_at_note">Zaktualizuj plik po zaktualizowaniu notatki\n(notatka zostanie usunięta jeśli plik zostanie usunięty lub zmieni się jego lokalizacja)</string>
<string name="delete_file_itself">Usuń także plik \"%s\"</string>

View File

@ -23,7 +23,7 @@
<!-- File notes -->
<string name="open_file">Abrir arquivo</string>
<string name="export_as_file">Exportar como arquivo</string>
<string name="file_too_large">Arquivo muito grande, o limite é 10 MB</string>
<string name="file_too_large">Arquivo muito grande, o limite é 1 MB</string>
<string name="only_import_file_content">Importe apenas o conteúdo do arquivo\n(modificar o arquivo não afetará a nota)</string>
<string name="update_file_at_note">Atualize o próprio arquivo ao atualizar a nota\n(a nota será excluída se o arquivo for excluído ou o caminho alterado)</string>
<string name="delete_file_itself">Apagar também o arquivo \"%s\"</string>

View File

@ -23,7 +23,7 @@
<!-- File notes -->
<string name="open_file">Abrir ficheiro</string>
<string name="export_as_file">Exportar como ficheiro</string>
<string name="file_too_large">Ficheiro muito grande, o limite são 10 MB</string>
<string name="file_too_large">Ficheiro muito grande, o limite são 1 MB</string>
<string name="only_import_file_content">Importar apenas o conteúdo do ficheiro\n(se alterar o ficheiro, a nota fica intacta)</string>
<string name="update_file_at_note">Atualizar o ficheiro ao atualizar a nota\n(a nota será removida se apagar o ficheiro ou se mudar a sua localização)</string>
<string name="delete_file_itself">Apagar também o ficheiro \"%s\"</string>

View File

@ -23,7 +23,7 @@
<!-- File notes -->
<string name="open_file">Открыть файл</string>
<string name="export_as_file">Экспортировать в файл</string>
<string name="file_too_large">Файл слишком велик, лимит 10МБ</string>
<string name="file_too_large">Файл слишком велик, лимит 1МБ</string>
<string name="only_import_file_content">Только импортировать содержимое файла\n(изменение файла не изменит заметку)</string>
<string name="update_file_at_note">Обновлять содержимое файла при обновлении заметки\n(заметка удалится, если удалить файл или изменить путь к нему)</string>
<string name="delete_file_itself">Также удалить файл \"%s\"</string>

View File

@ -23,7 +23,7 @@
<!-- File notes -->
<string name="open_file">Otvoriť súbor</string>
<string name="export_as_file">Exportovať ako súbor</string>
<string name="file_too_large">Súbor je príliš veľký, maximálny limit je 10MB</string>
<string name="file_too_large">Súbor je príliš veľký, maximálny limit je 1MB</string>
<string name="only_import_file_content">Iba importovať obsah súboru\n(úprava súboru nebude mať vplyv na poznámku)</string>
<string name="update_file_at_note">Aktualizovať samotný súbor po úprave poznámky\n(ak bude daný súbor presunutý, alebo vymazaný, bude vymazaná aj poznámka)</string>
<string name="delete_file_itself">Odstrániť aj súbor \"%s\"</string>

View File

@ -23,7 +23,7 @@
<!-- File notes -->
<string name="open_file">Öppna fil</string>
<string name="export_as_file">Exportera som fil</string>
<string name="file_too_large">Filen är för stor, gränsen är 10 MB</string>
<string name="file_too_large">Filen är för stor, gränsen är 1 MB</string>
<string name="only_import_file_content">Importera bara innehållet i filen\n(anteckningen påverkas inte om filen ändras)</string>
<string name="update_file_at_note">Uppdatera själva filen när anteckningen uppdateras\n(anteckningen tas bort om filen tas bort eller sökvägen ändras)</string>
<string name="delete_file_itself">Ta även bort filen \"%s\"</string>

View File

@ -23,7 +23,7 @@
<!-- File notes -->
<string name="open_file">Dosya aç</string>
<string name="export_as_file">Dosya olarak aktar</string>
<string name="file_too_large">Dosya çok büyük, sınır 10MB</string>
<string name="file_too_large">Dosya çok büyük, sınır 1MB</string>
<string name="only_import_file_content">Sadece dosya içeriğini içe aktar\n(dosyayı değiştirmek notu etkilemez)</string>
<string name="update_file_at_note">Not güncellenirken orijinal dosyayı da güncelle\n(dosya silinirse veya yol değişirse not silinir)</string>
<string name="delete_file_itself">\"%s\" dosyasını da sil</string>

View File

@ -23,7 +23,7 @@
<!-- File notes -->
<string name="open_file">Відкрити файл</string>
<string name="export_as_file">Експортувати як файл</string>
<string name="file_too_large">Файл надто великого розміру, ліміт складає 10MB</string>
<string name="file_too_large">Файл надто великого розміру, ліміт складає 1MB</string>
<string name="only_import_file_content">Імпортувати лише вміст файлу\n(зміна файлу не змінить нотатку)</string>
<string name="update_file_at_note">Оновлювати вміст файлу при оновленні нотатки\n(нотатку буде видалено, якщо буде видалено файл або зміниться його розташування)</string>
<string name="delete_file_itself">Також видалити файл \"%s\"</string>

View File

@ -23,7 +23,7 @@
<!-- File notes -->
<string name="open_file">打开文件</string>
<string name="export_as_file">以文件的形式导出</string>
<string name="file_too_large">文件太大了, 限制只有10MB</string>
<string name="file_too_large">文件太大了, 限制只有1MB</string>
<string name="only_import_file_content">只要导入文件的内容\n(改变文件不会影响笔记)</string>
<string name="update_file_at_note">在更新笔记的时侯更新文件本身\n(注意,如果文件被删除或路径更改,将被删除)</string>
<string name="delete_file_itself">同时删除文件 \"%s\"</string>

View File

@ -23,7 +23,7 @@
<!-- File notes -->
<string name="open_file">打開檔案</string>
<string name="export_as_file">匯出成檔案</string>
<string name="file_too_large">檔案太大上限10MB</string>
<string name="file_too_large">檔案太大上限1MB</string>
<string name="only_import_file_content">僅匯入檔案內容\n(檔案變更不影響筆記)</string>
<string name="update_file_at_note">更新筆記時也更新檔案本身\n(如果檔案被刪除或變更路徑,筆記將被刪除)</string>
<string name="delete_file_itself">也刪除檔案 \"%s\"</string>

View File

@ -23,7 +23,7 @@
<!-- File notes -->
<string name="open_file">Open file</string>
<string name="export_as_file">Export as file</string>
<string name="file_too_large">File too large, the limit is 10MB</string>
<string name="file_too_large">File too large, the limit is 1MB</string>
<string name="only_import_file_content">Only import the file content\n(changing the file will not affect the note)</string>
<string name="update_file_at_note">Update the file itself at updating the note\n(note gets deleted if file gets deleted, or path changes)</string>
<string name="delete_file_itself">Also delete file \"%s\"</string>