This plugin load the textdomains the none standard way and is not compatible as expected:
if ($this->current_lang && $this->current_lang != $this->options['forum_lang']) {
$plugin_dir = basename(dirname(__FILE__));
$lang_dir = ABSPATH.'wp-content/plugins/forum-server/languages/';
if (file_exists($lang_dir.'vasthtml_'.$this->current_lang.'.mo')) {
load_textdomain("vasthtml", $lang_dir.'vasthtml_'.$this->current_lang.'.mo');
// global wordpress translate method with wp-config.php WPLANG
//load_textdomain("vasthtml", $lang_dir.'vasthtml_'.$this->current_lang);
} else {
die('Language (.mo) file doesn\'t exist or accessible');
}
}
Normally it should never call die if the translation file is missing, nor it should explicitly load it with gerneric version of load method.
The prefered way loading the textdomain for this plugin should be:
load_plugin_textdomain("vasthtml", PLUGINDIR.'/forum-server/languages', 'forum-server/languages');
This is strongly bound the the blogs language. If the Forum has their own lang management, there are quiet better ways to do this.
My plugin will generate a translation file (and did it at my local install) like: "vasthtml-hu_HU.po" and is able to translate and generate the appropriated *.mo file.
But the forum plugin tries to load "vasthtml_hu_HU.mo" which doesn't exist. The author of this forum plugin exchanged (mistakenly ?) the minus char with the underscore char. This leads to not loading translations did by my translation plugin.
Please inform the author of forum server to correct the issues.