Support » Plugin: Sensei LMS » add textdomain for menu label

  • Resolved Masoud d

    (@themefour)


    Hi,

    Please use this code for add textdomain menu label:
    includes/class-sensei-admin.php

    add_menu_page( __('Sensei LMS', 'sensei-lms' ), __('Sensei LMS', 'sensei-lms' ), $menu_cap, 'sensei', array( Sensei()->analysis, 'analysis_page' ), '', '50' );

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Donna Peplinskie

    (@donnapep)

    Can I ask why you want to translate “Sensei LMS”? It’s the product name so not sure we want to enable translating it.

    Thread Starter Masoud d

    (@themefour)

    No special work is required. Just replace this code with the previous code! Everything works fine.

    code:
    add_menu_page( __(‘Sensei LMS’, ‘sensei-lms’ ), __(‘Sensei LMS’, ‘sensei-lms’ ), $menu_cap, ‘sensei’, array( Sensei()->analysis, ‘analysis_page’ ), ”, ’50’ );

    sensei-lms/includes/class-sensei-admin.php

    • This reply was modified 1 year, 4 months ago by Masoud d.
    Plugin Support Dan (a11n)

    (@drawmyface)

    As Donna mentioned, ‘Sensei LMS’ is the name of the plugin, so there should be no need to translate it. If you can explain your reasoning for , we’ll consider it, but for now you’ll need to edit it manually in the plugin code if you need it to be translated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘add textdomain for menu label’ is closed to new replies.