From 8e6db8859c756ef2445e1f5277103d83c735c726 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Wed, 9 Oct 2019 23:32:03 +0200 Subject: [PATCH] Plugins: Set UI texts in code instead of .ui files to fix translations Co-authored-by: srgcdev --- plugins/crypto-vala/src/cipher.vala | 4 ++-- plugins/omemo/data/contact_details_dialog.ui | 14 ++++---------- plugins/omemo/data/manage_key_dialog.ui | 12 +++--------- plugins/omemo/src/ui/contact_details_dialog.vala | 14 ++++++++++++++ plugins/omemo/src/ui/manage_key_dialog.vala | 12 ++++++++++++ 5 files changed, 35 insertions(+), 21 deletions(-) diff --git a/plugins/crypto-vala/src/cipher.vala b/plugins/crypto-vala/src/cipher.vala index 4a97ec25..306dafa8 100644 --- a/plugins/crypto-vala/src/cipher.vala +++ b/plugins/crypto-vala/src/cipher.vala @@ -40,7 +40,7 @@ public class SymmetricCipher { case "POLY1305": return GCrypt.Cipher.Mode.POLY1305; case "OCB": return GCrypt.Cipher.Mode.OCB; case "CFB8": return GCrypt.Cipher.Mode.CFB8; - case "XTS": return GCrypt.Cipher.Mode.XTS; + // case "XTS": return GCrypt.Cipher.Mode.XTS; // Not supported in gcrypt < 1.8 } return GCrypt.Cipher.Mode.NONE; } @@ -149,4 +149,4 @@ public class SymmetricCipher { may_throw_gcrypt_error(cipher.sync()); } } -} \ No newline at end of file +} diff --git a/plugins/omemo/data/contact_details_dialog.ui b/plugins/omemo/data/contact_details_dialog.ui index 1f3e9afa..50e19eee 100644 --- a/plugins/omemo/data/contact_details_dialog.ui +++ b/plugins/omemo/data/contact_details_dialog.ui @@ -2,7 +2,6 @@