Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add correct localization handling #158

Closed
goanpeca opened this issue Nov 24, 2019 · 3 comments
Closed

Add correct localization handling #158

goanpeca opened this issue Nov 24, 2019 · 3 comments
Assignees
Milestone

Comments

@goanpeca
Copy link
Member

goanpeca commented Nov 24, 2019

To be able to correctly localize external plugins we need to use get_translation method and provide the module name like:

from spyder.config.base import get_translation

_ = get_translation('spyder_terminal')

@ccordoba12 maybe we should add a module on the spyder api like or similar

from spyder.api.i18n import get_translation  # Maybe think of a better name :-p for this func
@ccordoba12
Copy link
Member

Sounds good to me.

@ccordoba12
Copy link
Member

Is this already solved?

@goanpeca
Copy link
Member Author

Yep

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants