{"id":1254442,"date":"2017-03-15T07:09:39","date_gmt":"2017-03-15T14:09:39","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/month-view-navigation-prevnext-doesnt-stick-to-language-wpml\/"},"modified":"2017-03-16T05:19:39","modified_gmt":"2017-03-16T12:19:39","slug":"month-view-navigation-prevnext-doesnt-stick-to-language-wpml","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/month-view-navigation-prevnext-doesnt-stick-to-language-wpml\/","title":{"rendered":"Month View Navigation (prev\/next) doesn&#8217;t stick to language (WPML)"},"content":{"rendered":"<p>This issue appears for <strong>Events Calendar<\/strong> Plugin Month View (AJAX Navigation) and <strong>Events Calendar Pro<\/strong> Month Mini Widget (AJAX Navigation).<\/p>\n<p>Hi,<\/p>\n<p>when having a setup with multiple languages WPML, any of the month previous and next navigation will always go back to the main language (e.g. English) when navigating to another month. To reproduce, please to the following:<\/p>\n<ol>\n<li>Set up a fresh WP install<\/li>\n<li>Install Events Calendar, and WPML<\/li>\n<li>Set up 2 languages in WPML and configure WPML as described in the docs<\/li>\n<li>Create events in multiple months and translate them as described in the docs<\/li>\n<li>Switch to language 2 and go to the month view<\/li>\n<li>Use the month view prev\/next navigation and once you clicked, you will see that the month view did switch to language 1 after the AJAX load.<\/li>\n<\/ol>\n<p>The weird thing is, that the whole page stays in the language 2, but only the month view content is loaded as language 1 (because of the AJAX load).<\/p>\n<p>My assumption is that &#8220;wp-content\/plugins\/the-events-calendar\/src\/resources\/js\/tribe-events-ajax-calendar.min.js&#8221; has a bug.<\/p>\n<p>How can this be fixed.<\/p>\n<p>Please note that this is an <strong>absolute show stopper<\/strong>. I can&#8217;t run a productive site with that!<\/p>\n","protected":false},"template":"","class_list":["post-1254442","topic","type-topic","status-closed","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Month View Navigation (prev\/next) doesn&#039;t stick to language (WPML) -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/month-view-navigation-prevnext-doesnt-stick-to-language-wpml\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Month View Navigation (prev\/next) doesn&#039;t stick to language (WPML) -\" \/>\n<meta property=\"og:description\" content=\"This issue appears for Events Calendar Plugin Month View (AJAX Navigation) and Events Calendar Pro Month Mini Widget (AJAX Navigation). Hi, when having a setup with multiple languages WPML, any of the month previous and next navigation will always go back to the main language (e.g. English) when navigating to another month. To reproduce, please [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/month-view-navigation-prevnext-doesnt-stick-to-language-wpml\/\" \/>\n<meta property=\"article:modified_time\" content=\"2017-03-16T12:19:39+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/month-view-navigation-prevnext-doesnt-stick-to-language-wpml\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/month-view-navigation-prevnext-doesnt-stick-to-language-wpml\/\",\"name\":\"Month View Navigation (prev\/next) doesn't stick to language (WPML) -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2017-03-15T14:09:39+00:00\",\"dateModified\":\"2017-03-16T12:19:39+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/month-view-navigation-prevnext-doesnt-stick-to-language-wpml\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/month-view-navigation-prevnext-doesnt-stick-to-language-wpml\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/month-view-navigation-prevnext-doesnt-stick-to-language-wpml\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/theeventscalendar.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\/\/theeventscalendar.com\/support\/topics\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Calendar Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Events Calendar PRO\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Month View Navigation (prev\/next) doesn&#8217;t stick to language (WPML)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\",\"url\":\"https:\/\/theeventscalendar.com\/support\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Month View Navigation (prev\/next) doesn't stick to language (WPML) -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/month-view-navigation-prevnext-doesnt-stick-to-language-wpml\/","og_locale":"en_US","og_type":"article","og_title":"Month View Navigation (prev\/next) doesn't stick to language (WPML) -","og_description":"This issue appears for Events Calendar Plugin Month View (AJAX Navigation) and Events Calendar Pro Month Mini Widget (AJAX Navigation). Hi, when having a setup with multiple languages WPML, any of the month previous and next navigation will always go back to the main language (e.g. English) when navigating to another month. To reproduce, please [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/month-view-navigation-prevnext-doesnt-stick-to-language-wpml\/","article_modified_time":"2017-03-16T12:19:39+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/month-view-navigation-prevnext-doesnt-stick-to-language-wpml\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/month-view-navigation-prevnext-doesnt-stick-to-language-wpml\/","name":"Month View Navigation (prev\/next) doesn't stick to language (WPML) -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2017-03-15T14:09:39+00:00","dateModified":"2017-03-16T12:19:39+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/month-view-navigation-prevnext-doesnt-stick-to-language-wpml\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/month-view-navigation-prevnext-doesnt-stick-to-language-wpml\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/month-view-navigation-prevnext-doesnt-stick-to-language-wpml\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/theeventscalendar.com\/support\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"https:\/\/theeventscalendar.com\/support\/topics\/"},{"@type":"ListItem","position":3,"name":"Calendar Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/"},{"@type":"ListItem","position":4,"name":"Events Calendar PRO","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/"},{"@type":"ListItem","position":5,"name":"Month View Navigation (prev\/next) doesn&#8217;t stick to language (WPML)"}]},{"@type":"WebSite","@id":"https:\/\/theeventscalendar.com\/support\/#website","url":"https:\/\/theeventscalendar.com\/support\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1254442","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1254442\/revisions"}],"predecessor-version":[{"id":1254995,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1254442\/revisions\/1254995"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1254442"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}