Skip to content
Snippets Groups Projects
Commit e9bb1a92 authored by nkour's avatar nkour
Browse files

higing and marking for translation in popup notify

parent 646191d4
No related branches found
No related tags found
No related merge requests found
...@@ -689,16 +689,16 @@ class Popup_notification_window: ...@@ -689,16 +689,16 @@ class Popup_notification_window:
# set colors [ http://www.w3schools.com/html/html_colornames.asp ] # set colors [ http://www.w3schools.com/html/html_colornames.asp ]
self.window.modify_bg(gtk.STATE_NORMAL, gtk.gdk.color_parse('black')) self.window.modify_bg(gtk.STATE_NORMAL, gtk.gdk.color_parse('black'))
if event_type == 'Contact signed in': if event_type == _('Contact Signed In'):
close_button.modify_bg(gtk.STATE_NORMAL, gtk.gdk.color_parse('limegreen')) close_button.modify_bg(gtk.STATE_NORMAL, gtk.gdk.color_parse('limegreen'))
eventbox.modify_bg(gtk.STATE_NORMAL, gtk.gdk.color_parse('limegreen')) eventbox.modify_bg(gtk.STATE_NORMAL, gtk.gdk.color_parse('limegreen'))
elif event_type == 'Contact signed out': elif event_type == _('Contact Signed Out'):
close_button.modify_bg(gtk.STATE_NORMAL, gtk.gdk.color_parse('red')) close_button.modify_bg(gtk.STATE_NORMAL, gtk.gdk.color_parse('red'))
eventbox.modify_bg(gtk.STATE_NORMAL, gtk.gdk.color_parse('red')) eventbox.modify_bg(gtk.STATE_NORMAL, gtk.gdk.color_parse('red'))
elif event_type == 'New Message': elif event_type == _('New Message'):
close_button.modify_bg(gtk.STATE_NORMAL, gtk.gdk.color_parse('dodgerblue')) close_button.modify_bg(gtk.STATE_NORMAL, gtk.gdk.color_parse('dodgerblue'))
eventbox.modify_bg(gtk.STATE_NORMAL, gtk.gdk.color_parse('dodgerblue')) eventbox.modify_bg(gtk.STATE_NORMAL, gtk.gdk.color_parse('dodgerblue'))
txt = 'From ' + txt txt = _('From %s') % txt
# position the window to bottom-right of screen # position the window to bottom-right of screen
window_width, self.window_height = self.window.get_size() window_width, self.window_height = self.window.get_size()
......
...@@ -306,7 +306,7 @@ class Interface: ...@@ -306,7 +306,7 @@ class Interface:
show_notification = True show_notification = True
if show_notification: if show_notification:
instance = dialogs.Popup_notification_window(self, instance = dialogs.Popup_notification_window(self,
'Contact signed in', jid, account) _('Contact Signed In'), jid, account)
self.roster.popup_notification_windows.append(instance) self.roster.popup_notification_windows.append(instance)
elif old_show > 1 and new_show < 2: elif old_show > 1 and new_show < 2:
...@@ -324,13 +324,13 @@ class Interface: ...@@ -324,13 +324,13 @@ class Interface:
show_notification = True show_notification = True
if show_notification: if show_notification:
instance = dialogs.Popup_notification_window(self, instance = dialogs.Popup_notification_window(self,
'Contact signed out', jid, account) _('Contact Signed Out'), jid, account)
self.roster.popup_notification_windows.append(instance) self.roster.popup_notification_windows.append(instance)
elif self.windows[account]['gc'].has_key(ji): elif self.windows[account]['gc'].has_key(ji):
#it is a groupchat presence #it is a groupchat presence
self.windows[account]['gc'][ji].chg_user_status(ji, resource, \ self.windows[account]['gc'][ji].chg_user_status(ji, resource,
array[1], array[2], array[6], array[7], array[8], array[9], \ array[1], array[2], array[6], array[7], array[8], array[9],
array[10], array[11], account) array[10], array[11], account)
def handle_event_msg(self, account, array): def handle_event_msg(self, account, array):
...@@ -355,13 +355,13 @@ class Interface: ...@@ -355,13 +355,13 @@ class Interface:
show_notification = True show_notification = True
if show_notification: if show_notification:
instance = dialogs.Popup_notification_window(self, instance = dialogs.Popup_notification_window(self,
'New Message', jid, account) _('New Message'), jid, account)
self.roster.popup_notification_windows.append(instance) self.roster.popup_notification_windows.append(instance)
self.roster.on_message(jid, array[1], array[2], account, array[3]) self.roster.on_message(jid, array[1], array[2], account, array[3])
if gajim.config.get_per('soundevents', 'first_message_received', \ if gajim.config.get_per('soundevents', 'first_message_received',
'enabled') and first: 'enabled') and first:
self.play_sound('first_message_received') self.play_sound('first_message_received')
if gajim.config.get_per('soundevents', 'next_message_received', \ if gajim.config.get_per('soundevents', 'next_message_received',
'enabled') and not first: 'enabled') and not first:
self.play_sound('next_message_received') self.play_sound('next_message_received')
...@@ -372,7 +372,7 @@ class Interface: ...@@ -372,7 +372,7 @@ class Interface:
self.windows[account]['gc'][jid].print_conversation('Error %s: %s' % \ self.windows[account]['gc'][jid].print_conversation('Error %s: %s' % \
(array[1], array[2]), jid) (array[1], array[2]), jid)
if self.windows[account]['gc'][jid].get_active_jid() == jid: if self.windows[account]['gc'][jid].get_active_jid() == jid:
self.windows[account]['gc'][jid].set_subject(jid, \ self.windows[account]['gc'][jid].set_subject(jid,
self.windows[account]['gc'][jid].subjects[jid]) self.windows[account]['gc'][jid].subjects[jid])
return return
if jid.find('@') <= 0: if jid.find('@') <= 0:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment