Fix wrong capitalization

These two strings are wrongly capitalized, a first word in a string
should be capitalized.

Noticed during translation of strings.

Change-Id: I68b786b9b386d6e6dd94b1dea8b5f76e37d985fd
This commit is contained in:
Andreas Jaeger 2016-02-03 08:10:36 +01:00
parent 3776fb656d
commit 3d0a8b1e0a
2 changed files with 3 additions and 3 deletions

View File

@ -187,13 +187,13 @@ def _event_query_to_event_filter(q):
if not i.op:
i.op = 'eq'
elif i.op not in base.operation_kind:
error = (_('operator %(operator)s is not supported. the supported'
error = (_('Operator %(operator)s is not supported. The supported'
' operators are: %(supported)s') %
{'operator': i.op, 'supported': base.operation_kind})
raise base.ClientSideError(error)
if i.field in evt_model_filter:
if i.op != 'eq':
error = (_('operator %(operator)s is not supported. Only'
error = (_('Operator %(operator)s is not supported. Only'
' equality operator is available for field'
' %(field)s') %
{'operator': i.op, 'field': i.field})

View File

@ -217,7 +217,7 @@ class TestEventAPI(EventTestBase):
'op': 'whats-up'}],
expect_errors=True)
self.assertEqual(400, resp.status_code)
self.assertEqual("operator whats-up is not supported. the "
self.assertEqual("Operator whats-up is not supported. The "
"supported operators are: (\'lt\', \'le\', "
"\'eq\', \'ne\', \'ge\', \'gt\')",
resp.json['error_message']['faultstring'])