jDiction Forum

English => General Questions => Topic started by: Xaman on May 04, 2014, 05:26:54 am

Title: How do translated articles work?
Post by: Xaman on May 04, 2014, 05:26:54 am
Hi,

I have a Joomla 2.5 multi-language site and just installed jDiction. I've tried to test it by translating one of my latest articles, but I can't see the translation anywhere. If I switch to the translated language on the site, it still shows the article on the original language.

Anyone can give me some hints? Couldn't find any documention on this.
Title: Re: How do translated articles work?
Post by: Harald Leithner on May 04, 2014, 09:13:26 am
Please post the output of the check page. Maybe you didn't selected the database driver?
Title: Re: How do translated articles work?
Post by: Xaman on May 04, 2014, 04:19:08 pm
That was it, I figured out later when I found the "check" page. Your extension is awsome, exactly what I needed for my site, thanks so much. :D
Title: Re: How do translated articles work?
Post by: Harald Leithner on May 04, 2014, 04:26:07 pm
You may consider to write a review on JED, thx for you notification.
Title: Re: How do translated articles work?
Post by: Xaman on May 06, 2014, 01:40:04 am
Ok, found an issue. I'm using jReviews and when I try to access a jReviews category on a different language other than the main one, I get an error:

Code: [Select]
5 - cannot calculate position of Listing.featured within BY `Listing.featured` DESC, Listing.created DESC LIMIT 32
Any idea what could be the problem? I had to change the database type back to mysqli to make it work again.
Title: Re: How do translated articles work?
Post by: Harald Leithner on May 06, 2014, 10:10:17 am
Please try version 1.1.9.2 rewrite the parsing process of queries.
Title: Re: How do translated articles work?
Post by: Xaman on May 06, 2014, 01:54:23 pm
It's even worst, now it won't open any page when I change language.
Title: Re: How do translated articles work?
Post by: Xaman on May 06, 2014, 02:01:35 pm
I noticed you just releaed jDiction 1.2.0 so I installed that one. This one seems to be working! Except one thing, the listing module I have for jReviews, when I change the language it shows nothing on the module, just says "No entries were found".
Title: Re: How do translated articles work?
Post by: Harald Leithner on May 06, 2014, 02:12:20 pm
Do you have a test installation where I can make some tests?
Title: Re: How do translated articles work?
Post by: Xaman on May 06, 2014, 02:13:45 pm
I'm afraid not. At best I can PM you the link of my site, so you can see it.
Title: Re: How do translated articles work?
Post by: Harald Leithner on May 06, 2014, 02:26:11 pm
ok
Title: Re: How do translated articles work?
Post by: Xaman on July 31, 2014, 01:13:18 am
Hi,

I've updated jReviews and the problem returned. I tried the previous workaround, but it doesn't seem to be working. Hope you could assist me like last time. :/
Title: Re: How do translated articles work?
Post by: Harald Leithner on July 31, 2014, 07:48:03 am
I don't know what the problem is but please upgrade to the version in this thread  http://forum.jdiction.org/index.php/topic,598.0.html
Title: Re: How do translated articles work?
Post by: Xaman on July 31, 2014, 02:22:24 pm
It doesn't fix anything, the problem remains.
Title: Re: How do translated articles work?
Post by: Harald Leithner on July 31, 2014, 02:24:04 pm
Ok could you explain the problem, whats the error message?
Title: Re: How do translated articles work?
Post by: Xaman on July 31, 2014, 02:26:28 pm
These are the error I get. If I disable the jDiction multilanguage package plugin it goes back to normal.

15 - unknown [expr_type] = reserved in "WHERE expression subtree" [21]

unknown [expr_type] = reserved in "WHERE expression subtree" [21]
Title: Re: How do translated articles work?
Post by: Harald Leithner on July 31, 2014, 02:38:20 pm
Could you send me a PM with superuser and the url?
Title: Re: How do translated articles work?
Post by: Harald Leithner on July 31, 2014, 04:29:40 pm
please try to remove the comments in the query in file /components/com_s2framework/s2framework/libs/model/model.php at line 1124

there should be something like:
Code: [Select]
                # Removed directory from order by because it makes the query SLOW
                # Instead we run a much faster query below to re-order the output array
please remove both lines.
Title: Re: How do translated articles work?
Post by: Xaman on July 31, 2014, 04:34:55 pm
Can't seem to find those lines. I attach the file here so you can take a look.
Title: Re: How do translated articles work?
Post by: Harald Leithner on July 31, 2014, 04:36:41 pm
maybe its in /components/com_jreviews/jreviews/controllers/categories_controller.php:239
Title: Re: How do translated articles work?
Post by: Xaman on July 31, 2014, 04:39:04 pm
Can't find it there either.
Title: Re: How do translated articles work?
Post by: Harald Leithner on July 31, 2014, 04:41:18 pm
now that should be the correct file ;-) /components/com_jreviews/jreviews/models/category.php:575
Title: Re: How do translated articles work?
Post by: Xaman on July 31, 2014, 04:46:08 pm
Found it. But removing those two lines made no difference. :/
Title: Re: How do translated articles work?
Post by: Harald Leithner on July 31, 2014, 04:55:14 pm
Please post the file.
Title: Re: How do translated articles work?
Post by: Xaman on July 31, 2014, 04:57:44 pm
There you.
Title: Re: How do translated articles work?
Post by: Harald Leithner on July 31, 2014, 05:11:55 pm
Did you really removed these 2 lines because it doesn't look so.
Title: Re: How do translated articles work?
Post by: Xaman on July 31, 2014, 05:42:16 pm
Yes, but since it didn't work I put them back.
Title: Re: How do translated articles work?
Post by: Harald Leithner on July 31, 2014, 05:42:55 pm
please remove the comments.
Title: Re: How do translated articles work?
Post by: Xaman on July 31, 2014, 05:47:13 pm
Done.
Title: Re: How do translated articles work?
Post by: Harald Leithner on July 31, 2014, 06:18:51 pm
So its fixed.
Title: Re: How do translated articles work?
Post by: Xaman on July 31, 2014, 06:22:57 pm
Yes, seems to be fixed now! Thank you so much. :D
Title: Re: How do translated articles work?
Post by: Harald Leithner on July 31, 2014, 06:38:11 pm
No Problem.