Hi medinlu,
As there are many different plugins for multilingual wp, I haven’t coded this plugin for any particular one. Instead, I have left action/filter hooks to allow site developers to customise this plugin’s output to their content. In your case, I believe you need there to be an extra hidden input field specifying the current language (not the way I would’ve done it, but I guess it’s fair enough for WPML to choose this fashion). It seems WPML currently does this through a sort of reverse action hook, i.e., they are hooking a function into an action and the site developer determines when the action should occur.
I’m not 100% certain, but I think you need to use this code in your theme’s functions.php (or other suitable location):
add_action('bop_nav_search_hidden_inputs', function( $item, $depth, $args ){
do_action( 'wpml_add_language_form_field' );
//or
//echo '<input type="hidden" name="lang" value="YOUR_DESIRED_LANG_CODE"/>';
}, 10, 3 );
Hope this helps.
Cheers,
Joe