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

Translation for plugins in control panel #14

Closed
Djive opened this issue Oct 12, 2018 · 2 comments
Closed

Translation for plugins in control panel #14

Djive opened this issue Oct 12, 2018 · 2 comments

Comments

@Djive
Copy link

Djive commented Oct 12, 2018

Not sure if this is duplicate of this: #1

For testing purposes I translated one plugin through Enupal translate plugin.
It created the translated file but the translated plugin didnt change language in control panel.
I copied this file from plugin folder to /translations/lang-code folder.
But I still don't get anything translated when i visit the translated plugin in control panel.

How can I achieve this?

Thanks in advance for any info!

  • Craft version: 3.0.27
  • PHP version: 7.2.6
  • Database driver & version: MySQL 5.6.38
  • Plugin version: 1.1.3
@andrelopez
Copy link
Member

andrelopez commented Oct 17, 2018

Hi @Djive

Could you please share us the translation tag used in your plugin templates? Remember to use the handle of your plugin e.g

{{ 'Hello world'|t('plugin-handle') }}

@Djive
Copy link
Author

Djive commented Oct 18, 2018

Everything is working ok.
We had EN as the set language in Control Panel because our lanugage is not supported.
Thats why nothing was showing.

Thanks!

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

2 participants