PHP-GTK2 Cookbook Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Re:item does not appear in other language (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:item does not appear in other language


#5254
swool (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
item does not appear in other language 1 Year ago Karma: 0  
Hi kksou,
your plugin is cool, thank you for your nice work.

But I have a problem with joomfish, in French, the article is displayed correctly with |include_content_item fr 66| for example, but in English it does not appear at all with |include_content_item en 66| yet it is translated and published.

If I try |include_content_item fr 66| in the English version, the French article appears correctly in the English version.

you can see the French version here : www.impatriation-au-quotidien.com/index.php/fr/immigration-en-france and of course, the english version here : http://www.impatriation-au-quotidien.com/index.php/en/immigration-en-france

Items are inserted into the accordions at the bottom of page

joomla 1.5.26
joomfish 2.1.7
include_content_item plugin 1.5.11

regards,
fred

// I use | instead of { to make it appear in the forum
 
 
Last Edit: 2012/04/26 16:37 By swool.
  The administrator has disabled public write access.

#5255
kksou (Admin)
Admin
Posts: 1680
graph
User Online Now Click here to see the profile of this user
Re:item does not appear in other language 1 Year ago Karma: 27  
Hi,

Instead of |include_content_item en 66|, can you try using just |include_content_item 66|

When you specify the language, e.g. en or fr, it will force the loading of that particular language, in which case there will be no automatic loading of the page based on the displayed language.

Please give this a try and let me know your findings.

Regards,
/kksou
 
  The administrator has disabled public write access.

#5256
swool (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Re:item does not appear in other language 1 Year ago Karma: 0  
hello,
thank you for your quick response.
That's what I did at first, but did not walk like that, I tried to force the language.
Currently there are no more tags "fr" and "en" and it does not work

regards
fred
 
  The administrator has disabled public write access.
#5257
kksou (Admin)
Admin
Posts: 1680
graph
User Online Now Click here to see the profile of this user
Re:item does not appear in other language 1 Year ago Karma: 27  
Hi Fred,

Sorry, I wrote this plugin almost 4 years ago. Just went to take a look at the program. Yes, you need to specify the language - either fr or en.

So can I make sure that I understand your problem - for fr it works ok. But for en, the item does not appear, even though you have translated the article.

Do you know how to do some mysql query on your backend database?

If yes, can you run the following 2 mysql statements and let me know the output?

SELECT jf.reference_field, jf.value
FROM jos_jf_content jf
LEFT JOIN jos_languages lang ON jf.language_id = lang.id
WHERE jf.reference_id='66'
AND jf.reference_table='content'
AND (lang.shortcode='fr' OR lang.code LIKE '%fr%')

SELECT jf.reference_field, jf.value
FROM jos_jf_content jf
LEFT JOIN jos_languages lang ON jf.language_id = lang.id
WHERE jf.reference_id='66'
AND jf.reference_table='content'
AND (lang.shortcode='en' OR lang.code LIKE '%en%')

The first one test for the fr translation. You should get something for this because your fr translation is working correctly.

Let me know if you get something for the second mysql statement.

Regards,
/kksou
 
  The administrator has disabled public write access.
#5258
swool (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Re:item does not appear in other language 1 Year ago Karma: 0  
the first request return no result and the second return this: click
My default language is fr
regards
f.
 
 
Last Edit: 2012/04/26 18:49 By swool.
  The administrator has disabled public write access.
#5260
kksou (Admin)
Admin
Posts: 1680
graph
User Online Now Click here to see the profile of this user
Re:item does not appear in other language 1 Year ago Karma: 27  
Hi,

"the first request return no result" => this is ok because your default language is fr. So it will retrieve the content direct from jos_content.

The second one looks ok => there's indeed a English translation entry corresponding to article 66.

By right the English translation should appear...

Can you please double check that the English translation is published?

Regards,
/kksou
 
  The administrator has disabled public write access.
#5261
swool (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Re:item does not appear in other language 1 Year ago Karma: 0  
sorry, I was in a hurry and I uninstalled the plugin, I inserted the articles directly. I'll try later maybe.
(just for information, the English translation was published)
Best regards
fred
 
  The administrator has disabled public write access.



Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Blog - Forum - Privacy Policy - Contact Us
Links - Classes - Social Business - BPM - Web - General
Copyright © 2006-2013. kksou.com. All Rights Reserved