(trunk-1593) 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)
This commit is contained in:
parent
2254055eb7
commit
795ab2aeec
|
@ -13,6 +13,7 @@ from version import APP_NAME
|
||||||
from util import dbg
|
from util import dbg
|
||||||
from terminator import Terminator
|
from terminator import Terminator
|
||||||
from editablelabel import EditableLabel
|
from editablelabel import EditableLabel
|
||||||
|
from translation import _
|
||||||
|
|
||||||
# pylint: disable-msg=R0904
|
# pylint: disable-msg=R0904
|
||||||
# pylint: disable-msg=W0613
|
# pylint: disable-msg=W0613
|
||||||
|
@ -248,10 +249,10 @@ class Titlebar(Gtk.EventBox):
|
||||||
if self.terminal.group:
|
if self.terminal.group:
|
||||||
self.groupentry.set_text(self.terminal.group)
|
self.groupentry.set_text(self.terminal.group)
|
||||||
else:
|
else:
|
||||||
defaultmembers=['Alpha','Beta','Gamma','Delta','Epsilon','Zeta','Eta',
|
defaultmembers=[_('Alpha'),_('Beta'),_('Gamma'),_('Delta'),_('Epsilon'),_('Zeta'),_('Eta'),
|
||||||
'Theta','Iota','Kappa','Lambda','Mu','Nu','Xi',
|
_('Theta'),_('Iota'),_('Kappa'),_('Lambda'),_('Mu'),_('Nu'),_('Xi'),
|
||||||
'Omicron','Pi','Rho','Sigma','Tau','Upsilon','Phi',
|
_('Omicron'),_('Pi'),_('Rho'),_('Sigma'),_('Tau'),_('Upsilon'),_('Phi'),
|
||||||
'Chi','Psi','Omega']
|
_('Chi'),_('Psi'),_('Omega')]
|
||||||
currentgroups=set(self.terminator.groups)
|
currentgroups=set(self.terminator.groups)
|
||||||
for i in range(1,4):
|
for i in range(1,4):
|
||||||
defaultgroups=set(map(''.join, list(itertools.product(defaultmembers,repeat=i))))
|
defaultgroups=set(map(''.join, list(itertools.product(defaultmembers,repeat=i))))
|
||||||
|
|
Loading…
Reference in New Issue