• hi all,
    i’m new to WP
    inside wp-content\plugins\subscribe-to-comments\extras
    i’ve
    subscribe-to-comments-it_IT.mo
    subscribe-to-comments-it_IT.po

    i’ve correctly set up WP to work in Italian but this plugin currently appear in English.

    should i change some variable in the plugin files to choose my languages file?

    thank you

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi,

    I don’t know if you solved your problem or not, so it is:

    “Users will need to put their translated MO file in the same directory as your plugin’s PHP file, and name it domain-ll_CC.mo, where ll_CC is the name of their locale.”

    So the .mo file must be next to the plugin’s file, not into the extras directory.

    Bye,

    KLaci

    Hi, I’ve created subscribe-to-comments-it_IT.po and .mo and put in the plugin folder (not in extras) but the translation don’t work yet…

    Make sure the paths in the .po file makes sense… they should be relative, not pointing to your hard disk.

    "X-Poedit-Basepath: .\n"

    and

    #: foo.php:71
    msgid "Hello World!"
    msgstr "Spiacente :-)"

    and in your plugin you’ll need something like:

    // load language / localization file
    add_action('init','myuniqueplugin_init');
    function myuniqueplugin_init() {
    	// time to get any translations
    	load_plugin_textdomain( 'my-plugin-textdomain', false, dirname(plugin_basename(__FILE__)) );
    }

    and of course, in your wp-config.php:

    define ('WPLANG', 'it_IT');

    Same problem for me.
    I changed the .mo file name in any known way but it is not found by wp.

    How can i fix this problem?
    I need the plugin to be traslated.

    Thanks

    @franganghi – if the plugin doesn’t have the necessary code to load the translation (correctly written), or more importantly it doesn’t have its output strings encased in the __() and _e() functions, then a translation file will not help. If you’re the plugin author, then you should be able to correct those issues. If you’re not the author, you may want to contact the author about enabling the plugin for translation.

    You have to name it like this:
    subscribe-to-comments-pl_PL.mo

    where pl_PL is your language letters set in wordpress. Put it in lugins directory. Not in this plugin directory BUT all plugins directory.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin Subscribe to Comments] cannot change the language it-IT’ is closed to new replies.