jDiction Forum

English => Install & Configure jDiction => Topic started by: intrelis on October 10, 2013, 04:28:19 pm

Title: All translations show as the same language
Post by: intrelis 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
Title: Re: All translations show as the same language
Post by: Harald Leithner on October 10, 2013, 04:40:04 pm
what database do you use?
Title: Re: All translations show as the same language
Post by: intrelis on October 10, 2013, 04:49:48 pm
mysql
Title: Re: All translations show as the same language
Post by: Harald Leithner on October 10, 2013, 04:50:58 pm
what happens if you use mysqli as database driver?
Title: Re: All translations show as the same language
Post by: intrelis 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.
Title: Re: All translations show as the same language
Post by: Harald Leithner on October 10, 2013, 04:54:25 pm
so your host doesn't support mysqli... could you switch your host ;-) ?
Title: Re: All translations show as the same language
Post by: intrelis 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?
Title: Re: All translations show as the same language
Post by: Harald Leithner 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")
Title: Re: All translations show as the same language
Post by: intrelis 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.
Title: Re: All translations show as the same language
Post by: Harald Leithner on October 10, 2013, 05:11:21 pm
did you activated the jdiction driver after changing the file?
Title: Re: All translations show as the same language
Post by: intrelis 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. 
Title: Re: All translations show as the same language
Post by: Harald Leithner 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.
Title: Re: All translations show as the same language
Post by: intrelis 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...
Title: Re: All translations show as the same language
Post by: Harald Leithner 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.
Title: Re: All translations show as the same language
Post by: intrelis 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.
Title: Re: All translations show as the same language
Post by: Harald Leithner on October 10, 2013, 06:21:16 pm
As also please consider to write a review in JED, see Signature.
Title: Re: All translations show as the same language
Post by: intrelis on October 10, 2013, 06:31:38 pm
Already did, but it looks like the moderator is lazy and hasn't aproved it yet.

Also, if you need help that doesn't involve coding, but rather translating, testing or whatever, I have some free time, so I could help.
Title: Re: All translations show as the same language
Post by: Harald Leithner on October 10, 2013, 06:42:04 pm
Thx, I will comeback to you if I need help for translation.

Atm I didn't have a good system that could hand joomla translation strings, but I hope I find one ;-)