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


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

  • 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 Could you please contact [email protected] about this issue?


  • Hi James,

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

    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:

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

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

The topic ‘l10n – duplicate nested code in export php’ is closed to new replies.