最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

localization - Multisite: How to get a list of installed languages

programmeradmin3浏览0评论

In a network install there is a language setting which will let the super admin user install a language from a list of available languages.

How can I get a list of the installed languages? For example, en_US, hi_IN, hu_HU, ja

In a network install there is a language setting which will let the super admin user install a language from a list of available languages.

How can I get a list of the installed languages? For example, en_US, hi_IN, hu_HU, ja

Share Improve this question asked Oct 2, 2020 at 18:06 henrywrighthenrywright 3,1076 gold badges39 silver badges65 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

That's get_available_languages():

Get all available languages based on the presence of *.mo files in a given directory.

发布评论

评论列表(0)

  1. 暂无评论