Home › Forums › ACF PRO › Best way to translate field labels › Reply To: Best way to translate field labels
Hi, sorry to bump this slightly old thread but I thought it better than creating a new one.
I am currently trying to solve the same problem that @lmartins had. I have taken your advice, and exported the fields to PHP then modified so that the label values are wrapped in the translate function __(). I then created a .mo file and included this into my theme. The translation is working if I call the label directly from my theme, but not in ACF either in admin or frontend using acf_form().
I’ve tried a few things such as bundling ACF into the theme, changing the order of includes, etc but no success. What is confusing is that some of the labels are being translated by, I guess, the core. So perhaps this is related to this issue: http://support.advancedcustomfields.com/forums/topic/acf-automatically-translate-some-field-name/
Any help/hints would be greatly appreciated. Thanks.
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.