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

User locale not respected in admin interface #187

Open
apzeero opened this issue Feb 9, 2021 · 2 comments
Open

User locale not respected in admin interface #187

apzeero opened this issue Feb 9, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@apzeero
Copy link

apzeero commented Feb 9, 2021

Issue description:

Language is set to site default language and ignores whatever locale is set on the user's profile.

Lazy Blocks Version:

Lazy Blocks 2.3.0

WordPress Version:

WordPress 5.6.1

Any helpful information to reproduce the issue (screenshots, code parts)

Example use case: the site is administered by several English speakers, but site's main language is Swedish. Even if the users switch their locale to English, Lazy Block UI is still in the main site's language.

image
image

@nk-o
Copy link
Collaborator

nk-o commented Feb 11, 2021

This is all managed by WordPress's core, we just add a pot file for translation.

p.s. Looks like not all translation strings contain the text-domain. But as I understand, even if the translation string presented properly, the translation still doesn't work.

For example, this string should be available for translation (https://plugins.trac.wordpress.org/browser/lazy-blocks/trunk/languages/lazy-blocks.pot):

But I don't see it here translate.wordpress.org/projects/wp-plugins/lazy-blocks

@nk-o nk-o added the bug Something isn't working label Feb 11, 2021
@paronix
Copy link

paronix commented Aug 15, 2023

This issue is quite old but I am experiencing the same problem. The language of the site is set to Dutch and the logged in user has it's language set to English. Everything in the WordPress admin is in english, except for a few menu items of Lazy Blocks.

image

Why would WordPress use the site language specifically for the Lazy Blocks menu items but not for other WordPress menu items?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants