RALINK AP SDK 3.3.0.0 User's Manual
Page 75 of 93
/dev/sda1 on /media/sda1 type vfat
(rw,fmask=0000,dmask=0000,codepage=cp437,iocharset=iso8859-1)
192.168.18.21:/tftpboot on /mnt type nfs
(rw,vers=3,rsize=32768,wsize=32768,hard,nolock,proto=udp,timeo=7,retrans=3,sec=sys,addr=1
92.168.18.21)
11.15
How to add a new language to the web UI
The following instructions are an example and show how to add the Korean language to the
web UI.
1.
Copy all the xml files under RT288x_SDK/source/user/goahead/web/lang/en to
RT288x_SDK/source/user/goahead/web/lang/kr and translate the “msgstr” part in
those files.
(Note: the translation should be UTF-8 encoded)
2.
Add an entry to RT288x_SDK/source/config/config.in:
dep_bool ' language pack - Korean' CONFIG_USER_GOAHEAD_LANG_KR
$CONFIG_USER_GOAHEAD_HTTPD
3.
Add an entry toRT288x_SDK/source/user/goahead/Makefile:
ifneq ("$(CONFIG_USER_GOAHEAD_LANG_KR)", "y")
rm -rf $(ROMFSDIR)/$(ROOT_DIRECTORY)/lang/kr
endif
4.
RT288x_SDK/source/user/goahead/src/utils.c:
Add to ‘getLangBuilt’ function:
else if (!strncmp(lang, "kr", 5))
#ifdef CONFIG_USER_GOAHEAD_LANG_KR
return websWrite(wp, T("1"));
#else
return websWrite(wp, T("0"));
#endif
5.
RT288x_SDK/source/user/goahead/web/overview.asp
Add to ‘initValue’ function:
var lang_kr = "<% getLangBuilt("kr"); %>";
if (lang_kr == "1")
lang_element.options[lang_element.length] = new Option('Korean', 'kr');