diff --git a/crates/plugin-mobile-connector/src/app.rs b/crates/plugin-mobile-connector/src/app.rs index 6b2e187..aeec5a2 100644 --- a/crates/plugin-mobile-connector/src/app.rs +++ b/crates/plugin-mobile-connector/src/app.rs @@ -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 { diff --git a/crates/plugin-mobile-connector/src/router.rs b/crates/plugin-mobile-connector/src/router.rs index 11f7436..5a65613 100644 --- a/crates/plugin-mobile-connector/src/router.rs +++ b/crates/plugin-mobile-connector/src/router.rs @@ -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")), } } diff --git a/src/frontend/api/files.rs b/src/frontend/api/files.rs index acc0897..2d610a7 100644 --- a/src/frontend/api/files.rs +++ b/src/frontend/api/files.rs @@ -225,7 +225,7 @@ pub async fn create_file( ) -> Result { 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)?; diff --git a/web/lib/inbox-mixin.js b/web/lib/inbox-mixin.js index 2e1c07c..4452e78 100644 --- a/web/lib/inbox-mixin.js +++ b/web/lib/inbox-mixin.js @@ -233,7 +233,7 @@ export const InboxMixin = (Base) => class extends Base { ` : nothing}