• Resolved Siamwp

    (@programmerloso)


    Hi, Plugin Developer.

    I’m trying to translate some field in admin page but language tab not appear. I’m created “admin_pages” json object array with value is name of admin page to translate (I think name of admin can find in the body class) I think I’m right If there is any error, please help or advise.

    This it my code in wmp-config.json

    {
        "admin_pages": [
          "seed_confirm_log_page_seed-confirm-log-settings"
         ],
        "options": {
           "seed_confirm_notification_text": {}
        }
    }

    Thank you.

    • This topic was modified 8 years, 8 months ago by Siamwp.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Pege ID is the ID of ‘current_creen’ object.

    Thread Starter Siamwp

    (@programmerloso)

    Thank. No problem of current page ID. I’m get it by used get_current_screen(). I’m copy and paste it inside wpm-config.json same the code above. But does not work the language tab don’t show.

    I’m found this code before closing the body tag.

    View post on imgur.com

    Please help. Thank you.

    Language switcher append to ‘#wpbody-content .wrap’ as first child. Do you have div element with class ‘wrap’ in needed page?

    Thread Starter Siamwp

    (@programmerloso)

    It work. I’m missing class ‘wrap’ in my custom admin page.

    Thank you so much.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘“admin_pages” in wpm-config.json does not work. Language tab not appear.’ is closed to new replies.