Support

Account

Home Forums Bug Reports l10n – duplicate nested code in export php

Solved

l10n – duplicate nested code in export php

  • Hi,
    it seems to be an issue when generating translatable code using the php export tool.

    The attached screenshot show well the issue.

    All translatable strings results in a double nested translation, as following:

    __(__('My Options Page', 'custom-theme'), 'custom-theme')

    As explained here I’m using a custom filter for the l10n_textdomain acf setting as following:

    function acf_export_textdomain( $textdomain ) {
    	return 'custom-theme';
    }
    add_filter('acf/settings/l10n_textdomain', 'acf_export_textdomain', 10, 1);

    I’ve tried even with:
    add_filter('acf/settings/export_textdomain', 'acf_export_textdomain', 10, 1);

    I’m using latest version of wordpress (both single and network mode) and ACF 5.3.3.2

  • I can confirm that I have the same issue. Using the latest version of both wp and acf. Hoping for a quick fix, thx.

  • Hi @virgodesign

    It seems OK on 5.3.3.1. Could you please contact support@advancedcustomfields.com about this issue?

    Thanks!

  • Hi James,

    Version 5.3.3.1 is not in the downloads list of my acf account page.
    I can download version 5.3.2 as previous version of 5.3.3.2.

    Version 5.3.3 works correctly.

  • Hi guys

    Sorry about this silly bug.

    Good news, I’ve found and fixed the issue.
    I’ve re-compiled the version and uploaded to the ACF site.

    Can you please re-download the plugin and test the new files.

    The only file that has changed is:
    ‘admin/settings-tools.php’​​​​​​​​

  • Yes, it works.
    Thanks for the quick support!

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

You must be logged in to reply to this topic.