Home › Forums › ACF PRO › Field labels auto-translated › Reply To: Field labels auto-translated
Would suggest a new filter then, pseudocode:
$translate = apply_filters( 'new_filter', 'acf_default' );
switch( $translate ) {
case 'acf_notranslate':
// do not use __() at all
.. $field[ $s ] ..
break;
case 'acf_default':
// use code like now
.. __($field[ $s ]) ..
break;
default:
// use filter_value as domain
.. __($field[ $s ], $translate) ..
break;
}
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.