Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7630005
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T05:59:11+00:00 2026-05-31T05:59:11+00:00

I am trying to add language/translation support for my WordPress plugin using POEdit software

  • 0

I am trying to add language/translation support for my WordPress plugin using POEdit software to create .po files, but the code isn’t working and there are no screen error printing out.

My plugin is located in /plugins/site-status/ and the languages directory is located as /plugins/site-status/languages/. In /languages/ directory all .po files have names such as site-status-en_US.po (the unique identifier is called site-status)
Here is the language support code:

function    status_language_init() {
          load_plugin_textdomain( 'site-status', false, 'site-status/languages/' ); 
        }
        add_action('init', 'status_language_init');

Here is the test code for outputing the default/translated text:

echo _x( 'test', 'site-status' );

I very much look forward for your help!

Thanks in advance and with best wishes,
WHOAMi

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T05:59:13+00:00Added an answer on May 31, 2026 at 5:59 am

    To debug this, check the return value of load_plugin_textdomain(). And don’t rely on a directory name of your plugin. The user can change it.

    $path        = basename( dirname( __FILE__ ) ) . '/languages';
    $lang_loaded = load_plugin_textdomain( 'site-status', FALSE, $path );
    // die harder!
    ! $lang_loaded and die( $path . ' not found' );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to add Arabic RTL language support for my site which implemented using
I'm trying to add multi-language support to an OpenSocial application. I see that I
Im trying to add a Jquery validation script to a form plugin for wordpress.
I'm creating some new files and am trying to add them but when I
I'm trying add a tab to my web page that looks like this: Using
Im trying to add a directory foo to my repo, but there are some
I am trying to add support for different languages to existing MVC 3 application.
I am trying to add require and include as Ruby keywords for Notepad++, but
I'm trying to fetch some webpages using the code below: public static string FetchPage(string
I'm trying to figure out how to get mixed-language support working in Visual Studio

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.