WordPress.org

Ready to get started?Download WordPress

Forums

Trouble translating plugin (1 post)

  1. wesg
    Member
    Posted 5 years ago #

    I'm a little unsure about how to translate my WP plugins, as the codex isn't as clear as it could be.

    Let me explain what I have so far. My plugin's PHP file has this bunch of code inside the main administration panel function

    if (function_exists('load_plugin_textdomain')) {
    			load_plugin_textdomain('plugin_name', PLUGINDIR.'/'.dirname(plugin_basename(__FILE__)), dirname(plugin_basename(__FILE__)));
    		}

    I think I can figure out the .POT, .PO and .MO files myself, but I need to make sure that my plugin is actually asking for a new language. What am I missing?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.