Thursday, April 10, 2008

easy unicode support

I was thinking about making zoloFighter display in different languages. The first push for it is sometime last year, where the internal workings are done, so for Chinese/Japanese WOW, the bot will properly print out mob/herb/mine names.

Yesterday I did a simple process to let the UI components (buttons/labels) to display foreign languages. Actually it is a way to allow customization to be done to the bot, so you can have the buttons display whatever you want.

The process is simple, a file named translate.txt must exists in lang folder. There are several default ones available (for German/Chinese fonts). The file must be UTF8 format, with alternating lines of English and its translation. Rather simple but very effective.

No comments: