Making WordPress.org

Opened 4 years ago

Last modified 5 months ago

#1156 new enhancement

ISO Language Code Tag to Improve API

Reported by: A2BCool Owned by:
Milestone: Priority: normal
Component: WordPress.tv Keywords:


While working on the WPTV plugin, I noticed that there is no tie in between the language preference set by the user and the available language tag in the WordPress.tv post_meta.

To better synchronize language preferences in WP with how WordPress.tv stores languages of videos a language_code tag would benefit the API.

ISO 639-3 codes would be preferable; however, using the cultural codes that are used within WP core would be simplest. example cultural code: en_us, where the first two characters(en) represent the language and the second two represent the country(us).

Change History (3)

#1 @samuelsidler
4 years ago

That's not exactly what's used in WordPress core. :) We probably want to mirror what's used on translate.wordpress.org, though.

#2 @obenland
7 months ago

I'm not sure I understand what's being asked here. Is the goal to show show sessions in the visitor's language before showing English sessions?

#3 @casiepa
5 months ago

Hi @A2BCool,

Could you please clarify this request? What API do you refer to and what exactly would you expect to happen with the language code?


Note: See TracTickets for help on using tickets.