Skip to content

Commit

Permalink
fix: refactoring file message
Browse files Browse the repository at this point in the history
  • Loading branch information
k.mesniankin committed Nov 2, 2024
1 parent 3674e15 commit de83757
Show file tree
Hide file tree
Showing 27 changed files with 29 additions and 3 deletions.
1 change: 1 addition & 0 deletions locales/ar.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ torrent-file-message =
<b>{$name}</b>
---
الحجم: {$size}
---
التحميل: {$download}
torrent-files-empty = لا توجد ملفات
torrent-files-error = حدث خطأ أثناء استرجاع الملفات
Expand Down
1 change: 1 addition & 0 deletions locales/bn.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ torrent-file-message =
<b>{$name}</b>
---
আকার: {$size}
---
ডাউনলোড: {$download}
torrent-files-empty = কোন ফাইল নেই
torrent-files-error = ফাইলগুলি পুনরুদ্ধার করার সময় একটি ত্রুটি ঘটেছে
Expand Down
1 change: 1 addition & 0 deletions locales/cs.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ torrent-file-message =
<b>{$name}</b>
---
Velikost: {$size}
---
Stáhnout: {$download}
torrent-files-empty = Žádné soubory
torrent-files-error = Při načítání souborů došlo k chybě
Expand Down
1 change: 1 addition & 0 deletions locales/de.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ torrent-file-message =
<b>{$name}</b>
---
Größe: {$size}
---
Herunterladen: {$download}
torrent-files-empty = Keine Dateien
torrent-files-error = Beim Abrufen der Dateien ist ein Fehler aufgetreten
Expand Down
1 change: 1 addition & 0 deletions locales/el.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ torrent-file-message =
<b>{$name}</b>
---
Μέγεθος: {$size}
---
Λήψη: {$download}
torrent-files-empty = Δεν υπάρχουν αρχεία
torrent-files-error = Παρουσιάστηκε σφάλμα κατά την ανάκτηση των αρχείων
Expand Down
1 change: 1 addition & 0 deletions locales/en.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ torrent-file-message =
<b>{$name}</b>
---
Size: {$size}
---
Download: {$download}
torrent-files-empty = No files
torrent-files-error = An error occurred while retrieving files
Expand Down
1 change: 1 addition & 0 deletions locales/es.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ torrent-file-message =
<b>{$name}</b>
---
Tamaño: {$size}
---
Descargar: {$download}
torrent-files-empty = No hay archivos
torrent-files-error = Se produjo un error al recuperar los archivos
Expand Down
1 change: 1 addition & 0 deletions locales/fr.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ torrent-file-message =
<b>{$name}</b>
---
Taille: {$size}
---
Télécharger: {$download}
torrent-files-empty = Aucun fichier
torrent-files-error = Une erreur s'est produite lors de la récupération des fichiers
Expand Down
3 changes: 2 additions & 1 deletion locales/he.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ torrent-file-message =
<b>{$name}</b>
---
גודל: {$size}
הורדה: {$download}
---
הורד: {$download}
torrent-files-empty = אין קבצים
torrent-files-error = אירעה שגיאה בעת אחזור הקבצים
torrent-file-uploading = מעלה, אנא המתן...
Expand Down
1 change: 1 addition & 0 deletions locales/hi.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ torrent-file-message =
<b>{$name}</b>
---
आकार: {$size}
---
डाउनलोड: {$download}
torrent-files-empty = कोई फाइल नहीं
torrent-files-error = फाइलें पुनः प्राप्त करते समय त्रुटि हुई
Expand Down
1 change: 1 addition & 0 deletions locales/hu.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ torrent-file-message =
<b>{$name}</b>
---
Méret: {$size}
---
Letöltés: {$download}
torrent-files-empty = Nincsenek fájlok
torrent-files-error = Hiba történt a fájlok lekérése közben
Expand Down
1 change: 1 addition & 0 deletions locales/id.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ torrent-file-message =
<b>{$name}</b>
---
Ukuran: {$size}
---
Unduh: {$download}
torrent-files-empty = Tidak ada file
torrent-files-error = Terjadi kesalahan saat mengambil file
Expand Down
1 change: 1 addition & 0 deletions locales/it.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ torrent-file-message =
<b>{$name}</b>
---
Dimensione: {$size}
---
Scarica: {$download}
torrent-files-empty = Nessun file
torrent-files-error = Si è verificato un errore durante il recupero dei file
Expand Down
1 change: 1 addition & 0 deletions locales/ja.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ torrent-file-message =
<b>{$name}</b>
---
サイズ: {$size}
---
ダウンロード: {$download}
torrent-files-empty = ファイルがありません
torrent-files-error = ファイルの取得中にエラーが発生しました
Expand Down
1 change: 1 addition & 0 deletions locales/ko.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ torrent-file-message =
<b>{$name}</b>
---
크기: {$size}
---
다운로드: {$download}
torrent-files-empty = 파일이 없습니다
torrent-files-error = 파일을 가져오는 중 오류가 발생했습니다
Expand Down
1 change: 1 addition & 0 deletions locales/nl.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ torrent-file-message =
<b>{$name}</b>
---
Grootte: {$size}
---
Downloaden: {$download}
torrent-files-empty = Geen bestanden
torrent-files-error = Er is een fout opgetreden bij het ophalen van bestanden
Expand Down
1 change: 1 addition & 0 deletions locales/pl.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ torrent-file-message =
<b>{$name}</b>
---
Rozmiar: {$size}
---
Pobierz: {$download}
torrent-files-empty = Brak plików
torrent-files-error = Wystąpił błąd podczas pobierania plików
Expand Down
1 change: 1 addition & 0 deletions locales/pt.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ torrent-file-message =
<b>{$name}</b>
---
Tamanho: {$size}
---
Baixar: {$download}
torrent-files-empty = Nenhum arquivo
torrent-files-error = Ocorreu um erro ao recuperar os arquivos
Expand Down
1 change: 1 addition & 0 deletions locales/ro.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ torrent-file-message =
<b>{$name}</b>
---
Dimensiune: {$size}
---
Descărcare: {$download}
torrent-files-empty = Niciun fișier
torrent-files-error = A apărut o eroare la preluarea fișierelor
Expand Down
1 change: 1 addition & 0 deletions locales/ru.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ torrent-file-message =
<b>{$name}</b>
---
Размер: {$size}
---
Скачать: {$download}
torrent-files-empty = Нет файлов
torrent-files-error = Произошла ошибка при получении файлов
Expand Down
1 change: 1 addition & 0 deletions locales/sv.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ torrent-file-message =
<b>{$name}</b>
---
Storlek: {$size}
---
Ladda ner: {$download}
torrent-files-empty = Inga filer
torrent-files-error = Ett fel uppstod vid hämtning av filer
Expand Down
1 change: 1 addition & 0 deletions locales/th.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ torrent-file-message =
<b>{$name}</b>
---
ขนาด: {$size}
---
ดาวน์โหลด: {$download}
torrent-files-empty = ไม่มีไฟล์
torrent-files-error = เกิดข้อผิดพลาดขณะดึงไฟล์
Expand Down
1 change: 1 addition & 0 deletions locales/tr.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ torrent-file-message =
<b>{$name}</b>
---
Boyut: {$size}
---
İndir: {$download}
torrent-files-empty = Dosya yok
torrent-files-error = Dosyalar alınırken bir hata oluştu
Expand Down
1 change: 1 addition & 0 deletions locales/uk.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ torrent-file-message =
<b>{$name}</b>
---
Розмір: {$size}
---
Завантажити: {$download}
torrent-files-empty = Немає файлів
torrent-files-error = Виникла помилка при отриманні файлів
Expand Down
1 change: 1 addition & 0 deletions locales/vi.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ torrent-file-message =
<b>{$name}</b>
---
Kích thước: {$size}
---
Tải về: {$download}
torrent-files-empty = Không có tệp nào
torrent-files-error = Đã xảy ra lỗi khi truy xuất tệp
Expand Down
1 change: 1 addition & 0 deletions locales/zh.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ torrent-file-message =
<b>{$name}</b>
---
大小: {$size}
---
下载: {$download}
torrent-files-empty = 没有文件
torrent-files-error = 检索文件时出错
Expand Down
4 changes: 2 additions & 2 deletions src/composers/TorrentsComposer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -694,9 +694,9 @@ export class TorrentsComposer<

if (file.size > MAX_FILE_SIZE) {
if (isVideo(fileType)) {
size += ` will be compressed to ~${formatBytes(MAX_FILE_SIZE)}`;
size += ` (will be compressed)`;
} else {
download = 'file is too big';
download = 'File is too big!';
}
}

Expand Down

0 comments on commit de83757

Please sign in to comment.