• Resolved Adam Martin

    (@disadamsdsdnts)


    Hi, team!

    I’m trying to translate this plugin into Spanish and encountered an issue. There’s a specific line that cannot be translated either with plugins or through translate.www.ads-software.com:

    In “wp-content/plugins/connect-learndash-and-discord/admin/class-learndash-discord-admin.php”, specifically line 697 esc_html__( sprintf( 'Connected account: %s', $_ets_learndash_discord_username ), 'connect-learndash-and-discord' ).

    The same text appears in line 717 of the same file and in line 240 of “wp-content/plugins/connect-learndash-and-discord/public/class-learndash-discord-public.php”. None of these instances can be translated.

    It seems that it cannot be detected as translatable text. Notably, this text is the only instance where esc_html__ is used with sprintf in the plugin.

    Could you please look into this? I might be mistaken, but it would be greatly appreciated if this text could be made translatable.

    Thank you in advance.

Viewing 1 replies (of 1 total)
  • Plugin Contributor Younes

    (@vanbom)

    Hi Adam,
    can you pleese try :

    sprintf( esc_html__( ‘Connected account: %s’, ‘connect-learndash-and-discord’ ), $_ets_learndash_discord_username )

    insted of :

    esc_html__( sprintf( ‘Connected account: %s’, $_ets_learndash_discord_username ), ‘connect-learndash-and-discord’ )

    confirm if it works to update the plugin.

Viewing 1 replies (of 1 total)
  • The topic ‘“Connected account: ” line cannot be translated’ is closed to new replies.