localize UI strings: Italian → English

This commit is contained in:
2026-07-10 20:30:27 +01:00
parent 7dd77d4ef4
commit 088c0c01cb
4 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -154,8 +154,8 @@ impl RelayApp {
);
let _ = self
.broadcast_notification(
"Nuovo device",
"Un nuovo device è in attesa di conferma",
"New device",
"A new device is pending confirmation",
)
.await;
} else if let Err(e) = self.client.authorize(&ed25519_pub).await {
+5 -5
View File
@@ -62,14 +62,14 @@ async fn pairing_qr(
match serde_json::to_string(&qr) {
Ok(json) => match render_qr(&json) {
Ok(png) => png_response(png),
Err(_) => png_response(render_placeholder("Errore QR")),
Err(_) => png_response(render_placeholder("QR error")),
},
Err(_) => png_response(render_placeholder("Errore QR")),
Err(_) => png_response(render_placeholder("QR error")),
}
}
Some((_, SessionState::Consumed)) => png_response(render_placeholder("QR già usato")),
Some((_, SessionState::Superseded)) => png_response(render_placeholder("QR scaduto")),
None => png_response(render_placeholder("QR scaduto")),
Some((_, SessionState::Consumed)) => png_response(render_placeholder("QR already used")),
Some((_, SessionState::Superseded)) => png_response(render_placeholder("QR expired")),
None => png_response(render_placeholder("QR expired")),
}
}
+3 -3
View File
@@ -225,7 +225,7 @@ pub async fn create_file(
) -> Result<StatusCode, ApiError> {
let abs = fs_tools::resolve(&body.path)?;
if abs.exists() {
return Err(anyhow::anyhow!("File già esistente: {}", body.path).into());
return Err(anyhow::anyhow!("File already exists: {}", body.path).into());
}
if let Some(parent) = abs.parent() {
std::fs::create_dir_all(parent)?;
@@ -259,10 +259,10 @@ pub async fn rename_file(
let old_abs = fs_tools::resolve(&body.old_path)?;
let new_abs = fs_tools::resolve(&body.new_path)?;
if !old_abs.exists() {
return Err(anyhow::anyhow!("File non trovato: {}", body.old_path).into());
return Err(anyhow::anyhow!("File not found: {}", body.old_path).into());
}
if new_abs.exists() {
return Err(anyhow::anyhow!("File già esistente: {}", body.new_path).into());
return Err(anyhow::anyhow!("File already exists: {}", body.new_path).into());
}
if let Some(parent) = new_abs.parent() {
std::fs::create_dir_all(parent)?;
+1 -1
View File
@@ -233,7 +233,7 @@ export const InboxMixin = (Base) => class extends Base {
<button class="btn btn-outline-secondary"
@click=${() => this._approveWithBypass(item, 0)}
title="Approva e non chiedere più per questa sessione">
title="Approve and don't ask again for this session">
<i class="bi bi-shield-check"></i> Sessione
</button>
` : nothing}