lazy-blocks icon indicating copy to clipboard operation
lazy-blocks copied to clipboard

User locale not respected in admin interface

Open apzeero opened this issue 4 years ago • 2 comments
trafficstars

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

apzeero avatar Feb 09 '21 10:02 apzeero

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 avatar Feb 11 '21 10:02 nk-o

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?

paronix avatar Aug 15 '23 11:08 paronix