Forums

Email Alerts
Localize doesn't work (3 posts)

  1. andreu
    Member
    Posted 1 year ago #

    Hi! I've tried to translate the plugin. I've created the .mo file with PoEdit and I've uploaded it to the plugin localize directory.
    I've tried with different names without successful result. I've my WordPress configured with spanish language (es_ES) and I've tried the following names for the .mo file:

    - email-alerts-es_ES.mo
    - es_ES.mo

    No one of them works.
    I also tried to put them on the plugin main directory but It haven't worked well either.

    Do you know what I'm doing wrong or maybe the plugin have some errors?

    Thanks!

  2. andreu
    Member
    Posted 1 year ago #

    Any idea? :(

  3. EndorphinE
    Member
    Posted 1 year ago #

    I have checked the file plugin.php file and it appears that the function is not working correctly:

    $locale = get_locale ();
    if ( empty($locale) )
    $locale = 'ru_RU';

    $mofile = dirname (__FILE__)."/locale/$locale.mo";
    load_textdomain ($this->plugin_name, $mofile);

    According to the code the filesname of the *.mo file must be ru_RU but it still does not working. Unfortunately I am not good at php programming so I cannot edit the code. Contacted Simon about this issue but did not get the reply so far.

    Andreu did you find the work around?

    Thanks ;)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic