Change language for reCaptcha

Creating and modifying plugins.
Post Reply
Barberousse
Regular
Posts: 26
Joined: Sun Dec 30, 2007 8:07 pm

Change language for reCaptcha

Post by Barberousse »

Hello,

For those who are interested, you can change the reCaptcha plugin language by changing line 281 of serendipity/plugins/serendipity_event_recaptcha/serendipity_event_recaptcha.php from

Code: Select all

						echo "\n<script>\n var RecaptchaOptions = { theme : '".$theme."'};\n</script>";
to

Code: Select all

						if (isset($serendipity['lang'])) {
							echo "\n<script>\n var RecaptchaOptions = { theme : '".$theme."' , lang : '".$serendipity['lang']."'};\n</script>";
						}
						else {
							echo "\n<script>\n var RecaptchaOptions = { theme : '".$theme."'};\n</script>";
						}
Barberousse.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Change language for reCaptcha

Post by garvinhicking »

Hi!

Thanks for telling, I committed your patch to the plugin.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply