Skip to content
This repository has been archived by the owner on Jun 29, 2018. It is now read-only.

Necessity of a separate function #1

Closed
mundschenk-at opened this issue Aug 24, 2017 · 0 comments
Closed

Necessity of a separate function #1

mundschenk-at opened this issue Aug 24, 2017 · 0 comments

Comments

@mundschenk-at
Copy link

I've experimented a bit with Polylang and WPML for multi-lingual support in wp-Typography and it appears that just using get_locale() is fine for retrieving the locale. It would appear that at least the major plugins already properly filter this WordPress function. I'll check with Multilingual Press later tonight, but I'm pretty sure they use the filter as well.

Splitting of the language code from the locale is a simple exercise. Things become different if you want to know all valid language codes etc., but just for retrieving the locale, using the various plugin-specific functions seems to be overkill.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants