What did I do wrong... language pack...

Helpdesk for my helpdesk software

Moderator: mkoch227

koninc
Posts: 16
Joined: Thu Feb 17, 2011 9:01 pm

What did I do wrong... language pack...

Post 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
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: What did I do wrong... language pack...

Post by Klemen »

All your lines in text.php end with

Code: Select all

;"
However, they should only end with

Code: Select all

;
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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
koninc
Posts: 16
Joined: Thu Feb 17, 2011 9:01 pm

Re: What did I do wrong... language pack...

Post by koninc »

Klemen wrote:All your lines in text.php end with

Code: Select all

;"
However, they should only end with

Code: Select all

;
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
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: What did I do wrong... language pack...

Post by Klemen »

You most likely have more errors in the language file, upload the modified one and I will check.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
koninc
Posts: 16
Joined: Thu Feb 17, 2011 9:01 pm

Re: What did I do wrong... language pack...

Post 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
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: What did I do wrong... language pack...

Post 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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
koninc
Posts: 16
Joined: Thu Feb 17, 2011 9:01 pm

Re: What did I do wrong... language pack...

Post by koninc »

Klemen wrote: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.
Sorry, I have changed now http://www.itkab.se/download/sv.rar

//Conny
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: What did I do wrong... language pack...

Post 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 :wink: 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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
koninc
Posts: 16
Joined: Thu Feb 17, 2011 9:01 pm

Re: What did I do wrong... language pack...

Post 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 :wink: 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
koninc
Posts: 16
Joined: Thu Feb 17, 2011 9:01 pm

Re: What did I do wrong... language pack...

Post 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
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: What did I do wrong... language pack...

Post by Klemen »

Not sure what you mean?
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
koninc
Posts: 16
Joined: Thu Feb 17, 2011 9:01 pm

Re: What did I do wrong... language pack...

Post 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)
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: What did I do wrong... language pack...

Post 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?
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
koninc
Posts: 16
Joined: Thu Feb 17, 2011 9:01 pm

Re: What did I do wrong... language pack...

Post 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...
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: What did I do wrong... language pack...

Post 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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply