I wonder if these problems are not related to files that have been improperly transferred during updates because everything worked perfectly there are still about 1 week ????
Here are the problems with multilingual translations .
1- All titles and descriptions of the categories are translated with custom fields ( englishname , englishdescription , dutchname , dutchdescription , germanname , germandescription , spanishname , spanishdescription )
I recall that the basic scripting language is French.
I'm on the home page in French ( http://www.milouchouchou.com/articles/ ) and I click on the English language , categories and descriptions are displayed well in English.
The problem : If I click on the title " Breeds of dogs ", this link send to the " breeds-of-dogs " category ( http://www.milouchouchou.com/articles/breeds-of-dogs/ ) and obviously with the message " No such happy exists . The link you are Following Seems to Have Been incorrect "
Normally, this link should refer to " Les races de chiens " ( www.milouchouchou.com/artic...icles/les-races-de-chiens/ ) , it should go to the database, take the titles and descriptions in English and display in that language, the same for other languages.
Then if you click on a breed of dog, show this breed the requested language, but I do not know if this is because the list does not appear.
If I click on the English language , this race is always displayed in French and with misinterpreted HTML codes ( [ fullfont style = "margin -left: 50 "] Crâne plat ou en ogive trop prononcée [/ fullfont ] . ) same for other languages.
Again, this should go to the database, take the titles and descriptions in English and display in that language, the same for other languages.
Same here, it should go to the database, take the titles and descriptions in English and display in that language, the same for other languages.
4 - Finally, the category " Les formulaires de contact " is not translated into any other language in the display, yet it is translated when I make a change in this category.
5 - Even if I put my browser in English, the site still appears in French.
I know that's a lot, but I would like the site works perfectly in 5 languages.
Noticed that somehow your admin language template was out of date without being marked as customized. I reverted it to the default. The language editor changed a lot recently so having the old template would've caused problems when editing language.
I'll respond to the 5 items as soon as I get a chance to look into them better. For #5 did you clear all the site's cookies (the guest language preference is stored in a cookie)?
The submission history on the details page is taking several seconds too -- you might want to remove the toplist of the submitters other listings and just have a search link there.
It startsto take shape. I have this errorwhenI want to accessthe list ofraces:
Fatal error: Maximumexecution timeof30 secondsexceededin /home/milouch1/public_html/articles/includes/commonfuncs.phpon line6315 or
Fatal error: Maximum execution time of 30 seconds exceeded in /home/milouch1/public_html/articles/classes/wsncode.php on line 135
Where do youwant to replacehistory ( Iassume you meantheswitche"memberstatusarea") by an internalsearch? I like to keepacurrent presentation ofarticles or I need toredo the entirelayoutof my pages.
The big problem I'm seeing now is that the URL de-translations are killing performance, {LINKDETAILSURL} is taking half a second to parse each time instead of less than a hundredth of a second like before. I'm trying to find a way to make the URLs work without killing performance.
I see the WSN code parsing that fixed #3 is the biggest culprit.
Congratulationsfor the work,it begins towork very well.
Icommented outthe code andtheitemappearsin less than asecond. The translationof the categories isalsoresolved. The linksleadtogoodbasic categoryin the chosen language.
Too badthe display of thelist of items(only12 items per page) is stilla lot of time,about 7 seconds, but I'm sure yougoto find a wayto optimizeit.
As for #5, I cleared all cookies and went to http://milouchouchou.com/articles/ in Firefox. It shows me the page in English, even though French is the default language, so that's working. To get any idea of why it may not work for you, I need to know what your browser reports in its HTTP_ACCEPT_LANGUAGE header. Run this PHP code at Admin -> Misc -> Advanced -> run php and tell me what the output is:
<?php die("Language is ".$_SERVER['HTTP_ACCEPT_LANGUAGE']." and from that we decided to use ".findbestlanguage()); ?>
Language isfr,en-q= 0.8, withq=0.5,en-us;q= 0.3andfromAbebooks webDecidedtousefrench
Whenmy browseris in English:
Language isen-usbyq= 0.8,en;q = 0.5,en-q= 0.3andfromAbebooks webDecidedtouseEnglish But in this case, mysite stillappearsinFrench.
For the rest,a bigthank youfor thisgood work, I gavea list of40racesper page andthe result is impressive: 28totalqueries Thispagewascreated in1.88seconds Memory used:18310560(peak19,641,984) bytes
Comments on Multilingual display
Forum Regular
Usergroup: Customer
Joined: Nov 05, 2006
Location: Borlo Belgique
Total Topics: 27
Total Comments: 121
Posted Sep 29, 2013 - 2:10 AM:
Hello Paul
I wonder if these problems are not related to files that have been improperly transferred during updates because everything worked perfectly there are still about 1 week ????
Here are the problems with multilingual translations .
1- All titles and descriptions of the categories are translated with custom fields ( englishname , englishdescription , dutchname , dutchdescription , germanname , germandescription , spanishname , spanishdescription )
I recall that the basic scripting language is French.
I'm on the home page in French ( http://www.milouchouchou.com/articles/ ) and I click on the English language , categories and descriptions are displayed well in English.
The problem : If I click on the title " Breeds of dogs ", this link send to the " breeds-of-dogs " category ( http://www.milouchouchou.com/articles/breeds-of-dogs/ ) and obviously with the message " No such happy exists . The link you are Following Seems to Have Been incorrect "
Normally, this link should refer to " Les races de chiens " ( www.milouchouchou.com/artic...icles/les-races-de-chiens/ ) , it should go to the database, take the titles and descriptions in English and display in that language, the same for other languages.
Then if you click on a breed of dog, show this breed the requested language, but I do not know if this is because the list does not appear.
2 - For the second problem , I'll be on the list of breeds in French ( www.milouchouchou.com/artic...icles/les-races-de-chiens/ ) , I click on the race " Ariégeois " and this race appears perfectly in french .
If I click on the English language , this race is always displayed in French and with misinterpreted HTML codes ( [ fullfont style = "margin -left: 50 "] Crâne plat ou en ogive trop prononcée [/ fullfont ] . ) same for other languages.
Again, this should go to the database, take the titles and descriptions in English and display in that language, the same for other languages.
3 - For the third problem , I'll be on the list of breeds in French ( www.milouchouchou.com/artic...icles/les-races-de-chiens/ ) , I click on English and the list appears perfectly English.
If I click " Ariege hound ", the link sends to " www.milouchouchou.com/artic...ariegeois-1426-thread.html ) and the race is still displayed with the French and same codes HTML misinterpreted.
Same here, it should go to the database, take the titles and descriptions in English and display in that language, the same for other languages.
4 - Finally, the category " Les formulaires de contact " is not translated into any other language in the display, yet it is translated when I make a change in this category.
5 - Even if I put my browser in English, the site still appears in French.
I know that's a lot, but I would like the site works perfectly in 5 languages.
Cordially.
Francis
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Noticed that somehow your admin language template was out of date without being marked as customized. I reverted it to the default. The language editor changed a lot recently so having the old template would've caused problems when editing language.
I'll respond to the 5 items as soon as I get a chance to look into them better. For #5 did you clear all the site's cookies (the guest language preference is stored in a cookie)?
Forum Regular
Usergroup: Customer
Joined: Nov 05, 2006
Location: Borlo Belgique
Total Topics: 27
Total Comments: 121
Yes, I deleted all cookies, I also emptied the cache, without success.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
1. Fixed to always use the base language url.
2&3. Applied WSN codes to the translated versions.
Notced the next/previous article code was slowing your details page by several seconds so I removed it, you can reinsert if you really want it:
<p align="center">
<IF {PREVIOUSEXISTS}><a href="{PREVIOUSURL}">{LANG_DETAILS_PREVIOUS}</a></IF>
<IF {PREVIOUSEXISTS} and {NEXTEXISTS}> | </IF>
<IF {NEXTEXISTS}><a href="{NEXTURL}">{LANG_DETAILS_NEXT}</a></IF>
</p>
The submission history on the details page is taking several seconds too -- you might want to remove the toplist of the submitters other listings and just have a search link there.
Will try to get to 4 and 5 tomorrow.
Forum Regular
Usergroup: Customer
Joined: Nov 05, 2006
Location: Borlo Belgique
Total Topics: 27
Total Comments: 121
Thank you Paul
It starts to take shape.
I have this error when I want to access the list of races:
Fatal error: Maximum execution time of 30 seconds exceeded in / home/milouch1/public_html/articles/includes/commonfuncs.php on line 6315
or
Fatal error: Maximum execution time of 30 seconds exceeded in /home/milouch1/public_html/articles/classes/wsncode.php on line 135
Where do you want to replace history ( I assume you mean the switche "member status area") by an internal search? I like to keep a current presentation of articles or I need to redo the entire layout of my pages.
Cordially.
Francis
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
This is the slow toplist I meant:
The search link is already there below it. No need to remove the entire member status area, just that toplist.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
The big problem I'm seeing now is that the URL de-translations are killing performance, {LINKDETAILSURL} is taking half a second to parse each time instead of less than a hundredth of a second like before. I'm trying to find a way to make the URLs work without killing performance.
I see the WSN code parsing that fixed #3 is the biggest culprit.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Okay, rewrote all the multilingual URL generation to be more efficient and the site at least loads now. Will look for more speed bottlenecks tomorrow.
#4 seems to have been solved in the course of the rest.
Forum Regular
Usergroup: Customer
Joined: Nov 05, 2006
Location: Borlo Belgique
Total Topics: 27
Total Comments: 121
Hello Paul
Congratulations for the work, it begins to work very well.
I commented out the code and the item appears in less than a second.
The translation of the categories is also resolved.
The links lead to good basic category in the chosen language.
Too bad the display of the list of items (only 12 items per page) is still a lot of time, about 7 seconds, but I'm sure you go to find a way to optimize it.
# 5 is resolved?
Very good day.
Cordially.
Francis
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
I've got www.milouchouchou.com/artic...icles/les-races-de-chiens/ down to around 1 second now, so you can increase the number shown per page if you want.
Haven't gotten to #5 yet, that'll be next.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
As for #5, I cleared all cookies and went to http://milouchouchou.com/articles/ in Firefox. It shows me the page in English, even though French is the default language, so that's working. To get any idea of why it may not work for you, I need to know what your browser reports in its HTTP_ACCEPT_LANGUAGE header. Run this PHP code at Admin -> Misc -> Advanced -> run php and tell me what the output is:
Forum Regular
Usergroup: Customer
Joined: Nov 05, 2006
Location: Borlo Belgique
Total Topics: 27
Total Comments: 121
Hello Paul
When my browser is in French:
Language is fr, en-q = 0.8, with q = 0.5, en-us; q = 0.3 and from Abebooks web Decided to use french
When my browser is in English:
Language is en-us by q = 0.8, en; q = 0.5, en-q = 0.3 and from Abebooks web Decided to use English
But in this case, my site still appears in French.
For the rest, a big thank you for this good work, I gave a list of 40 races per page and the result is impressive:
28 total queries
This page was created in 1.88 seconds
Memory used: 18310560 (peak 19,641,984) bytes
Good day.
Cordially.
Francis
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
If findbestlanguage() picked English but you see French, the only explanation I can see is a cookie.
Forum Regular
Usergroup: Customer
Joined: Nov 05, 2006
Location: Borlo Belgique
Total Topics: 27
Total Comments: 121
The cookies have been deleted and emptied caches.
Looking at my stats, it seems that visitors arrive at the site in the language of the browser, it is essential for them.
I tested with Opera, I arrive at the site in English if I chose this language in the browser settings.
Maybe a bad configuration of my Firefox.
Again thank you for your work, I really appreciate your service to your scripts.
Cordially.
Francis