mirror of
https://github.com/SELinuxProject/setools
synced 2025-04-01 00:06:19 +00:00
Role/UserModel: revise strings.
This commit is contained in:
parent
fbee99a747
commit
5063edd111
setoolsgui
@ -33,7 +33,7 @@ def role_detail(parent, role):
|
||||
role The role
|
||||
"""
|
||||
|
||||
detail = DetailsPopup(parent, "SELinux role detail: {0}".format(role))
|
||||
detail = DetailsPopup(parent, "Role detail: {0}".format(role))
|
||||
|
||||
types = sorted(role.types())
|
||||
detail.append_header("Types ({0}): ".format(len(types)))
|
||||
@ -55,7 +55,7 @@ class RoleTableModel(QAbstractTableModel):
|
||||
def headerData(self, section, orientation, role):
|
||||
if role == Qt.DisplayRole and orientation == Qt.Horizontal:
|
||||
if section == 0:
|
||||
return "Role Name"
|
||||
return "Name"
|
||||
elif section == 1:
|
||||
return "Types"
|
||||
|
||||
|
@ -31,7 +31,7 @@ def user_detail(parent, user):
|
||||
user The user
|
||||
"""
|
||||
|
||||
detail = DetailsPopup(parent, "SELinux user detail: {0}".format(user))
|
||||
detail = DetailsPopup(parent, "User detail: {0}".format(user))
|
||||
|
||||
roles = sorted(user.roles)
|
||||
detail.append_header("Roles ({0}):".format(len(roles)))
|
||||
@ -65,7 +65,7 @@ class UserTableModel(QAbstractTableModel):
|
||||
def headerData(self, section, orientation, role):
|
||||
if role == Qt.DisplayRole and orientation == Qt.Horizontal:
|
||||
if section == 0:
|
||||
return "User Name"
|
||||
return "Name"
|
||||
elif section == 1:
|
||||
return "Roles"
|
||||
elif section == 2:
|
||||
|
Loading…
Reference in New Issue
Block a user