• Resolved wmacmill

    (@wmacmill)


    If you translate the name “Learndash” the control panel does not appear. Not sure the root of the issue but test using the snipped below.

    function translate_text( $translated ) {
    
      // The first parameter is the original text, the second parameter is the changed text.
      $translated = str_ireplace( 'LearnDash',  'Something Else',  $translated );
    
      // Returns the translated text
      return $translated;
    
    }
    add_filter( 'gettext',  'translate_text' );
    add_filter( 'ngettext',  'translate_text' );
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author easilyamused

    (@easilyamused)

    Hi @wmacmill,

    Thanks for reporting in. How were you translating your content?
    With the function, you posted above? How about the rest of your site?

    This might be a limitation of LearnDash itself. I know they are going to be improving translation support in LD 4.0.

    Thread Starter wmacmill

    (@wmacmill)

    Hey thanks for following up. I’ve noticed this behavior (it only affects this plugin as best I can tell) with multiple ways of translating the word LearnDash. Using LocoTranslate also causes this, using the snippet above causes it as well.

    Thread Starter wmacmill

    (@wmacmill)

    If you try that snippet, then go to yoursite.com/wp-admin/admin.php?page=learndash-powerpack you’ll see none of the snippets appear. I suspect this is something to do with how the powerpack plugin is looking for something with the word LearnDash in it but haven’t dug into the code to find it

    Plugin Author easilyamused

    (@easilyamused)

    Thanks for the update. We will be debugging this week.

    Thread Starter wmacmill

    (@wmacmill)

    Awesome glad to hear!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Conflict when translating’ is closed to new replies.