gumara

เหนือกว่าเหตุผล ผมไม่มีเหตุผล

Compile po เป็น mo

Submitted by gumara on Mon, 06/23/2008 - 10:06

เป็นคำสั่งที่จำยากที่สด และลืมง่ายที่สุด เคยจดไว้ล๊ะ แต่หามะเจอ คงจะไว้ตอนบ้านเก่ามั๊ง

ติดตั้ง gettext

compile po สั่ง msgfmt -o

เอาไฟล์วางไว้ที่ /usr/share/locale/th/LC_MESSAGES/ เข้าใจว่าตั้งชื่อให้ตรงกับโปรแกรม เช่น gedit ก็ ตั้งชื่อว่า gedit.mo

more info
http://www.empresent.com/pdf/localisation.pdf
http://www.gnu.org/software/gettext/manual/html_node/Binaries.html#Binaries

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.

More information about formatting options

rMilk

Comment

Tags

Another ~


Let's chat

User login

del.icio.us/~

Add to Technorati Favorites


Stat:

free web tracker