Opened 7 years ago
Closed 7 years ago
#3581 closed defect (bug) (fixed)
Plugin directory homepage says that it's also available in nothing
Reported by: | danieltj | Owned by: | dd32 |
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | Plugin Directory | Keywords: | |
Cc: |
Description
On the plugin directory homepage, the green translation banner is missing the language locale so it says it's also available in (nothing). I've attached a screenshot of what I mean.
Attachments (1)
Change History (8)
#2
@
7 years ago
I'm using Chrome 65. In the request headers, it sent accept-language: en-GB,en-US;q=0.9,en;q=0.8,la;q=0.7
.
Hope that helps.
#4
@
7 years ago
- Keywords needs-patch removed
This is happening as la
is a known locale, but GlotPress doesn't understand it's a wp_locale
The correct fix is to fix GlotPress's locales.php to include the wp_locale
like most other languages. That will also allow us to set the la.wordpress.org's site language to la.
https://github.com/GlotPress/GlotPress-WP/blob/develop/locales/locales.php#L1314-L1321
The other fix is to validate that all the GP_Locale
's can be found via that wp_locale
as per [7124]
What language are you sending it in your Accept header? What languages does your browser know about?