You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2020/03/26 20:02:31 UTC
[GitHub] [incubator-superset] oashton opened a new issue #9398: Translation
function "gettext as __" is not working
oashton opened a new issue #9398: Translation function "gettext as __" is not working
URL: https://github.com/apache/incubator-superset/issues/9398
The function __( is not translating.
For example the string "SQL Editor"
### Expected results
I expect the function __() applied to a string, translate the string
### Actual results
The app keeps showing the english translation
#### Screenshots


#### How to reproduce the bug
1. Change the language to spanish
2. The submenú "SQL Editor" is not translated to "Editor SQL"
### Environment
- superset version: `Superset 0.999.0dev`
- python version: `3.6.8`
- node.js version: `12.10.0`
- npm version: `6.14.2`
### Checklist
Make sure these boxes are checked before submitting your issue - thank you!
- [X] I have checked the superset logs for python stacktraces and included it here as text if there are any.
- [X] I have reproduced the issue with at least the latest released version of superset.
- [X] I have checked the issue tracker for the same issue and I haven't found one similar.
### Additional comments
If I change from __() to _() the label "SQL Editor", it works

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
[GitHub] [incubator-superset] oashton commented on issue #9398: Translation
function "gettext as __" is not working
Posted by GitBox <gi...@apache.org>.
oashton commented on issue #9398: Translation function "gettext as __" is not working
URL: https://github.com/apache/incubator-superset/issues/9398#issuecomment-611034699
> maybe you have no `meaages.mo `,try this command `pybabel compile -d <the superset installed path>\translations\`
Yes, I did that also: `pybabel compile -f -d superset/translations -l es`. I forgot to put it in the bug description
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
[GitHub] [incubator-superset] venter-zhu edited a comment on issue #9398:
Translation function "gettext as __" is not working
Posted by GitBox <gi...@apache.org>.
venter-zhu edited a comment on issue #9398: Translation function "gettext as __" is not working
URL: https://github.com/apache/incubator-superset/issues/9398#issuecomment-610777149
maybe you have no `meaages.mo `,try this command `pybabel compile -d <the superset installed path>\translations\`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
[GitHub] [incubator-superset] venter-zhu commented on issue #9398:
Translation function "gettext as __" is not working
Posted by GitBox <gi...@apache.org>.
venter-zhu commented on issue #9398: Translation function "gettext as __" is not working
URL: https://github.com/apache/incubator-superset/issues/9398#issuecomment-610777149
maybe you have no `meaages.mo `,try this command `pybabel compile -d <the superset install path>\translations\`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
[GitHub] [incubator-superset] stale[bot] commented on issue #9398: Translation function "gettext as __" is not working
Posted by GitBox <gi...@apache.org>.
stale[bot] commented on issue #9398:
URL: https://github.com/apache/incubator-superset/issues/9398#issuecomment-640261298
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue `.pinned` to prevent stale bot from closing the issue.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
[GitHub] [incubator-superset] stale[bot] closed issue #9398: Translation function "gettext as __" is not working
Posted by GitBox <gi...@apache.org>.
stale[bot] closed issue #9398:
URL: https://github.com/apache/incubator-superset/issues/9398
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org