Home › Forums › Backend Issues (wp-admin) › Include ACF into theme and use translation › Reply To: Include ACF into theme and use translation
@elliot
I’m not sure if it’s a good solution. Look at ‘load_textdomain’ documentation: http://codex.wordpress.org/Function_Reference/load_textdomain and ‘load_plugin_textdomain’ http://codex.wordpress.org/Function_Reference/load_plugin_textdomain.
Function ‘load_plugin_textdomain’ will megre multiple lang files for the same domain, ‘load_textdomain’ will not.
In plugin ‘Options Page’, there is problem with loading transtaltions. Why? You use ‘load_plugin_textdomain’ for ‘acf’ domain, but ‘lang’ dir contains ‘acf-options-page.pot’ file. It’s name should be ‘acf.pot’. Similarly: ‘acf-options-page-pt_BR.mo’ should be ‘acf-pt_BR.mo’.
Here is Polish translation for ‘Options Page’ plugin.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.