Author Topic: How to change recaptcha language ?  (Read 5052 times)

0 Members and 1 Guest are viewing this topic.

Offline kuato

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
How to change recaptcha language ?
« on: September 23, 2009, 08:11:35 AM »
 ??? I need to change recaptcha language to spanish, how can i do that ? , thanks in advance for your time.  ;D

Offline BDD

  • Global Moderator
  • Full Member
  • *****
  • Posts: 146
  • Karma: +0/-0
    • View Profile
Re: How to change recaptcha language ?
« Reply #1 on: September 23, 2009, 03:08:03 PM »
Hello,

You can change the reCAPTCHA language to Spanish by:

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]
<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]
<?php
$document 
=& JFactory::getDocument();
$document->addScriptDeclaration("
var RecaptchaOptions = {
   lang : 'es'
};
"
);
?>


For reference, please visit following links from recaptcha.net website:

« Last Edit: September 23, 2009, 03:12:42 PM by BDD »

Offline kuato

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: How to change recaptcha language ?
« Reply #2 on: September 23, 2009, 07:31:36 PM »
Thanks, working great  ;). Another question, is there any experience adding recaptcha plugin to adsmanager ?

Offline BDD

  • Global Moderator
  • Full Member
  • *****
  • Posts: 146
  • Karma: +0/-0
    • View Profile
Re: How to change recaptcha language ?
« Reply #3 on: September 24, 2009, 02:18:13 AM »
Please see this topic for a sample integration.

Offline kuato

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: How to change recaptcha language ?
« Reply #4 on: September 24, 2009, 06:55:06 AM »
I understand how to integrate it but it is not working with adsmanager submit form, even if i write the words wrong the ad will be published. I tried this on the file adsmanager.html.php :
Code: [Select]
<?php global $mainframe$mainframe->triggerEvent('onCaptchaDisplay');
                
$document =& JFactory::getDocument();
                
$document->addScriptDeclaration("
                var RecaptchaOptions = {
                lang : 'es'
                     };
"
);
?>
<input type="submit" value="<?php echo ADSMANAGER_FORM_SUBMIT_TEXT?>" />
But no success  ???

Offline BDD

  • Global Moderator
  • Full Member
  • *****
  • Posts: 146
  • Karma: +0/-0
    • View Profile
Re: How to change recaptcha language ?
« Reply #5 on: September 25, 2009, 03:07:30 PM »
Please  post the URL to get that extension here. I will  try to figure out where the problem  is for you when possible.

Offline kuato

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: How to change recaptcha language ?
« Reply #6 on: September 25, 2009, 03:35:18 PM »
This is the download url http://joomlacode.org/gf/project/adsmanager/frs/ , thanks for your time and work.

Offline BDD

  • Global Moderator
  • Full Member
  • *****
  • Posts: 146
  • Karma: +0/-0
    • View Profile
Re: How to change recaptcha language ?
« Reply #7 on: September 28, 2009, 02:43:27 AM »
I have just downloaded the adsmanager component and right at installation step, i see the problem with it.

Adsmanager is not a native Joomla 1.5 component. It is developed for Joomla 1.0 and requires legacy mode enabled to be able to work Joomla 1.5. That's why our Joomla reCAPTCHA Integrator plugin does not work with it.

You should consider an alternative Joomla 1.5 native component ads management.

Offline kuato

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: How to change recaptcha language ?
« Reply #8 on: September 28, 2009, 07:16:54 AM »
I will need to wait for the 1.5 native version because this is the best ads component out there hehe.  ;D

Offline thekvs

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: How to change recaptcha language ?
« Reply #9 on: March 18, 2010, 01:57:02 PM »
Im trying to configure portuguese - Brazil in recaptcha version 1.0.2 themed plugin.

Tryed method 1 and still in english
and in method 2 I have no idea in what file I need to add that code

could you help me?

by the way is there a brazilian portuguese version or portuguese portugal only?

 

This is not an official Joomla! Site. The use of the words Joomla is intended to describe what the products are designed for and should not be considered an endorsement by the related Projects.