adexa Posted January 20, 2010 Share Posted January 20, 2010 Hi allsince 3 days , im trying to install prestashop 1.2.5.0i have one problem like this ;im installing prestashop, without fault , everything okwhen i add new language Turkce (Turkish) , country code : tr , flag and nophoto and importing language packsuntil here all ok but the problem is;when i click to Turkish flag from front office : index.php?id_lang=3page is empty , cannot opening page in turkish = HTTP 500please does anyone have any idea???????[removed] function Related(){ userURL=document.location.href; //for the href, we need a valid URL to the domain. We search for the # symbol to find the begining //of the true URL, and add 1 to skip it - this is the BeginURL value. We use serverIndex as the end marker. BeginURL=userURL.indexOf("#",1) + 1; CurrentURL=userURL.substring(BeginURL,DocURL.length); //Build the query RelatedServiceURL="http://related.msn.com/related.asp?url="; //Perform simple check for Intranet URLs //this is where the http or https will be, as found by searching for :// but skip res: protocolIndex=userURL.indexOf("://",4); serverIndex=userURL.indexOf("/",protocolIndex + 3); urlresult=userURL.substring(0,serverIndex); if (protocolIndex - BeginURL > 7) urlresult="" //Check if Intranet URL - then open search bar if (urlresult.indexOf(".",0) < 1) userURL="Intranet URL"; finalURL = RelatedServiceURL + encodeURIComponent(userURL); window.open(finalURL, "_search");}function Homepage(){// in real bits, urls get returned to our script like this:// res://shdocvw.dll/http_404.htm#http://www.DocURL.com/bar.htm //For testing use //DocURL = "res://shdocvw.dll/http_404.htm#https://www.microsoft.com/bar.htm" DocURL=document.location.href; //this is where the http or https will be, as found by searching for :// but skipping the res:// protocolIndex=DocURL.indexOf("://", 4); //this finds the ending slash for the domain server serverIndex=DocURL.indexOf("/", protocolIndex + 3); //for the href, we need a valid URL to the domain. We search for the # symbol to find the begining //of the true URL, and add 1 to skip it - this is the BeginURL value. We use serverIndex as the end marker. //urlresult=DocURL.substring(protocolIndex - 4,serverIndex); BeginURL=DocURL.indexOf("#",1) + 1; urlresult=DocURL.substring(BeginURL, serverIndex); if (protocolIndex - BeginURL > 7) urlresult="" //for display, we need to skip after http://, and go to the next slash displayresult=DocURL.substring(protocolIndex + 3, serverIndex); var aElement = document.createElement("A"); aElement.innerText = displayresult; aElement.href = urlresult; homepageContainer.appendChild(aElement);}function doSearch(){ saOC.NavigateToDefaultSearch();}function initPage() { document.body.insertAdjacentHTML("afterBegin","<object id=saOC CLASSID='clsid:B45FF030-4447-11D2-85DE-00C04FA35C89' HEIGHT=0 width=0></object>"); Homepage();}[removed] Link to comment Share on other sites More sharing options...
adexa Posted January 20, 2010 Author Share Posted January 20, 2010 pleasenoone knows why? Link to comment Share on other sites More sharing options...
agwebc Posted January 21, 2010 Share Posted January 21, 2010 Hi,I have exactly the same problem.Please, help !Thanks Link to comment Share on other sites More sharing options...
El_Emin Posted January 24, 2010 Share Posted January 24, 2010 Make that three guys, im having the same problem Link to comment Share on other sites More sharing options...
adexa Posted April 7, 2010 Author Share Posted April 7, 2010 Hi all , when you add new language and click to flag ,, if your shop losing and giving http 500 error or empty pageopen your init.php filedelete 81. line from itsetlocale(LC_CTYPE, strtolower($ps_language->iso_code).’_’.strtoupper($ps_language->iso_code).’.UTF-8’);then it will be solvedthanks Link to comment Share on other sites More sharing options...
rocky Posted April 10, 2010 Share Posted April 10, 2010 Topic moved since the translations forum is only for contributing to language packs Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now