From 5f5ebd57304d1fbba5126b333d0ed04acee95467 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Sun, 2 Oct 2022 19:51:27 +0200 Subject: [PATCH] room-history: Make title of location preview translatable --- src/session/content/room_history/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/session/content/room_history/mod.rs b/src/session/content/room_history/mod.rs index 21203885..33edea63 100644 --- a/src/session/content/room_history/mod.rs +++ b/src/session/content/room_history/mod.rs @@ -925,7 +925,8 @@ impl RoomHistory { let geo_uri = format!("geo:{},{}", location.latitude(), location.longitude()); let window = self.root().unwrap().downcast::().unwrap(); - let dialog = AttachmentDialog::for_location(&window, "Your Location", &geo_uri); + let dialog = + AttachmentDialog::for_location(&window, &gettext("Your Location"), &geo_uri); if dialog.run_future().await != gtk::ResponseType::Ok { return Ok(()); }