mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 02:19:58 -03: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:
commit
fd99b366c2
3
Makefile
3
Makefile
@ -83,7 +83,7 @@ clean-schema:
|
||||
|
||||
clean-languages:
|
||||
rm -f $(I18N_FLAG_FILE)
|
||||
find . -type f -regex ".*\.mo$$" -delete
|
||||
find ./awx/locale/ -type f -regex ".*\.mo$" -delete
|
||||
|
||||
# Remove temporary build files, compiled Python files.
|
||||
clean: clean-ui clean-api clean-awxkit clean-dist
|
||||
@ -396,6 +396,7 @@ awx/ui_next/node_modules:
|
||||
NODE_OPTIONS=--max-old-space-size=4096 $(NPM_BIN) --prefix awx/ui_next --loglevel warn ci
|
||||
|
||||
$(UI_BUILD_FLAG_FILE):
|
||||
$(PYTHON) tools/scripts/compilemessages.py
|
||||
$(NPM_BIN) --prefix awx/ui_next --loglevel warn run compile-strings
|
||||
$(NPM_BIN) --prefix awx/ui_next --loglevel warn run build
|
||||
mkdir -p awx/public/static/css
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user