Typo fix in oslo.i18n
TrivialFix Change-Id: Ie578d3527cb06abe31f63f20ef46676dbd96d333
This commit is contained in:
parent
7f8f771172
commit
fec1b27651
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue