room-history: Make title of location preview translatable

This commit is contained in:
Kévin Commaille 2022-10-02 19:51:27 +02:00
parent 4e355341a3
commit 5f5ebd5730
No known key found for this signature in database
GPG key ID: DD507DAE96E8245C

View file

@ -925,7 +925,8 @@ impl RoomHistory {
let geo_uri = format!("geo:{},{}", location.latitude(), location.longitude());
let window = self.root().unwrap().downcast::<gtk::Window>().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(());
}