Support

Account

Home Forums Backend Issues (wp-admin) Some label or options not translatable

Solving

Some label or options not translatable

  • Hello
    i can translate acf options and custom fields with below Code :

    function custom_acf_settings_localization($localization){
      return true;
    }
    add_filter('acf/settings/l10n', 'custom_acf_settings_localization');
    
    function custom_acf_settings_textdomain($domain){
      return 'kanishop-theme';
    }
    add_filter('acf/settings/l10n_textdomain', 'custom_acf_settings_textdomain');

    but i have a little problem :
    Some label not translatable in PHP exported file .

    for example in 500 strings and words just about 20 strings or words not working .

    a good string is :
    ‘label’ => __(‘Enable Image’, ‘kanishop-theme’),

    and a bad string is :
    ‘label’ => ‘Enable Maintenance Mode’,

    i cant understand what this happen ?

    please help me because i have to translate bad labels manualy and this take a time every day

    thanks

  • Do you mean that when you export the field group that ACF is not adding the __() to some of the strings in the output?

  • Yes, exactly .
    This Happen When I Export ACF Options In PHP file format .

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Some label or options not translatable’ is closed to new replies.