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

  • Resolved Masoud d



    Please use this code for add textdomain menu label:

    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


    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


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

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


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


    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.