[wp-meta] [Making WordPress.org] #1952: Restore locale suggestion banner on support forums
Making WordPress.org
noreply at wordpress.org
Mon Mar 16 05:51:46 UTC 2020
#1952: Restore locale suggestion banner on support forums
----------------------------+---------------------
Reporter: SergeyBiryukov | Owner: (none)
Type: defect | Status: new
Priority: normal | Milestone: Q1
Component: Support Forums | Resolution:
Keywords: needs-patch |
----------------------------+---------------------
Comment (by dd32):
In r15839-dotorg I've updated the lang-guess files to use
`$locale.wordpress.org/support/` rather than
`$locale.forums.wordpress.org` so I think the endpoint should now return
correct data for forums.
eg:
{{{
$ curl 'https://wordpress.org/lang-guess/lang-guess-
ajax.php?uri=/support/' -H 'accept-language: ru-RU'
<div id="lang-guess">Форумы поддержки WordPress доступны и на вашем языке:
<a href='https://ru.wordpress.org/support/'>Русский</a>.</div>
$ curl 'https://wordpress.org/lang-guess/lang-guess-
ajax.php?uri=/support/' -H 'accept-language: en-GB'
// No output. No en-GB forums.
}}}
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/1952#comment:9>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list