I have my back-end administration set to one language and my front-end set to another language, through the use of the following code:
Locale::getInstance()->setLocale( "en" );
This is working, for the most part, but I noticed a bug, with regard to the hncaptcha. It relates to the bit of text under the verification code. It is displaying in the language of the back-end administrative (configuration page) setting.
There are two sections in the hn_captcha.class.php file, which allow for localization.
One starts with:
$usedchars = $this->use_only_md5 ? 'A..F' : 'A..Z';
$this->usedchars = $usedchars;
$this->messages = array(
And the other starts with:
private function notvalid_msg()
If you can offer a fix for this, it would be greatly appreciated. I thought about just deleting the first messages, but the second set of messages are actually error messages. So, it's not a good idea to just delete these to get it to "work" without localization conflicts. It would be better to actually fix it.
My guess is, something more needs to be added to this, to get the hncaptcha to pick up the localization on a front end page, using this code:
Locale::getInstance()->setLocale( "en" );