jDiction Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

jDiction 2.2.0 released. http://jdiction.org/downloads

Pages: [1] 2

Author Topic: All translations show as the same language  (Read 21049 times)

intrelis

  • Newbie
  • *
  • Posts: 17
    • View Profile
All translations show as the same language
« on: October 10, 2013, 04:28:19 pm »

Be it an article, a module or a menu title, it always shows in the default site language. I have both backend and front end languages the same (ES), the content languages are set properly, the plugins and module are activated, and all articles' and modules' language is set to "all". The jdiction plugin is nÂș1 on the list as well. I am using JCK editor. Tried changing to tiny, but I couldn't save the articles, getting a "If you leave this page content will be lost" alert when pressing save.

Code: [Select]
Version
    Library Version: 0.9.9.10
    Joomla Version 2.5.14 is untested.

Plugin
    JDiction Plugin is enabled
    Languagefilter is enabled

Database
    jDiction Database Driver is not selected

Language
    Seam to be good

Module
    Module is enabled

The problem seems to be the driver, right? However, I tried to change the database in the global config and all I got was the "Can't connect to database" error. Had to change it back from config.php. I am getting cross-eyed here...  :D
« Last Edit: October 10, 2013, 04:33:40 pm by intrelis »
Logged

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1688
    • View Profile
Re: All translations show as the same language
« Reply #1 on: October 10, 2013, 04:40:04 pm »

what database do you use?
Logged
Joomla! 5.0 Release Manager
Vote at JED

intrelis

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: All translations show as the same language
« Reply #2 on: October 10, 2013, 04:49:48 pm »

mysql
Logged

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1688
    • View Profile
Re: All translations show as the same language
« Reply #3 on: October 10, 2013, 04:50:58 pm »

what happens if you use mysqli as database driver?
Logged
Joomla! 5.0 Release Manager
Vote at JED

intrelis

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: All translations show as the same language
« Reply #4 on: October 10, 2013, 04:53:20 pm »

Code: [Select]
Database connection error (2): Could not connect to MySQL.
Also tried to downgrade to .8, with same results.
Logged

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1688
    • View Profile
Re: All translations show as the same language
« Reply #5 on: October 10, 2013, 04:54:25 pm »

so your host doesn't support mysqli... could you switch your host ;-) ?
Logged
Joomla! 5.0 Release Manager
Vote at JED

intrelis

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: All translations show as the same language
« Reply #6 on: October 10, 2013, 04:55:13 pm »

I... don't think so. :D Is that the issue? The host needs to support mysqli in order for jdiction to work?
Logged

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1688
    • View Profile
Re: All translations show as the same language
« Reply #7 on: October 10, 2013, 04:58:37 pm »

yes  but only because I didn't write a mysql driver, you could try it by change the file: libraries/jdiction/database/driver/mysqli.php

change the line

Code: [Select]
require_once(JPATH_LIBRARIES.'/joomla/database/driver/mysqli.php');

class JdDatabaseAdapter extends JDatabaseDriverMySQLi   {

Code: [Select]
require_once(JPATH_LIBRARIES.'/joomla/database/driver/mysql.php');

class JdDatabaseAdapter extends JDatabaseDriverMySQL   {

(remove the "i")
Logged
Joomla! 5.0 Release Manager
Vote at JED

intrelis

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: All translations show as the same language
« Reply #8 on: October 10, 2013, 05:06:54 pm »

Code: [Select]
Database

    jDiction Database Driver is not selected

Nothing's changed, except that the english flag disappeared. The links and everything are still there, just the image is gone. >_>

Just checked and supposedly my host does support mysqli... Will call them now to ask.
Logged

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1688
    • View Profile
Re: All translations show as the same language
« Reply #9 on: October 10, 2013, 05:11:21 pm »

did you activated the jdiction driver after changing the file?
Logged
Joomla! 5.0 Release Manager
Vote at JED

intrelis

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: All translations show as the same language
« Reply #10 on: October 10, 2013, 05:13:47 pm »

I hadn't... Now I did and am getting the same "cannot connect" error.

And the english flag is still gone. 
« Last Edit: October 10, 2013, 05:15:48 pm by intrelis »
Logged

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1688
    • View Profile
Re: All translations show as the same language
« Reply #11 on: October 10, 2013, 05:15:33 pm »

thats strange, could you send me a pm with superadmin rights?

Because jdiction shouldn't do anything that could do that.
Logged
Joomla! 5.0 Release Manager
Vote at JED

intrelis

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: All translations show as the same language
« Reply #12 on: October 10, 2013, 05:26:33 pm »

Done.

Edit: Made the flag reappear by changing the image prefix from en to gb. Go figure...
« Last Edit: October 10, 2013, 05:35:42 pm by intrelis »
Logged

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1688
    • View Profile
Re: All translations show as the same language
« Reply #13 on: October 10, 2013, 05:37:48 pm »

you database setting was wrong you had a ":" after the server name.

I fixed it now it should work.
Logged
Joomla! 5.0 Release Manager
Vote at JED

intrelis

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: All translations show as the same language
« Reply #14 on: October 10, 2013, 05:42:17 pm »

Incredible, and the site still worked before that with this error?

How stupid not to see it, eh? Thank you for your time, it does appear to be working properly now. Really, thanks for the fast support.
Logged
Pages: [1] 2