There is a Google Gagdet for the chinesenotes.com Chinese-English dictionary. To put it on your iGoogle home page click the button below.
To get started here is an example of a very simple Gadget that displays the text 你好.
To see how this works add the gadget to iGoogle by following these steps:
A screen shot is shown below.
The Google Gadget Editor allows you to quickly develop gadgets without having to worry about hosting and related problems. It also kicks off the publishing wizard from the file menu, which will publish it in the Google Gadget directory. There is also a wizard for generating a button to make it easy for your users to add your gadget to their personalized iGoogle page.
Developers of language tools might want to fetch remote content from a location, such as a dictionary.
API's for this purpose:
Here is an example of fetching Chinese data encoded in UTF-8 to display in a Gadget.
You can load it yourself by adding it to iGoogle from the URL
The gadget retrieves the text file
nihao_utf8.txt and displays the contents in an
alert dialog box. The
_IG_FetchContent function is asynchronous and when it brings
the data back it calls the anonymous callback function supplied that displays the data in the alert
dialog. This is shown in the following screen shot.
Google Gadgets have a framework for internationalization. Any user visible text should be externalized
into a message bundle. Google Gadgets API support UTF-8 encoding only. Here is an example of
message bundles for English for the string with id
Here is an example of the message bundle for Simplified Chinese.
Here is the message bundle for Traditional Chinese.
By convention message bundles are named as
ALL is used to represent a default. Here is a simple example that uses these
message bundles. The
Locale elements within the
Module element specify
the message bundles and the
__MSG_hello_china__ specifies the string id to use from
To try this out load the Gadget at URL
http://chinesenotes.com/chinese_js/js_examples/hello_china.xml. Here is a screen shot
with the locale set to Traditional Chinese (zh_tw).
Copyright Alex Amies 2008. Please send comments to email@example.com.