From 492a9ece7514ed71652c066da6d8100bcc4bfede Mon Sep 17 00:00:00 2001 From: thek4n Date: Mon, 23 Mar 2026 15:28:25 +0300 Subject: [PATCH] translate --- src/main.rs | 2 +- templates/dir.html | 9 +++++---- templates/file.html | 11 ++++++----- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/src/main.rs b/src/main.rs index b552a1c..ed9044d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -116,7 +116,7 @@ fn resolve_addr(host: &str, port: u16) -> io::Result { addr_str .to_socket_addrs()? .next() - .ok_or_else(|| io::Error::new(io::ErrorKind::NotFound, "Не удалось разрешить адрес")) + .ok_or_else(|| io::Error::new(io::ErrorKind::NotFound, "Cannot resolve addr")) } async fn root(State(state): State) -> Result, StatusCode> { diff --git a/templates/dir.html b/templates/dir.html index 5d4943b..2988ba7 100644 --- a/templates/dir.html +++ b/templates/dir.html @@ -3,7 +3,7 @@ - Обзор директории + Directory
-

📂 Обзор директории: /{{TITLE_PATH}}

+

📂 Directory: /{{TITLE_PATH}}

{{FILE_LIST}}
diff --git a/templates/file.html b/templates/file.html index 54160ed..4d4b631 100644 --- a/templates/file.html +++ b/templates/file.html @@ -155,6 +155,7 @@ padding-top: 15px; } .footer a { + padding: 1em; color: #757575; } .back-link { @@ -185,14 +186,14 @@ @@ -207,7 +208,7 @@ setTimeout(connect, 3000); }; evtSource.addEventListener("reload", (event) => { - console.log("Получено событие обновления"); + console.log("Get new update event"); location.reload(); }); } @@ -232,7 +233,7 @@ button.style.color = ''; }, 2000); }).catch(err => { - console.error('Ошибка копирования:', err); + console.error('Error copying:', err); button.innerText = 'Error'; }); }