localize UI strings: Italian → English
This commit is contained in:
@@ -154,8 +154,8 @@ impl RelayApp {
|
|||||||
);
|
);
|
||||||
let _ = self
|
let _ = self
|
||||||
.broadcast_notification(
|
.broadcast_notification(
|
||||||
"Nuovo device",
|
"New device",
|
||||||
"Un nuovo device è in attesa di conferma",
|
"A new device is pending confirmation",
|
||||||
)
|
)
|
||||||
.await;
|
.await;
|
||||||
} else if let Err(e) = self.client.authorize(&ed25519_pub).await {
|
} else if let Err(e) = self.client.authorize(&ed25519_pub).await {
|
||||||
|
|||||||
@@ -62,14 +62,14 @@ async fn pairing_qr(
|
|||||||
match serde_json::to_string(&qr) {
|
match serde_json::to_string(&qr) {
|
||||||
Ok(json) => match render_qr(&json) {
|
Ok(json) => match render_qr(&json) {
|
||||||
Ok(png) => png_response(png),
|
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::Consumed)) => png_response(render_placeholder("QR already used")),
|
||||||
Some((_, SessionState::Superseded)) => png_response(render_placeholder("QR scaduto")),
|
Some((_, SessionState::Superseded)) => png_response(render_placeholder("QR expired")),
|
||||||
None => png_response(render_placeholder("QR scaduto")),
|
None => png_response(render_placeholder("QR expired")),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -225,7 +225,7 @@ pub async fn create_file(
|
|||||||
) -> Result<StatusCode, ApiError> {
|
) -> Result<StatusCode, ApiError> {
|
||||||
let abs = fs_tools::resolve(&body.path)?;
|
let abs = fs_tools::resolve(&body.path)?;
|
||||||
if abs.exists() {
|
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() {
|
if let Some(parent) = abs.parent() {
|
||||||
std::fs::create_dir_all(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 old_abs = fs_tools::resolve(&body.old_path)?;
|
||||||
let new_abs = fs_tools::resolve(&body.new_path)?;
|
let new_abs = fs_tools::resolve(&body.new_path)?;
|
||||||
if !old_abs.exists() {
|
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() {
|
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() {
|
if let Some(parent) = new_abs.parent() {
|
||||||
std::fs::create_dir_all(parent)?;
|
std::fs::create_dir_all(parent)?;
|
||||||
|
|||||||
@@ -233,7 +233,7 @@ export const InboxMixin = (Base) => class extends Base {
|
|||||||
|
|
||||||
<button class="btn btn-outline-secondary"
|
<button class="btn btn-outline-secondary"
|
||||||
@click=${() => this._approveWithBypass(item, 0)}
|
@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
|
<i class="bi bi-shield-check"></i> Sessione
|
||||||
</button>
|
</button>
|
||||||
` : nothing}
|
` : nothing}
|
||||||
|
|||||||
Reference in New Issue
Block a user