566 7477: Translate 'New Style' and 'Default' on StyleEditor; update template for translation strings
This commit is contained in:
parent
574124a688
commit
567a526857
528
po/gramps.pot
528
po/gramps.pot
File diff suppressed because it is too large
Load Diff
@ -159,7 +159,7 @@ class StyleListDisplay(object):
|
||||
return
|
||||
|
||||
name = unicode(self.list.model.get_value(node, 0))
|
||||
if name == 'default': # the default style cannot be edited
|
||||
if name == _('default'): # the default style cannot be edited
|
||||
return
|
||||
style = self.sheetlist.get_style_sheet(name)
|
||||
StyleEditor(name, style, self)
|
||||
@ -170,7 +170,7 @@ class StyleListDisplay(object):
|
||||
if not node:
|
||||
return
|
||||
name = unicode(self.list.model.get_value(node, 0))
|
||||
if name == 'default': # the default style cannot be removed
|
||||
if name == _('default'): # the default style cannot be removed
|
||||
return
|
||||
self.sheetlist.delete_style_sheet(name)
|
||||
self.redraw()
|
||||
|
Loading…
Reference in New Issue
Block a user