วันพุธที่ 13 ธันวาคม พ.ศ. 2549

Ubuntu 7.04 กับรหัสภาษาไทย TIS-620

~$ sudo localedef -f TIS-620 -i th_TH th_TH

~$ locale -a
...
...
th_TH
th_TH.tis620
th_TH.utf8

~$ sudo dpkg-reconfigure localeconf

~$ cat /etc/environment
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games"
#LANG="th_TH.UTF-8"
LANGUAGE="th_TH:th"
LC_ALL ="th_TH"
### BEGIN DEBCONF SECTION FOR localeconf
# Do not edit within this region if you want your changes to be preserved
# by debconf. Instead, make changes before the "### BEGIN DEBCONF SECTION
# FOR localeconf" line, and/or after the "### END DEBCONF SECTION FOR
# localeconf" line.
LANG=th_TH
### END DEBCONF SECTION FOR localeconf

~$ cat /etc/locale.gen
### BEGIN DEBCONF SECTION FOR localeconf
# Do not edit within this region if you want your changes to be preserved
# by debconf. Instead, make changes before the "### BEGIN DEBCONF SECTION
# FOR localeconf" line, and/or after the "### END DEBCONF SECTION FOR
# localeconf" line.
th_TH TIS-620
### END DEBCONF SECTION FOR localeconf

Restart

~$ locale
LANG=th_TH
LC_CTYPE="th_TH"
LC_NUMERIC="th_TH"
LC_TIME="th_TH"
LC_COLLATE="th_TH"
LC_MONETARY="th_TH"
LC_MESSAGES="th_TH"
LC_PAPER="th_TH"
LC_NAME="th_TH"
LC_ADDRESS="th_TH"
LC_TELEPHONE="th_TH"
LC_MEASUREMENT="th_TH"
LC_IDENTIFICATION="th_TH"
LC_ALL=th_TH

ที่มา

ไม่มีความคิดเห็น: