Browse Source

Use proper quotes in strings

merge-requests/1327/merge
Alexandre Franke 4 years ago committed by Alexandre Franke
parent
commit
a3e588c78e
  1. 2
      data/resources/ui/account-settings-change-password-subpage.ui
  2. 2
      data/resources/ui/error-page.ui
  3. 4
      data/resources/ui/identity-verification-widget.ui
  4. 2
      data/resources/ui/login-advanced-dialog.ui
  5. 2
      data/resources/ui/session-verification.ui
  6. 2
      src/session/account_settings/devices_page/device_list.rs
  7. 2
      src/session/account_settings/devices_page/device_row.rs
  8. 2
      src/session/content/room_details/invite_subpage/invitee_list.rs
  9. 4
      src/session/content/room_history/message_row/mod.rs
  10. 2
      src/session/room/event.rs
  11. 2
      src/session/room/member.rs
  12. 6
      src/session/room/mod.rs
  13. 4
      src/session/room_creation/mod.rs
  14. 2
      src/session/verification/mod.rs

2
data/resources/ui/account-settings-change-password-subpage.ui

@ -61,7 +61,7 @@
<style>
<class name="body"/>
</style>
<property name="label">Fractal's support for encryption is unstable so you might lose access to your encrypted message history. It is recommended to backup your encryption keys from another Matrix client before proceeding.</property>
<property name="label">Fractals support for encryption is unstable so you might lose access to your encrypted message history. It is recommended to backup your encryption keys from another Matrix client before proceeding.</property>
<property name="wrap">True</property>
<property name="wrap-mode">word-char</property>
<property name="xalign">0.0</property>

2
data/resources/ui/error-page.ui

@ -184,7 +184,7 @@
<property name="wrap">true</property>
<property name="wrap-mode">word-char</property>
<property name="xalign">0.0</property>
<property name="label" translatable="yes">Check the application logs and your distribution's documentation for more details.</property>
<property name="label" translatable="yes">Check the application logs and your distributions documentation for more details.</property>
</object>
</child>
</object>

4
data/resources/ui/identity-verification-widget.ui

@ -112,7 +112,7 @@
</child>
<child>
<object class="GtkLabel">
<property name="label" translatable="yes">Can't scan QR code?</property>
<property name="label" translatable="yes">Cant scan QR code?</property>
<property name="wrap">True</property>
<property name="wrap-mode">word-char</property>
<property name="justify">center</property>
@ -213,7 +213,7 @@
</child>
<child>
<object class="GtkLabel">
<property name="label" translatable="yes">Can't scan QR code?</property>
<property name="label" translatable="yes">Cant scan QR code?</property>
<property name="wrap">True</property>
<property name="wrap-mode">word-char</property>
<property name="justify">center</property>

2
data/resources/ui/login-advanced-dialog.ui

@ -11,7 +11,7 @@
<object class="AdwPreferencesPage">
<child>
<object class="AdwPreferencesGroup">
<property name="description" translatable="yes">Auto-discovery, also known as "well-known lookup", allows to discover the URL of a Matrix homeserver from a domain name. This should only be disabled if your homeserver doesn’t support auto-discovery or if you want to provide the URL yourself.</property>
<property name="description" translatable="yes">Auto-discovery, also known as “well-known lookup”, allows to discover the URL of a Matrix homeserver from a domain name. This should only be disabled if your homeserver doesn’t support auto-discovery or if you want to provide the URL yourself.</property>
<child>
<object class="AdwActionRow">
<property name="title" translatable="yes">_Auto-discovery</property>

2
data/resources/ui/session-verification.ui

@ -205,7 +205,7 @@
</child>
<child>
<object class="GtkLabel">
<property name="label" translatable="yes">If you don't have any of these you can reset your identity, but be aware this makes your old messages inaccessible forever.</property>
<property name="label" translatable="yes">If you dont have any of these you can reset your identity, but be aware this makes your old messages inaccessible forever.</property>
<property name="wrap">True</property>
<property name="wrap-mode">word-char</property>
<property name="justify">center</property>

2
src/session/account_settings/devices_page/device_list.rs

@ -187,7 +187,7 @@ impl DeviceList {
}));
}
Err(error) => {
error!("Couldn't load device list: {}", error);
error!("Couldnt load device list: {}", error);
self.update_list(vec![DeviceItem::for_error(gettext(
"Failed to load connected devices.",
))]);

2
src/session/account_settings/devices_page/device_row.rs

@ -226,7 +226,7 @@ impl DeviceRow {
self.imp().delete_logout_button.set_loading(true);
let window: Option<gtk::Window> = self.root().and_then(|root| root.downcast().ok());
let dialog = gtk::MessageDialog::new(window.as_ref(), gtk::DialogFlags::MODAL, gtk::MessageType::Info, gtk::ButtonsType::OkCancel, &gettext("Fractal's support for encryption is unstable so you might lose access to your encrypted message history. It is recommended to backup your encryption keys from another Matrix client before proceeding."));
let dialog = gtk::MessageDialog::new(window.as_ref(), gtk::DialogFlags::MODAL, gtk::MessageType::Info, gtk::ButtonsType::OkCancel, &gettext("Fractals support for encryption is unstable so you might lose access to your encrypted message history. It is recommended to backup your encryption keys from another Matrix client before proceeding."));
dialog.show();
dialog.connect_response(
clone!(@weak self as obj, @weak dialog => move |_, response| {

2
src/session/content/room_details/invite_subpage/invitee_list.rs

@ -282,7 +282,7 @@ impl InviteeList {
self.set_state(InviteeListState::Matching);
}
Err(error) => {
error!("Couldn't load matching users: {}", error);
error!("Couldnt load matching users: {}", error);
self.set_state(InviteeListState::Error);
self.clear_list();
}

4
src/session/content/room_history/message_row/mod.rs

@ -394,7 +394,7 @@ fn build_content(parent: &adw::Bin, event: &Event, compact: bool) {
child.sticker(content, &event.room().session(), compact);
}
Some(AnyMessageLikeEventContent::RoomEncrypted(content)) => {
warn!("Couldn't decrypt event {:?}", content);
warn!("Couldnt decrypt event {:?}", content);
let child = if let Some(Ok(child)) = parent.child().map(|w| w.downcast::<MessageText>())
{
child
@ -403,7 +403,7 @@ fn build_content(parent: &adw::Bin, event: &Event, compact: bool) {
parent.set_child(Some(&child));
child
};
child.text(gettext("Fractal couldn't decrypt this message."));
child.text(gettext("Fractal couldnt decrypt this message."));
}
Some(AnyMessageLikeEventContent::RoomRedaction(_)) => {
let child = if let Some(Ok(child)) = parent.child().map(|w| w.downcast::<MessageText>())

2
src/session/room/event.rs

@ -92,7 +92,7 @@ mod imp {
glib::ParamSpecBoolean::new(
"can-hide-header",
"Can hide header",
"Whether this event is allowed to hide it's header or not.",
"Whether this event is allowed to hide its header or not.",
false,
glib::ParamFlags::READABLE,
),

2
src/session/room/member.rs

@ -94,7 +94,7 @@ mod imp {
glib::ParamSpecEnum::new(
"membership",
"Membership",
"This member's membership state.",
"This members membership state.",
Membership::static_type(),
Membership::default() as i32,
glib::ParamFlags::READABLE | glib::ParamFlags::EXPLICIT_NOTIFY,

6
src/session/room/mod.rs

@ -197,7 +197,7 @@ mod imp {
glib::ParamSpecObject::new(
"latest-read",
"Latest Read",
"The latest read event in the room's timeline",
"The latest read event in the rooms timeline",
Event::static_type(),
glib::ParamFlags::READABLE,
),
@ -635,7 +635,7 @@ impl Room {
},
Err(error) => {
error!(
"Couldn’t get the user's read receipt for room {}: {}",
"Couldn’t get the users read receipt for room {}: {}",
obj.room_id(),
error
);
@ -700,7 +700,7 @@ impl Room {
}
Err(error) => {
error!(
"Couldn’t get the event of the user's read receipt for room {}: {}",
"Couldn’t get the event of the users read receipt for room {}: {}",
self.room_id(),
error
);

4
src/session/room_creation/mod.rs

@ -326,12 +326,12 @@ impl RoomCreation {
let (is_address_valid, has_error) = if room_address.find(':').is_some() {
priv_
.room_address_error
.set_text(&gettext("Can't contain `:`"));
.set_text(&gettext("Cant contain `:`"));
(false, true)
} else if room_address.find('#').is_some() {
priv_
.room_address_error
.set_text(&gettext("Can't contain `#`"));
.set_text(&gettext("Cant contain `#`"));
(false, true)
} else if room_address.len() > MAX_BYTES {
priv_

2
src/session/verification/mod.rs

@ -10,7 +10,7 @@ pub use self::{
},
verification_list::VerificationList,
};
/// The time a verification is valid after it's creation.
/// The time a verification is valid after its creation.
#[allow(dead_code)]
pub const VERIFICATION_CREATION_TIMEOUT: Duration = Duration::from_secs(60 * 10);
/// The time a verification is valid after it was received by the client.

Loading…
Cancel
Save