Typo fix in oslo.i18n

TrivialFix

Change-Id: Ie578d3527cb06abe31f63f20ef46676dbd96d333
This commit is contained in:
howardlee 2016-11-01 16:39:42 +08:00
parent 7f8f771172
commit fec1b27651
1 changed files with 2 additions and 2 deletions

View File

@ -149,13 +149,13 @@ For example, **do not do this**::
# WRONG
LOG.exception(_('There was an error.'))
raise LocalExceptionClass(_('An error occured.'))
raise LocalExceptionClass(_('An error occurred.'))
Instead, use this style::
# RIGHT
LOG.exception(_LE('There was an error.'))
raise LocalExceptionClass(_('An error occured.'))
raise LocalExceptionClass(_('An error occurred.'))
Adding Variables to Translated Messages