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
   
   ![Sin 
título2](https://user-images.githubusercontent.com/6887197/77690107-c926b980-6f70-11ea-8003-eab3fad23675.png)
   ![Sin 
título](https://user-images.githubusercontent.com/6887197/77690108-c9bf5000-6f70-11ea-82f7-568f22c4462a.png)
   
   #### 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
   ![Sin 
título3](https://user-images.githubusercontent.com/6887197/77690505-6550c080-6f71-11ea-93fd-5b26f4b9e5fd.png)
   

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to