2015-02-01, 21:00:10
Hi Cumbe
Contact Form version 5.2.8.3.
This is an additional problem to the problems listed in my previous post of 2015-01-19 22:08:51
Setup :
I am wanting to use your Contact Form plugin in a multilanguage site, where I have a language switcher list of links on each frontend page, At the moment I have English and German, eg :
<a href="<?php echo htmlspecialchars(return_i18n_setlang_url('en')); ?>">English</a>
<a href="<?php echo htmlspecialchars(return_i18n_setlang_url('de')); ?>">Deutsch</a>
And I have all pages defined in the both languages
Problem :
In the frontend I open the website, and when I choose a different page via the website menu, the pages chosen remain in the chosen language .. for example language 1 .. this is good.
If I then choose another language - language 2 - with the language switcher, then the current page changes to language 2 .. this is also good.
But, then I choose another page with the website menu - the website shows this new page, BUT in the ORIGINAL language, here language 1 … It should remain with language 2 !
Note – I do NOT need to open the Contact Form page, to see this problem !
What I have noticed :
With define('GSDEBUG', TRUE); in gsconfig.php I get the following 2 warnings :
Notice: Undefined index: cbcontact/CONTACT in C:\xampp\htdocs\getsimple_tests\getsimple_test_contact_form\plugins\cbcontact_form.php on line 43
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at C:\xampp\htdocs\getsimple_tests\getsimple_test_contact_form\plugins\cbcontact_form.php:43) in C:\xampp\htdocs\getsimple_tests\getsimple_test_contact_form\plugins\cbcontact_form.php on line 55
My Solution :
On cbcontact_form.php, line 43 (the admin add_action() call ) :
Change array 2nd param (the Contact Form Admin side menu label text ? )
from : $i18n['cbcontact/CONTACT']
to : i18n_r('cbcontact/CONTACT')
So we have : add_action('pages-sidebar','createSideMenu',array('cbcontact_form', i18n_r('cbcontact/CONTACT') ) );
With this solution, my problem above is solved / has gone / is no more / has ceased to be / it's all good !
What do you say ?
Cheers Aldebaran
Contact Form version 5.2.8.3.
This is an additional problem to the problems listed in my previous post of 2015-01-19 22:08:51
Setup :
I am wanting to use your Contact Form plugin in a multilanguage site, where I have a language switcher list of links on each frontend page, At the moment I have English and German, eg :
<a href="<?php echo htmlspecialchars(return_i18n_setlang_url('en')); ?>">English</a>
<a href="<?php echo htmlspecialchars(return_i18n_setlang_url('de')); ?>">Deutsch</a>
And I have all pages defined in the both languages
Problem :
In the frontend I open the website, and when I choose a different page via the website menu, the pages chosen remain in the chosen language .. for example language 1 .. this is good.
If I then choose another language - language 2 - with the language switcher, then the current page changes to language 2 .. this is also good.
But, then I choose another page with the website menu - the website shows this new page, BUT in the ORIGINAL language, here language 1 … It should remain with language 2 !
Note – I do NOT need to open the Contact Form page, to see this problem !
What I have noticed :
With define('GSDEBUG', TRUE); in gsconfig.php I get the following 2 warnings :
Notice: Undefined index: cbcontact/CONTACT in C:\xampp\htdocs\getsimple_tests\getsimple_test_contact_form\plugins\cbcontact_form.php on line 43
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at C:\xampp\htdocs\getsimple_tests\getsimple_test_contact_form\plugins\cbcontact_form.php:43) in C:\xampp\htdocs\getsimple_tests\getsimple_test_contact_form\plugins\cbcontact_form.php on line 55
My Solution :
On cbcontact_form.php, line 43 (the admin add_action() call ) :
Change array 2nd param (the Contact Form Admin side menu label text ? )
from : $i18n['cbcontact/CONTACT']
to : i18n_r('cbcontact/CONTACT')
So we have : add_action('pages-sidebar','createSideMenu',array('cbcontact_form', i18n_r('cbcontact/CONTACT') ) );
With this solution, my problem above is solved / has gone / is no more / has ceased to be / it's all good !
What do you say ?
Cheers Aldebaran