Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gajim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
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
Peter Shkenev
gajim
Commits
3cd7d46e
Commit
3cd7d46e
authored
19 years ago
by
nkour
Browse files
Options
Downloads
Patches
Plain Diff
fix strings/comments
parent
abdf76e7
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
src/common/optparser.py
+1
-1
1 addition, 1 deletion
src/common/optparser.py
src/groupchat_window.py
+3
-3
3 additions, 3 deletions
src/groupchat_window.py
src/tabbed_chat_window.py
+2
-2
2 additions, 2 deletions
src/tabbed_chat_window.py
with
6 additions
and
6 deletions
src/common/optparser.py
+
1
−
1
View file @
3cd7d46e
...
...
@@ -47,7 +47,7 @@ def read(self):
fd
=
open
(
self
.
__filename
)
except
:
if
os
.
path
.
exists
(
self
.
__filename
):
#
it is file
about file
FIXME: bad comment
#
we talk
about
a
file
print
_
(
'
error: cannot open %s for reading
'
)
%
self
.
__filename
return
...
...
This diff is collapsed.
Click to expand it.
src/groupchat_window.py
+
3
−
3
View file @
3cd7d46e
...
...
@@ -122,8 +122,8 @@ def on_groupchat_window_delete_event(self, widget, event):
for
room_jid
in
self
.
xmls
:
if
time
.
time
()
-
gajim
.
last_message_time
[
self
.
account
][
room_jid
]
<
2
:
dialog
=
dialogs
.
ConfirmationDialog
(
_
(
'
You just received a new message in room
"
%s
"'
)
%
room_jid
.
split
(
'
@
'
)[
0
],
_
(
'
If you close this window, this message will be lost.
'
)
_
(
'
You just received a new message in room
"
%s
"'
)
%
room_jid
.
split
(
'
@
'
)[
0
],
_
(
'
If you close this window
and you have history disabled
, this message will be lost.
'
)
)
if
dialog
.
get_response
()
!=
gtk
.
RESPONSE_OK
:
dialog
.
destroy
()
...
...
@@ -967,7 +967,7 @@ def remove_tab(self, room_jid):
name
=
gajim
.
get_nick_from_jid
(
room_jid
)
dialog
=
dialogs
.
ConfirmationDialog
(
_
(
'
You just received a new message in room
"
%s
"'
)
%
name
,
_
(
'
If you close this tab, the message will be lost.
'
))
_
(
'
If you close this tab
and you have history disabled
, the message will be lost.
'
))
if
dialog
.
get_response
()
!=
gtk
.
RESPONSE_OK
:
return
...
...
This diff is collapsed.
Click to expand it.
src/tabbed_chat_window.py
+
2
−
2
View file @
3cd7d46e
...
...
@@ -272,7 +272,7 @@ def on_tabbed_chat_window_delete_event(self, widget, event):
dialog
=
dialogs
.
ConfirmationDialog
(
#%s is being replaced in the code with JID
_
(
'
You just received a new message from
"
%s
"'
%
jid
),
_
(
'
If you close th
e window
, this message will be lost.
'
))
_
(
'
If you close th
is tab and you have history disabled
, this message will be lost.
'
))
if
dialog
.
get_response
()
!=
gtk
.
RESPONSE_OK
:
return
True
#stop the propagation of the event
...
...
@@ -340,7 +340,7 @@ def remove_tab(self, jid):
if
time
.
time
()
-
gajim
.
last_message_time
[
self
.
account
][
jid
]
<
2
:
dialog
=
dialogs
.
ConfirmationDialog
(
_
(
'
You just received a new message from
"
%s
"'
%
jid
),
_
(
'
If you close this tab, the message will be lost.
'
))
_
(
'
If you close this tab
and you have history disabled
, the message will be lost.
'
))
if
dialog
.
get_response
()
!=
gtk
.
RESPONSE_OK
:
return
...
...
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