Thai Language Pack(UTF-8) - ชุดไฟล์ภาษาไทย(UTF-8) (DFH v1.1)

All language packs for DFH v1.1 go in here...

Thai Language Pack(UTF-8) - ชุดไฟล์ภาษาไทย(UTF-8) (DFH v1.1)

Postby jaideejung007 » Sat Jun 04, 2011 4:44 pm

Now, the language pack has been added to the Daddy's File Host v1.1. You need to modify some files.
(ขณะนี้ ชุดไฟล์ภาษาไทย ได้เพิ่มเข้าไปยังสคริปต์ Daddy's File Host v1.1 คุณสามารถแก้ไขไฟล์บางไฟล์ได้ดังด้านล่างนี้ เพื่อให้ใช้งานได้สมบูรณ์)

Important!!!
This mod below files, is support to UTF-8 encoding only!
(ขั้นตอนการโมไฟล์นี้ จะเป็นการเข้ารหัสแบบ UTF-8 เท่านั้น)

SS
(ภาพตัวอย่าง)
Image

How to?
(จะทำอย่างไร?)
Upload thai-utf8.php file, to DFH_ROOT/lang/ directory. And config the files following:
(อัพโหลดไฟล์ thai-utf8.php ไปยังโฟลเดอร์ DFH_ROOT/lang/ และทำการแก้ไขค่าดังด้านล่างนี้:)

Modify DFH_ROOT/config.php
(แก้ไขไฟล์ DFH_ROOT/config.php)
Find sourcecode:
(ค้นหาโค๊ด:)
Code: Select all
$LANGUAGE_LIST = Array(
"english",
"german",
"italian"
);
//// list of accectable languages

Replace to:
(เปลี่ยนเป็น:)
Code: Select all
$LANGUAGE_LIST = Array(
"english",
"german",
"italian",
"thai-utf8"
);
//// list of accectable languages


Modify DFH_ROOT/settings.php
(แก้ไขไฟล์ DFH_ROOT/settings.php)
Find sourcecode:
(ค้นหาโค๊ด:)
Code: Select all
    <td bgcolor=#F2F2F2>&nbsp;English:<input<?php if($content[15] == "english"){echo(" checked=\"checked\"");} ?> type="radio" name="setting15" value="english" />
   <br />German:<input<?php if($content[15] == "german"){echo(" checked=\"checked\"");} ?> type="radio" name="setting15" value="german" />
   <br />Italian:<input<?php if($content[15] == "italian"){echo(" checked=\"checked\"");} ?> type="radio" name="setting15" value="italian" />

Replace to:
(เปลี่ยนเป็น:)
Code: Select all
    <td bgcolor=#F2F2F2>&nbsp;English:<input<?php if($content[15] == "english"){echo(" checked=\"checked\"");} ?> type="radio" name="setting15" value="english" />
   <br />German:<input<?php if($content[15] == "german"){echo(" checked=\"checked\"");} ?> type="radio" name="setting15" value="german" />
   <br />Italian:<input<?php if($content[15] == "italian"){echo(" checked=\"checked\"");} ?> type="radio" name="setting15" value="italian" />
   <br />Thai:<input<?php if($content[15] == "thai-utf8"){echo(" checked=\"checked\"");} ?> type="radio" name="setting15" value="thai-utf8" />


Modify DFH_ROOT/styles/Indigo/header.php
(แก้ไขไฟล์เทมเพลท DFH_ROOT/styles/Indigo/header.php)
Find sourcecode:
(ค้นหาโค๊ด:)
Code: Select all
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>

Replace to:
(เปลี่ยนเป็น:)
Code: Select all
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>


Modify these tree files, Daddy's File Host v1.1 will support Thai.
(การแก้ไขไฟล์ทั้ง 3 ไฟล์นี้, คุณจะสามารถใช้งาน Daddy's File Host v1.1 ได้อย่างเต็มประสิทธิภาพ)

Jaideejung007
Thai Translator
(ทีมแปลภาษาไทย)
You do not have the required permissions to view the files attached to this post.
Last edited by jaideejung007 on Sat Jun 04, 2011 5:21 pm, edited 2 times in total.
jaideejung007
Translator
 
Posts: 7
Joined: Mon Apr 11, 2011 5:35 pm

Re: Thai Language Pack

Postby SamEA » Sat Jun 04, 2011 4:49 pm

jaideejung007 wrote:Now, the language pack has been added to the Daddy's File Host v1.1. You need to modify some files.

How to?
Upload thai-utf8.php file, to DFH_ROOT/lang/ directory. And config the files following:

Modify DFH_ROOT/config.php
Code: Select all
$LANGUAGE_LIST = Array(
"english",
"german",
"italian",
"thai-utf8"
);
//// list of accectable languages


Modify DFH_ROOT/settings.php
Code: Select all
    <td bgcolor=#F2F2F2>&nbsp;English:<input<?php if($content[15] == "english"){echo(" checked=\"checked\"");} ?> type="radio" name="setting15" value="english" />
   <br />German:<input<?php if($content[15] == "german"){echo(" checked=\"checked\"");} ?> type="radio" name="setting15" value="german" />
   <br />Italian:<input<?php if($content[15] == "italian"){echo(" checked=\"checked\"");} ?> type="radio" name="setting15" value="italian" />
   <br />Thai:<input<?php if($content[15] == "thai-utf8"){echo(" checked=\"checked\"");} ?> type="radio" name="setting15" value="thai-utf8" />


Modify DFH_ROOT/styles/Indigo/header.php
Find sourecode:
Code: Select all
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>


Replace to:
Code: Select all
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>


Modify these tree files, Daddy's File Host v1.1 will support Thai.

Jaideejung007
Thai Translator

Attachments
thai-utf8.php (29.85 KiB)


Excellent, I am going to assign you for the Thai pack for DFH v1.2 :).
SamEA,
DaddyScripts' Admin & Developer.

Require a PHP or general IT freelancer? Don't hesitate to PM me.
User avatar
SamEA
Site Admin
 
Posts: 1165
Joined: Sat Feb 19, 2011 7:51 pm


Return to Daddy's File Host v1.1

Who is online

Users browsing this forum: No registered users and 2 guests

cron