The solution is:
1. Globally:
Open up the following files in a text editor then add below block of code to right before </head> tag:
* joomla-directory/templates/your-default-template/index.php
* joomla-directory/templates/your-default-template/component.php
- Code: Select all
<script type="text/javascript" language="javascript"><!-- // --><![CDATA[
var RecaptchaOptions = {
lang : 'es'
};
// ]]></script>
2. Locally:
In the view template file where you either placing the inclusion syntax or triggerEvent code for embedding captcha verification, put following block of code right before the inclusion syntax or triggerEvent code:
- Code: Select all
<?php
$document =& JFactory::getDocument();
$document->addScriptDeclaration("
var RecaptchaOptions = {
lang : 'es'
};
");
?>
I need to locate (line number) to put the first option and in method 2 I have no idea in what file I need to add that code.
could you help me?