[wp-trac] [WordPress Trac] #54086: bloginfo language issue
WordPress Trac
noreply at wordpress.org
Thu Sep 9 08:29:31 UTC 2021
#54086: bloginfo language issue
-------------------------------------------+------------------------------
Reporter: kukac7 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Networks and Sites | Version: 3.0
Severity: normal | Resolution:
Keywords: reporter-feedback needs-patch | Focuses: multisite
-------------------------------------------+------------------------------
Comment (by kukac7):
Replying to [comment:3 kukac7]:
> Replying to [comment:1 spacedmonkey]:
> > Hello @kukac7, welcome to track.
> >
> > language can be tricky to workout. determine_locale and get_locale are
complex functions.
> >
> > If you are looking for the site language, have you tried calling echo
get_option( 'WPLANG' ); instead of echo get_bloginfo( 'language' ). This
might work better in this context.
>
> hi,
>
> i have tried this now, but my problem is that in the general settings i
have saved the language on the selected site, but with the network site
settings the WPLANG field is empty on the selected site.
> interesting.
> and if i write in the WPLANG field, save, but it remains blank again.
very strange.
by default hu_HU is the language of the network.
if i set it to en_EN on one site, WPLANG is empty.
however, de_DE, the ru_RU language, works.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54086#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list