mirror of
https://github.com/ansible/awx.git
synced 2026-04-12 21:49:24 -02:30
Merge pull request #10684 from rooftopcellist/compile-messages
Properly compile translated API strings SUMMARY Fixes: #10681 Now when make ui-devel is run, it will compile the API translated strings and display them to the client browser. [chadams@chadams-work awx]$ make ui-devel make[1]: Entering directory '/home/chadams/awx' python3.8 tools/scripts/compilemessages.py processing file django.po in /home/chadams/awx/awx/locale/fr/LC_MESSAGES processing file django.po in /home/chadams/awx/awx/locale/zh/LC_MESSAGES processing file django.po in /home/chadams/awx/awx/locale/en-us/LC_MESSAGES processing file django.po in /home/chadams/awx/awx/locale/ja/LC_MESSAGES processing file django.po in /home/chadams/awx/awx/locale/es/LC_MESSAGES processing file django.po in /home/chadams/awx/awx/locale/nl/LC_MESSAGES npm --prefix awx/ui_next --loglevel warn run compile-strings ... ISSUE TYPE Bugfix Pull Request Reviewed-by: Jake McDermott <yo@jakemcdermott.me> Reviewed-by: Christian Adams <rooftopcellist@gmail.com>
This commit is contained in:
@@ -217,7 +217,7 @@ class APIView(views.APIView):
|
||||
if hasattr(self, '__init_request_error__'):
|
||||
response = self.handle_exception(self.__init_request_error__)
|
||||
if response.status_code == 401:
|
||||
response.data['detail'] += ' To establish a login session, visit /api/login/.'
|
||||
response.data['detail'] += _(' To establish a login session, visit') + ' /api/login/.'
|
||||
logger.info(status_msg)
|
||||
else:
|
||||
logger.warning(status_msg)
|
||||
|
||||
@@ -6032,7 +6032,7 @@ msgstr "Les paramètres requis manquants dans {dependency}."
|
||||
msgid ""
|
||||
"Invalid group_type parameters. Expected instance of dict but got "
|
||||
"{parameters_type} instead."
|
||||
msgstr "Paramètres group_type non valides. Instance attendue de dict mais obtenue à la place."
|
||||
msgstr "Paramètres group_type non valides. Instance attendue de dict mais {parameters_type} obtenue à la place."
|
||||
|
||||
#: awx/sso/fields.py:476
|
||||
#, python-brace-format
|
||||
|
||||
Reference in New Issue
Block a user