Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
gajim-plugins
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Evert Mouw
gajim-plugins
Commits
042c491a
Commit
042c491a
authored
7 years ago
by
Daniel Brötzmann
Browse files
Options
Downloads
Patches
Plain Diff
[omemo] Make some strings translatable
parent
5e31aefe
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
omemo/file_crypto.py
+5
-5
5 additions, 5 deletions
omemo/file_crypto.py
omemo/omemo_connection.py
+2
-2
2 additions, 2 deletions
omemo/omemo_connection.py
omemo/ui.py
+13
-13
13 additions, 13 deletions
omemo/ui.py
with
20 additions
and
20 deletions
omemo/file_crypto.py
+
5
−
5
View file @
042c491a
...
...
@@ -144,8 +144,8 @@ class FileDecryption:
file
.
filepath
=
os
.
path
.
join
(
DIRECTORY
,
newfilename
)
def
finished
(
self
,
file
):
question
=
'
Do you want to open %s
'
%
file
.
filename
YesNoDialog
(
'
Open File
'
,
question
,
question
=
_
(
'
Do you want to open %s
'
)
%
file
.
filename
YesNoDialog
(
_
(
'
Open File
'
)
,
question
,
transient_for
=
self
.
window
,
on_response_yes
=
(
self
.
open_file
,
file
.
filepath
))
return
False
...
...
@@ -169,18 +169,18 @@ class Download:
self
.
download
()
def
download
(
self
):
GLib
.
idle_add
(
self
.
progressbar
.
set_text
,
'
Downloading...
'
)
GLib
.
idle_add
(
self
.
progressbar
.
set_text
,
_
(
'
Downloading...
'
)
)
data
=
self
.
load_url
()
if
isinstance
(
data
,
str
):
GLib
.
idle_add
(
self
.
progressbar
.
close_dialog
)
GLib
.
idle_add
(
self
.
error
,
data
)
return
GLib
.
idle_add
(
self
.
progressbar
.
set_text
,
'
Decrypting...
'
)
GLib
.
idle_add
(
self
.
progressbar
.
set_text
,
_
(
'
Decrypting...
'
)
)
decrypted_data
=
self
.
aes_decrypt
(
data
)
GLib
.
idle_add
(
self
.
progressbar
.
set_text
,
'
Writing file to harddisk...
'
)
self
.
progressbar
.
set_text
,
_
(
'
Writing file to harddisk...
'
)
)
self
.
write_file
(
decrypted_data
)
GLib
.
idle_add
(
self
.
progressbar
.
close_dialog
)
...
...
This diff is collapsed.
Click to expand it.
omemo/omemo_connection.py
+
2
−
2
View file @
042c491a
...
...
@@ -493,8 +493,8 @@ class OMEMOConnection:
event
.
msg_iq
.
addChild
(
node
=
eme_node
)
# Add Message for devices that dont support OMEMO
support_msg
=
'
You received a message encrypted with
'
\
'
OMEMO but your client doesnt support OMEMO.
'
support_msg
=
_
(
'
You received a message encrypted with
'
\
'
OMEMO but your client doesnt support OMEMO.
'
)
event
.
msg_iq
.
setBody
(
support_msg
)
# Store Hint for MAM
...
...
This diff is collapsed.
Click to expand it.
omemo/ui.py
+
13
−
13
View file @
042c491a
...
...
@@ -192,10 +192,10 @@ class OMEMOConfigDialog(GajimPluginConfigDialog):
fpr
=
fpr
[
31
:
-
12
]
YesNoDialog
(
'
Delete Fingerprint?
'
,
'
Do you want to delete the
'
'
fingerprint of <b>{}</b> on your account <b>{}</b>?
'
'
\n\n
<tt>{}</tt>
'
.
format
(
jid
,
account
,
fpr
),
_
(
'
Delete Fingerprint?
'
)
,
_
(
'
Do you want to delete the
'
'
fingerprint of <b>{
jid
}</b> on your account <b>{
account
}</b>?
'
'
\n\n
<tt>{
fingerprint
}</tt>
'
)
.
format
(
jid
=
jid
,
account
=
account
,
fingerprint
=
fpr
),
on_response_yes
=
on_yes
,
transient_for
=
self
)
def
trust_button_clicked_cb
(
self
,
button
,
*
args
):
...
...
@@ -223,10 +223,10 @@ class OMEMOConfigDialog(GajimPluginConfigDialog):
identity_key
=
record
.
getSessionState
().
getRemoteIdentityKey
()
YesNoDialog
(
'
Trust / Revoke Fingerprint?
'
,
'
Do you want to trust the fingerprint of <b>{}</b>
'
'
on your account <b>{}</b>?
\n\n
'
'
<tt>{}</tt>
'
.
format
(
jid
,
account
,
fpr
),
_
(
'
Trust / Revoke Fingerprint?
'
)
,
_
(
'
Do you want to trust the fingerprint of <b>{
jid
}</b>
'
'
on your account <b>{
account
}</b>?
\n\n
'
'
<tt>{
fingerprint
}</tt>
'
)
.
format
(
jid
=
jid
,
account
=
account
,
fingerprint
=
fpr
),
on_response_yes
=
(
on_yes
,
identity_key
),
on_response_no
=
(
on_no
,
identity_key
),
transient_for
=
self
)
...
...
@@ -365,7 +365,7 @@ class FingerprintWindow(Gtk.Dialog):
self
.
omemostate
=
self
.
plugin
.
get_omemo
(
self
.
account
)
self
.
own_jid
=
app
.
get_jid_from_account
(
self
.
account
)
Gtk
.
Dialog
.
__init__
(
self
,
title
=
(
'
Fingerprints for %s
'
)
%
contact
.
jid
,
title
=
(
_
(
'
Fingerprints for %s
'
)
)
%
contact
.
jid
,
parent
=
parent
,
flags
=
Gtk
.
DialogFlags
.
DESTROY_WITH_PARENT
)
close_button
=
self
.
add_button
(
Gtk
.
STOCK_CLOSE
,
Gtk
.
ResponseType
.
CLOSE
)
...
...
@@ -432,10 +432,10 @@ class FingerprintWindow(Gtk.Dialog):
identity_key
=
record
.
getSessionState
().
getRemoteIdentityKey
()
YesNoDialog
(
'
Trust / Revoke Fingerprint?
'
,
'
Do you want to trust the fingerprint of <b>{}</b>
'
'
on your account <b>{}</b>?
\n\n
'
'
<tt>{}</tt>
'
.
format
(
jid
,
self
.
account
,
fpr
),
_
(
'
Trust / Revoke Fingerprint?
'
)
,
_
(
'
Do you want to trust the fingerprint of <b>{
jid
}</b>
'
'
on your account <b>{
account
}</b>?
\n\n
'
'
<tt>{
fingerprint
}</tt>
'
)
.
format
(
jid
=
jid
,
account
=
self
.
account
,
fingerprint
=
fpr
),
on_response_yes
=
(
on_yes
,
identity_key
),
on_response_no
=
(
on_no
,
identity_key
),
transient_for
=
self
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment