From ce96f8a702f0ab0c46973d576b1a578b947e4a8d Mon Sep 17 00:00:00 2001 From: Stephen Boddy Date: Tue, 4 Aug 2015 20:40:46 +0200 Subject: [PATCH] Make the random default group names translatable (occurred to me that they might look out of place in f.e. Arabic, Chinese, Cyrillic and (ironically) Greek) --- terminatorlib/titlebar.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/terminatorlib/titlebar.py b/terminatorlib/titlebar.py index cc80e2e4..2e329f86 100755 --- a/terminatorlib/titlebar.py +++ b/terminatorlib/titlebar.py @@ -13,6 +13,7 @@ from version import APP_NAME from util import dbg from terminator import Terminator from editablelabel import EditableLabel +from translation import _ # pylint: disable-msg=R0904 # pylint: disable-msg=W0613 @@ -247,10 +248,10 @@ class Titlebar(gtk.EventBox): if self.terminal.group: self.groupentry.set_text(self.terminal.group) else: - defaultmembers=['Alpha','Beta','Gamma','Delta','Epsilon','Zeta','Eta', - 'Theta','Iota','Kappa','Lambda','Mu','Nu','Xi', - 'Omicron','Pi','Rho','Sigma','Tau','Upsilon','Phi', - 'Chi','Psi','Omega'] + defaultmembers=[_('Alpha'),_('Beta'),_('Gamma'),_('Delta'),_('Epsilon'),_('Zeta'),_('Eta'), + _('Theta'),_('Iota'),_('Kappa'),_('Lambda'),_('Mu'),_('Nu'),_('Xi'), + _('Omicron'),_('Pi'),_('Rho'),_('Sigma'),_('Tau'),_('Upsilon'),_('Phi'), + _('Chi'),_('Psi'),_('Omega')] currentgroups=set(self.terminator.groups) for i in range(1,4): defaultgroups=set(map(''.join, list(itertools.product(defaultmembers,repeat=i))))