• rogeriorvaz

    (@rogeriorvaz)


    Well, I am trying to translate this plugin to Brazilian Portuguese using POEDIT, however, even after translation everything is in English. I check the code about textdomain and it’s ok. I named the generate files from POEDIT as bp_group_suggestions_ls-pt_BR and still doesn’t work.

    https://ww.wp.xz.cn/plugins/bp-groups-suggestions/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter rogeriorvaz

    (@rogeriorvaz)

    I found myself the solution, and there is a mistake in the file loader line 51.
    You have to change:
    $mofile_packaged = BP_GROUP_SUGGESTIONS_LS_DIR . “languages/bp_group_suggestions_ls-$locale.mo”;
    to
    $mofile_packaged = dirname(__FILE__) . “/languages/bp_group_suggestions_ls-$locale.mo”;

    Hi Rogeriorvaz,

    Please, can you tell me in which .php-file in the editor I must change what you’ve given?

    Thus..

    You have to change:
    $mofile_packaged = BP_GROUP_SUGGESTIONS_LS_DIR . “languages/bp_group_suggestions_ls-$locale.mo”;
    to
    $mofile_packaged = dirname(__FILE__) . “/languages/bp_group_suggestions_ls-$locale.mo”;

    Thanks already very much for your reaction 🙂

    With kind regards,
    Klaziena Waerts

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Translation’ is closed to new replies.