Please do. Thank you!
Sorry, I thought you were related to ACF in more internal way.
What is the best way to suggest this being included in the plugins export then?
Thank you John! This solved my problem indeed.
I suggest adding this into the export code the plugin produces.
Regards,
Oliver
Hi,
It doesn’t really matter if you are using esc_html__() or __() in this case.
I’ve created a new theme from TwentyFifteen for you (the only things I’ve changed is the theme folder name, theme name in stylesheet and I’ve added the code at the end of the functions.php file – have a look). Download the theme from https://www.dropbox.com/s/te6m2u43u3wk7sq/twentyfifteen_acf.zip?dl=0
How to test:
Hope this will help you to trace the issue (could it be in the hook priority you are using in the plugin maybe?).
Regards,
Oliver
Hi,
Believe me, I have A LOT of experience setting WordPress translation as I am not English native speaker myself.
The issue seems to be related to how your plugin processes the array as I have never had similar issue before.
I will set a file for you to try with TwentyFifteen. (I think I’ve explained the issue well, anyway).
I will also give you better link for WP translations: http://www.cssigniter.com/ignite/wordpress-poedit-translation-secrets/
Regards,
Oliver
Hi,
I’m actually using load_theme_textdomain() in the theme.
I’ve tried to copy the code into TwentyFifteen’s functions.php file and adapted the text domain and translated the POT file (created PO and MO files). The TwentyFifteen also uses load_theme_textdomain().
Can you try yourself please?
Regards,
Oliver
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.