systemo13
Forum Replies Created
-
Solved!
used this code as a workaround
`$previous_url = “?ajaxCalendar=1&mo={$month_last}&yr={$year_last}&{$link_args}”;
$next_url = “?ajaxCalendar=1&mo={$month_next}&yr={$year_next}&{$link_args}”;if (ICL_LANGUAGE_CODE == ‘ru’) {
$previous_url = “?ajaxCalendar=1&mo={$month_last}&yr={$year_last}&lang=ru&{$link_args}”;
$next_url = “?ajaxCalendar=1&mo={$month_next}&yr={$year_next}&lang=ru&{$link_args}”;
} elseif (ICL_LANGUAGE_CODE == ‘en’) {
$previous_url = “?ajaxCalendar=1&mo={$month_last}&yr={$year_last}&lang=en&{$link_args}”;
$next_url = “?ajaxCalendar=1&mo={$month_next}&yr={$year_next}&lang=en&{$link_args}”;
}`"?ajaxCalendar=1&mo={$month_last}&yr={$year_last}&{$link_args}&lang=ru"actually works! So the problem would be solved if universal language parameter (instead of specific language ie “ru” would be included. What is that in wpml php code?btw, I am changing the em-calendar.php file.
Would it help if wpml language parameter could be included here:
`//Get an array of arguments that don’t include default valued args
$link_args = self::get_link_args($args);$previous_url = “?ajaxCalendar=1&mo={$month_last}&yr={$year_last}&{$link_args}”;
$next_url = “?ajaxCalendar=1&mo={$month_next}&yr={$year_next}&{$link_args}”;`So it would be something like:
"?ajaxCalendar=1&mo={$month_last}&yr={$year_last}&{$link_args}&lang=En / Ru / Et..."I didn’t. Did you try only in English? Please try in Russian: http://tinyurl.com/aha88nf For me the problem is that my default language is Estonian and when switching months in English or Russian the Estonian translation comes up.
Hi Marcus, thanks for replying and thanks for this wonderful plugin.
Did you have time to check my site http://tinyurl.com/ary9tvw and see the problem there? I have all translations and it works great just up until you press next or previous month in the mini calendar…
I don’t think this problem is my site or theme related, just tried with another one and it was the same case.
Does anybody else have this problem or only me? It seems that the widget “forgets” the language parameter as soon as you click on next or previous month and this problem should affect all multilingual sites that use this plugin…
I have http://ww.wp.xz.cn/extend/plugins/events-manager-wpml/ 0.1 installed on live site. Just installed 0.2 on my local wamp server to try it but still having the same problem.
(Event Manager version is 5.3.5)
Hi
Thanks for the reply agelonwl. The site is here: http://tinyurl.com/ary9tvw – try to change the month and you will see what I mean.
Adding main wp russian translation files to wp languages folder fixed it.