Translate-plugin: AJAX error

Created on 18 May 2015  路  5Comments  路  Source: rainlab/translate-plugin

Hi,

I have an error with the localePicker. When I choose a language, I get the following error;
AJAX handler 'onSwitchLocale' was not found.
ajax error

According to this thread, is a October related issue. But I just want to be sure, how can I resolve it?

Please note that mysite.com/{langcode}/ works.

Thanks

Most helpful comment

Include the [localePicker] component in your layout/page.

<!-- /themes/your-theme/layouts/name-of-your-layout.htm -->
description = [...]
[localePicker]
==

If you include links having a data-request="onSwitchLocale" attribute on a partial, you still need to include this component in { the layout of the page | the page itself } where the partial is rendered.

All 5 comments

Include the [localePicker] component in your layout/page.

<!-- /themes/your-theme/layouts/name-of-your-layout.htm -->
description = [...]
[localePicker]
==

If you include links having a data-request="onSwitchLocale" attribute on a partial, you still need to include this component in { the layout of the page | the page itself } where the partial is rendered.

Thanks, but a bit late :smile:

Thanks. Not late for me :-)

Nice one! Thank you

Thank you :D

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tobias-kuendig picture tobias-kuendig  路  7Comments

Ladylain picture Ladylain  路  3Comments

plyusninva picture plyusninva  路  6Comments

ghost picture ghost  路  5Comments

sophie-vdv picture sophie-vdv  路  4Comments