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

Translate login page to default lang #1361

Closed
antonlukin opened this issue Mar 1, 2018 · 2 comments
Closed

Translate login page to default lang #1361

antonlukin opened this issue Mar 1, 2018 · 2 comments
Labels

Comments

@antonlukin
Copy link
Contributor

antonlukin commented Mar 1, 2018

Can't translate login page to default language.

My system.yaml

languages:
  translations: true
  supported:
    - ru

and site.yaml

default_lang: ru

but my login page still english translated. It seems that this code prevents translating:

$languages = [$grav['user']->authenticated ? $grav['user']->language : 'en'];

@antonlukin
Copy link
Contributor Author

antonlukin commented Mar 1, 2018

I found the solution with replacing login template in my theme. Related docs page.

But I still can't translate error messages

@rhukster
Copy link
Member

rhukster commented Mar 1, 2018

Hmm.. default lang should work.. I'll take a look.

@rhukster rhukster added the bug label Mar 1, 2018
rhukster added a commit that referenced this issue Mar 1, 2018
@rhukster rhukster closed this as completed Mar 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants