• HI,

    Im trying to apply the translation to Spanish of your plugin (I did translate the .mo file, if you want it i can send it on to you). But now i cant seem to be able to make it to be seen on the front end or the backend.

    I guess this is the function (in the public/class-idea-factory.php folder) that does the job:

    public function load_plugin_textdomain() {

    $domain = $this->plugin_slug;
    $locale = apply_filters( ‘plugin_locale’, get_locale(), $domain );

    $out = load_textdomain( $domain, trailingslashit( IDEA_FACTORY_DIR ). ‘languages/’ . $domain . ‘-‘ . $locale . ‘.mo’ );
    }

    and I echoed the $domain $locale $ and $out and those variables seems to be working properly, but still now showing my mo file which i renamed as idea-factory-es_ES.mo

    Can you please help me?? I need your plugin, it is so good, and it serves very well for my idea on my wedding website.

    Thanks
    Kind regards

    https://www.ads-software.com/plugins/idea-factory/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter andresmolina

    (@andresmolina)

    Well… i feel so silly, forget it man… your plugin works just fine, it is me that im just an idiot… the .mo file was the wrong one… In any case, if you want the spanish translation of your plugin let me know and i will forward on to you the mo and po files.

    Thanks

    Kind regards

    Thread Starter andresmolina

    (@andresmolina)

    By the way, it would be good if bellwo each idea, you can say 3 Votes, and then underline put the total amount of votes, so something like this:

    3 Votes
    from 150 Votes

    Plugin Author Nick Haskins

    (@nphaskins)

    Sorry for the delayed response, did you get things figured out?

    Thread Starter andresmolina

    (@andresmolina)

    Hi Nicholas,

    No worries, i have finally manage to put it up in Spanish, and there was nothing wrong with your code or theme, it was me, being a dumb, and uploading the wrong .mo file. But now everything seems perfect.

    I would suggest to improve the plugin, to put a checkbox on the backoffice to be able to show the total amount of votes over an idea, so you can see for example 3 positive votes out of a total amount of 10. That way you can see that there is been 7 positive votes and 4 negatives which leads you a total of 3 positive votes…. understand????

    thanks
    Kind regards

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Translation’ is closed to new replies.