Role/UserModel: revise strings.

This commit is contained in:
Chris PeBenito 2016-03-16 09:06:54 -04:00
parent fbee99a747
commit 5063edd111
2 changed files with 4 additions and 4 deletions

View File

@ -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"

View File

@ -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: