Please make sure to update to WPML 4.3.4 before reporting any issue

Hi, Amit here, I am the WPML Support Manager, our current ticket queue is high, update your WPML plugins and make sure you meet the minimal requirements for running WPML before reporting an issue please - many tickets are resolved doing that

Please look at our updated list of Known Issues and you can also use our support search to find helpful information and of course review our documentation before opening a ticket.

If you do need to open a ticket please make sure to provide us with all the needed information as described in this page

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 11 replies, has 2 voices.

Last updated by Mustafa 6 years, 11 months ago.

Assigned support staff: Harshad.

Author Posts
December 22, 2012 at 9:34 pm #92828

Mustafa

Hi folks,

I'm newbie wpml user. I want to use wpml for create multilingual signup page for my network. How can I do this? Is there any documentation?

Thanks.

December 23, 2012 at 6:52 am #92841

Harshad

Dear Mustafa,

Are you using any plugin to create Signup page?

December 23, 2012 at 9:40 am #92859

Mustafa

Nope, I'm using default wordpress signup page. (wp-signup.php)

December 23, 2012 at 9:59 am #92862

Harshad

Dear Mustafa,

If you have wordpress translations available, you can pass lang parameter.

For ex.
For french registration page you can pass &lang=fr parameter.
hidden link

December 23, 2012 at 10:22 am #92870

Mustafa

Hi Harshad,

I'm talking about multisite so, it should be /wp-signup.php?lang=en and this is working. But when I submit form, this language parameters cleared.

So, it's loading default language. Is there any solution to fix this? ex: en/wp-signup.php ?

Thanks.

December 23, 2012 at 11:46 am #92874

Harshad

Dear Mustafa,

I will have to check with our development team for multisite, If we can add a filter/hook.
It works for single installation, you can check the link below
http://wpml.org/forums/topic/registration-page-link-does-not-work/#post-78484

December 23, 2012 at 12:04 pm #92876

Mustafa

It would be handy.

Thanks.

December 24, 2012 at 7:45 am #92937

Harshad

Dear Mustafa,

Can you please give a try adding following code to your theme's functions.php file

<?php
add_action('wp_print_scripts', 'signup_page_localization');
function signup_page_localization(){
	
	if(isset($_GET['lang'])){
		$lang = $_GET['lang'];	
	}else{
		$lang = 'en';
	}
	
?>
<script type="text/javascript">
        // <![CDATA[
		$('input[name="submit"]').click(function(){
		  var lang = <?php echo $lang;?>;
		  if($lang == 'en'){
 		  	$('#setupform').attr('action', 'wp-signup.php');
		  }else{
		  	$('#setupform').attr('action', 'wp-signup.php?lang='+lang);
		  }
});
// ]]>
<?php
}
?>

Let me know if it works.

December 24, 2012 at 8:52 pm #93014

Mustafa

Hi Harshad,

I tried but not working.

December 25, 2012 at 5:55 am #93020

Harshad

Can you please paste your sites link here, so I can check it?

December 26, 2012 at 6:20 am #93073

Harshad

Dear Mustafa,

Please use the revised code below in your theme's functions.php file.

//first make sure you have jQuery on that page
add_action('wp_enqueue_scripts','add_jquery');
function add_jquery(){
    if (!is_admin())
        wp_enqueue_script( 'jquery' );
}

//then just change the url to suffix language code
add_action('wp_head','change_signup_form');
function change_signup_form(){
if(isset($_GET['lang'])){
$lang = $_GET['lang'];	
}else{
$lang = 'en';
}
if($lang == 'en'){
echo '<script> jQuery(document).ready(function($) { $("#setupform").attr("action", "wp-signup.php"); });</script>';
}elseif($lang=='es'){
echo '<script> jQuery(document).ready(function($) { $("#setupform").attr("action", "wp-signup.php?lang=es"); });</script>';
}
}
December 26, 2012 at 9:45 pm #93191

Mustafa

Hi Harshad,

Yeah, this is working pretty good. But guess I always must send to lang parameter?

Thank you so much.