0

I have created a chart using Forena Reports. I have created a menu with this chart as one of the links.

I have also installed the Language Switcher Dropdown module for choosing between 3 languages. When I choose between any of the languages, the page will get refreshed and I will be able to see the transalated version.

But this is not happening when I am in the chart page. When I choose other language page is not even getting refreshed also language is not getting changed. When I go to other pages and try the same, everything is working as expected.

enter image description here

Note: When I go to the chart page I can see this error in console:

Uncaught TypeError: $(...).dataTable is not a function

which is coming from the datatables.js file inside the forena report.

4
  • maybe setting the output type of the language switcher block to Simple HTML select will make it work again. if this not works, check also the other options, maybe the conflict dissolves ;)
    – rémy
    Commented Oct 29, 2015 at 13:36
  • there is probably a JS error/conflict. if so, can you post it ?
    – rémy
    Commented Oct 29, 2015 at 13:36
  • That is the option I have chosen. It is not working.
    – vipin p
    Commented Oct 29, 2015 at 13:44
  • well, this still uses JS ... so - is there an error in your javascript console ? have you tried the other options ?
    – rémy
    Commented Oct 29, 2015 at 13:45

1 Answer 1

1

As per the "uncaught TypeError: $(...).dataTable is not a function" you mentioned, it sounds to me that what your language problem is actually not a language problem, but some installation issue related to what's required to Enable Data Tables support. I'd recommend you to first try to resolve that error (as explained in the documentation in the mink I mentioned before, which you can also find in your own site located at /reports/help.setup#datatables.

You may also want to look at my answer to the question about "How to translate the title, axis labels and legend of a chart?" for the typical steps required to correctly translate a chart create with Forena (just to make sure such translation exist for each of your languages, and that the URL for each translation of the report is correct, and does exist).

If neither of this helps to sort out what's happening, then please further enhance your question by including your report/chart specifications (= what's called the "frx"-source in Forena). After doing so, I'd be happy to try to further enhance my answer also.

Disclosure: I'm a co-maintainer of Forena Reports.

1
  • Yes that should be possible. Have a look at my answer at drupal.stackexchange.com/questions/176901/… (the option 2 part of it). If that doesn't help, please create a new question with some more details about what exactly you want to further refine, OK? Commented Nov 2, 2015 at 6:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.