translate status messages too
This commit is contained in:
		
							parent
							
								
									6655267d65
								
							
						
					
					
						commit
						d94941015d
					
				
					 2 changed files with 13 additions and 10 deletions
				
			
		|  | @ -20,6 +20,8 @@ | ||||||
| 
 | 
 | ||||||
| import sre | import sre | ||||||
| import copy | import copy | ||||||
|  | from common import i18n | ||||||
|  | _ = i18n._ | ||||||
| 
 | 
 | ||||||
| OPT_TYPE = 0 | OPT_TYPE = 0 | ||||||
| OPT_VAL = 1 | OPT_VAL = 1 | ||||||
|  | @ -192,12 +194,12 @@ class Config: | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	statusmsg_default = { | 	statusmsg_default = { | ||||||
| 		'Nap': 'I\'m taking a nap.', | 		_('Nap'): _('I\'m taking a nap.'), | ||||||
| 		'Brb': 'Back in some minutes.', | 		_('Brb'): _('Back in some minutes.'), | ||||||
| 		'Eating': 'I\'m eating, so leave me a message.', | 		_('Eating'): _('I\'m eating, so leave me a message.'), | ||||||
| 		'Movie' : 'I\'m watching a movie.' , | 		_('Movie'): _('I\'m watching a movie.'), | ||||||
| 		'Working': 'I\'m working.', | 		_('Working'): _('I\'m working.'), | ||||||
| 		'Phone': 'I\'m on the phone.', | 		_('Phone'): _('I\'m on the phone.'), | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	soundevents_default = { | 	soundevents_default = { | ||||||
|  |  | ||||||
|  | @ -30,13 +30,9 @@ import gobject | ||||||
| import os | import os | ||||||
| import sre | import sre | ||||||
| import signal | import signal | ||||||
| import common.sleepy |  | ||||||
| import check_for_new_version |  | ||||||
| import sys | import sys | ||||||
| import getopt | import getopt | ||||||
| 
 | 
 | ||||||
| from common import gajim |  | ||||||
| from common import connection |  | ||||||
| from common import i18n | from common import i18n | ||||||
| i18n.init() | i18n.init() | ||||||
| _ = i18n._ | _ = i18n._ | ||||||
|  | @ -44,6 +40,11 @@ APP = i18n.APP | ||||||
| gtk.glade.bindtextdomain(APP, i18n.DIR) | gtk.glade.bindtextdomain(APP, i18n.DIR) | ||||||
| gtk.glade.textdomain(APP) | gtk.glade.textdomain(APP) | ||||||
| 
 | 
 | ||||||
|  | import common.sleepy | ||||||
|  | import check_for_new_version | ||||||
|  | from common import gajim | ||||||
|  | from common import connection | ||||||
|  | 
 | ||||||
| from common import optparser | from common import optparser | ||||||
| 
 | 
 | ||||||
| profile = '' | profile = '' | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue