XFileSharing Free - Error in translation to other language

Free version of Xfilesharing

Moderator: admin

Message
Author
Zolo
Posts: 2
Joined: Sep 29, 2007 1:02 am

Error in translation to other language

#1 Postby Zolo » Sep 29, 2007 1:07 am

Thanks for this great script.
I try to translate script (Templates) to local language . but i am facing a problem in charset
i change it to my local charset but it returned back to western charst ... so characters appearing unknown characters ..

User avatar
PilgrimX182
Posts: 2182
Joined: Mar 22, 2006 1:39 pm
Location: UFO Lab
Contact:

#2 Postby PilgrimX182 » Oct 01, 2007 12:14 pm

Try to specify META tags for charset in templates. Or I can provide you quick hack for charset http headers if this won't help.

Zolo
Posts: 2
Joined: Sep 29, 2007 1:02 am

#3 Postby Zolo » Oct 01, 2007 8:37 pm

I specified meta tags for my local language in main templete . but the result was zero .characters was unreadable

i am waiting for your quick hack .please

User avatar
PilgrimX182
Posts: 2182
Joined: Mar 22, 2006 1:39 pm
Location: UFO Lab
Contact:

#4 Postby PilgrimX182 » Oct 02, 2007 6:25 am

In index.cgi find this line:

Code: Select all

print header( -type=>'text/html', -cookie=>$f->{cookies} );


and replace it with

Code: Select all

print header( -type=>'text/html', -cookie=>$f->{cookies}, -charset=>'utf-8' );


replace utf-8 with your desired charser. Should help.


Return to “XFileSharing Free”

Who is online

Users browsing this forum: No registered users and 0 guests