Page 1 of 2
What did I do wrong... language pack...
Posted: Sun Feb 20, 2011 9:00 pm
by koninc
Version of script: 2.2
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:
Write your message below:
Hi All,
I did add Norwigen lanuagepack and it worked fine... then I translated everything to Swedish and I did dubblechecked everything, all was exacly as EN & No... so I installed it and the Hesk installation did die... only get http 500... and what should I do?
http://www.itkab.se/download/sv.rar
Best regards
Conny
Re: What did I do wrong... language pack...
Posted: Mon Feb 21, 2011 1:35 pm
by Klemen
All your lines in text.php end with
However, they should only end with
So, delete " from the end of all lines, then upload text.php to your server and open text.php in your browser - it should tell you either that "No syntax errors detected" which is OK or give you the number of the line where another error is located.
Re: What did I do wrong... language pack...
Posted: Mon Feb 21, 2011 2:23 pm
by koninc
Klemen wrote:All your lines in text.php end with
However, they should only end with
So, delete " from the end of all lines, then upload text.php to your server and open text.php in your browser - it should tell you either that "No syntax errors detected" which is OK or give you the number of the line where another error is located.
I have changed like you said... had missed it, but I still got HTTP 500 internal server error... and this appeard after I installed additional language...
http://www.itkab.se/support
Re: What did I do wrong... language pack...
Posted: Mon Feb 21, 2011 4:12 pm
by Klemen
You most likely have more errors in the language file, upload the modified one and I will check.
Re: What did I do wrong... language pack...
Posted: Mon Feb 21, 2011 6:07 pm
by koninc
Klemen wrote:You most likely have more errors in the language file, upload the modified one and I will check.
Hi are the file...
http://www.itkab.se/download/sv.rar
But can it not be other thing becouse, it dosen“t work with any language
//Conny
Re: What did I do wrong... language pack...
Posted: Mon Feb 21, 2011 8:56 pm
by Klemen
English works fine, so it is the text.php file:
http://www.itkab.se/support/?language=English
The one you posted is still the old one, upload the new one where you removed " from the end of lines.
Re: What did I do wrong... language pack...
Posted: Tue Feb 22, 2011 11:33 am
by koninc
Re: What did I do wrong... language pack...
Posted: Tue Feb 22, 2011 5:27 pm
by Klemen
You still had a lot of syntax error in the text file. I fixed those for you now and hope you will share the final translation with others

Download the fixed text.php file here:
http://www.phpjunkyard.com/extras/text_sv.zip
You need to be very careful when translating/modifying any PHP files because PHP is very strict when it comes to syntax errors and just a small error (like a missing quote, semi-colon, one quote too much etc) will break the script.
Re: What did I do wrong... language pack...
Posted: Tue Feb 22, 2011 6:34 pm
by koninc
Klemen wrote:You still had a lot of syntax error in the text file. I fixed those for you now and hope you will share the final translation with others

Download the fixed text.php file here:
http://www.phpjunkyard.com/extras/text_sv.zip
You need to be very careful when translating/modifying any PHP files because PHP is very strict when it comes to syntax errors and just a small error (like a missing quote, semi-colon, one quote too much etc) will break the script.
Hi, ofcourse will I share it... thanks for the help.... I did think I locked every where thanks a lot
Re: What did I do wrong... language pack...
Posted: Tue Feb 22, 2011 7:12 pm
by koninc
I must ask... almost everything working... if I choose Swedish should not admin view be displayed? its working with english and norwigian...
//Conny
Re: What did I do wrong... language pack...
Posted: Tue Feb 22, 2011 7:37 pm
by Klemen
Not sure what you mean?
Re: What did I do wrong... language pack...
Posted: Tue Feb 22, 2011 7:44 pm
by koninc
Klemen wrote:Not sure what you mean?
I mean when I have change langage to swedish and click on the link administrator panel and type username and password... will it only be a blank side (with side)
Re: What did I do wrong... language pack...
Posted: Wed Feb 23, 2011 3:59 pm
by Klemen
But when you login in some other language it works fine?
If yes, login to admin panel in English then try turning "Debug mode" to ON, save settings, logout, open Hesk in Swedish and try logging in - do you get any error messages now?
Re: What did I do wrong... language pack...
Posted: Wed Feb 23, 2011 6:42 pm
by koninc
Klemen wrote:But when you login in some other language it works fine?
If yes, login to admin panel in English then try turning "Debug mode" to ON, save settings, logout, open Hesk in Swedish and try logging in - do you get any error messages now?
Hi, It will not appear any error message on screen...
Re: What did I do wrong... language pack...
Posted: Fri Feb 25, 2011 3:43 pm
by Klemen
Can you show me your latest language file? My guess is an error there (maybe you have empty space before <?php or after ?> in the text.php file?) is causing headers not being redirected properly.