Viewing 3 replies - 1 through 3 (of 3 total)
  • I am having the same problem here. Did you find anything to fix that issue?

    Is there a solution for this??????

    Hi! I checked the main plugin file “buddypress-block.php” and could not find the code necessary to load the plugin textdomain (see here the Codex: https://codex.wordpress.org/Function_Reference/load_plugin_textdomain).

    The author has already prepared the text strings for translation. He even added the text domain ‘bpblock’. All that is needed is to load the function mentioned in the Codex.

    Until the author solves this, you can add yourself this line to “buddypress-block.php”, function “bpb_load_plugin”, about line 38 will do:

    load_plugin_textdomain('bpblock', FALSE, dirname(plugin_basename(__FILE__)).'/lang/');

    The directory “lang” already exists inside the plugin directory. So if you have language files ready, you can put them there. They will have to be named: “bpblock-xx_XX.po” and “bpblock-xx_XX.mo”.

    If you want to do a translation the quick way without using “Poedit”, I recommend this plugin:

    https://wordpress.org/plugins/codestyling-localization/

    It’s easy to use. You just add a new language, read the existing strings and then translate them one by one. :-).

    Hope this helps.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Problem with translation a plugin’ is closed to new replies.