mirror of
https://github.com/akuker/RASCSI.git
synced 2024-11-26 13:49:21 +00:00
return code mapper gettext extract fix (#622)
* fix for the wrong extraction of the return_code line. * second try for the wrong extraction of the return_code line.
This commit is contained in:
parent
31309a8ee3
commit
4536666544
@ -1,7 +1,7 @@
|
|||||||
"""Module for mapping between rascsi return codes and translated strings"""
|
"""Module for mapping between rascsi return codes and translated strings"""
|
||||||
|
|
||||||
from rascsi.return_codes import ReturnCodes
|
from rascsi.return_codes import ReturnCodes
|
||||||
from flask_babel import _
|
from flask_babel import _, lazy_gettext
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=too-few-public-methods
|
# pylint: disable=too-few-public-methods
|
||||||
@ -41,5 +41,5 @@ class ReturnCodeMapper:
|
|||||||
|
|
||||||
parameters = payload["parameters"]
|
parameters = payload["parameters"]
|
||||||
|
|
||||||
payload["msg"] = _(ReturnCodeMapper.MESSAGES[payload["return_code"]], **parameters)
|
payload["msg"] = lazy_gettext(ReturnCodeMapper.MESSAGES[payload["return_code"]], **parameters)
|
||||||
return payload
|
return payload
|
||||||
|
Loading…
Reference in New Issue
Block a user