Merge "Mark some strings for translation"

This commit is contained in:
Jenkins 2015-04-10 22:58:52 +00:00 committed by Gerrit Code Review
commit 5d09cfafb8
1 changed files with 4 additions and 4 deletions

View File

@ -159,8 +159,8 @@ class RoleAssignmentV2(controller.V2Controller):
"""
self.assert_admin(context)
if tenant_id is None:
raise exception.NotImplemented(message='User roles not supported: '
'tenant_id required')
raise exception.NotImplemented(
message=_('User roles not supported: tenant_id required'))
self.assignment_api.add_role_to_user_and_project(
user_id, tenant_id, role_id)
@ -178,8 +178,8 @@ class RoleAssignmentV2(controller.V2Controller):
"""
self.assert_admin(context)
if tenant_id is None:
raise exception.NotImplemented(message='User roles not supported: '
'tenant_id required')
raise exception.NotImplemented(
message=_('User roles not supported: tenant_id required'))
# This still has the weird legacy semantics that adding a role to
# a user also adds them to a tenant, so we must follow up on that