1

Currently I'm working on implementing the user profile form on the front end. Unfortunately the front end core translation file (wp-content/languages/lang_LANG.po) doesn't have any of the translated strings displayed on the user profile page. Those translated strings are located in wp-content/languages/admin-lang_LANG.po and since the filename starts with "admin", my best guess is that this only is loaded when visiting a wp-admin page (when is_admin() returns true).

Thus how do I load the text domain of wp-admin when you're not viewing a wp-admin page?

1 Answer 1

0

Best way around it would probably be to manually call load_textdomain() on the corresponding MO file in your theme's functions.php.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.