From 835ff221f180db07f2a876c310893ba55369c7e7 Mon Sep 17 00:00:00 2001 From: Brant Knudson Date: Mon, 23 Mar 2015 20:47:02 -0500 Subject: [PATCH] Mark some strings for translation A couple of strings in keystone.assignment.controllers weren't marked for translation. Change-Id: I7a3dd0e61558d69a78d22329788aa92a4da49885 --- keystone/assignment/controllers.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/keystone/assignment/controllers.py b/keystone/assignment/controllers.py index ff27fd3696..fcbb8a8c7c 100644 --- a/keystone/assignment/controllers.py +++ b/keystone/assignment/controllers.py @@ -152,8 +152,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) @@ -171,8 +171,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