[wp-meta] [Making WordPress.org] #2517: WordPress.org locale banner shows an empty link
Making WordPress.org
noreply at wordpress.org
Sun Feb 19 16:20:24 UTC 2017
#2517: WordPress.org locale banner shows an empty link
----------------------------+-----------------
Reporter: SergeyBiryukov | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: General | Keywords:
----------------------------+-----------------
Using Opera 43 with language preference set to English:
{{{
Accept-Language: en-US,en;q=0.8
}}}
The new [https://wordpress.org/plugins-wp/ Plugin Directory] doesn't show
the locale banner, [source:sites/trunk/wordpress.org/public_html/wp-
content/plugins/plugin-directory/api/routes/class-locale-
banner.php?rev=4223&marks=203-205#L199 as expected].
The WordPress.org home page shows a weird locale banner:
> WordPress доступен и на вашем языке: [http://ru.wordpress.org/ Русский]
(также [http://tt.wordpress.org/ Tatarça], , [http://az.wordpress.org/
azərbaycan dili]).
`<div id="lang-guess">WordPress доступен и на вашем языке: <a
href="http://ru.wordpress.org/">Русский</a> (также <a
href="http://tt.wordpress.org/">Tatarça</a>, <a
href="http://sah.wordpress.org/"></a>, <a
href="http://az.wordpress.org/">azərbaycan dili</a>).</div>`
Two issues here:
* sah.wordpress.org does not have a language name and results in an empty
link.
* Not sure why the banner is displayed for that `Accept-Language` header
in the first place.
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/2517>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list