[wp-trac] [WordPress Trac] #54086: bloginfo language issue
WordPress Trac
noreply at wordpress.org
Wed Sep 8 22:17:01 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: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.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54086#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list