This documentation is for the old version. Go to the latest Upload Suite docs

Localization Sample

This demo application demonstrates how to use Image Uploader on international Web sites when several languages should be supported.


The application contains translations into the following languages:

  • Chinese (simplified)
  • Chinese (traditional)
  • Czech
  • Dutch
  • English
  • French
  • German
  • Italian
  • Japanese
  • Korean
  • Norwegian
  • Russian
  • Swedish
  • Turkish
  • Ukrainian

To find information about how this demo is implemented using a specific platform, see the Samples by Platforms topic.

Client-Side Code

All text elements of Image Uploader can be changed. In particular, you can translate them into any non-English language. Moreover, you can create several translations and switch between them depending on the user's choice.

To do that, properties with translated strings are imported from external JavaScript files. In this demo these files are stored in the Resources folder. When the user selects a language, appropriate text parameters are applied. In general, this process looks like this:

  1. A simple drop-down menu is used to let the user choose among available languages.
  2. The menu handler, SelectLanguage_change(), reloads the page, passing the selected language through the URL.
  3. After reload, Image Uploader initialization script applies the translation based on the value passed through the URL.

See the Localization topic for more details.

Server-Side Code

To complete the upload started by Image Uploader, some actions on the server side should be performed. The upload script of this application is completely equivalent to the one of the Basic Demo Sample. See that topic for more information.

See Also