Internationlization in PRADO

This demo shows the basic components available in PRADO for the process of Internationalizing and Localizing web applications. This page utilize multiple locale (or culture) aware templates to show the appropriate localized page. To view a different localized version, please change your language settings in your browser.

Your current culture is English (United States).

In addition to culture aware template. Text can be localized using many different translation sources. PRADO provides gettext, XML, SQLite, and MySQL container for storing message translations. The example in the following link demonstrates how text can be localized using the TTranslate component. The demo application is a simple translation message editor.

Best of luck in localization with PRADO.
— Wei Zhuo < weizhuo [at] gmail [dot] com >



Introduction

Developing and maintaining multi-language sites is a common problem for web developers.

Internationalization (I18N)
Process of developing a product in such a way that it works with data in different languages and can be adapted to various target markets without engineering changes.
Localization (L10N)
Subsequent process of translating and adapting a product to a given market's cultural conventions.

The following features are supported by PRADO:

Examples

Date: full pattern, en_GB culture

Example:

<com:TDateFormat ID="Time1" Pattern="full" Culture="en_GB"/>

Result:

Friday, 16 May 2008

Date: short pattern

Example:

<com:TDateFormat ID="Time2" Pattern="short" />

Result:

5/16/08

Date default pattern of en_US

Example:

<com:TDateFormat ID="Time3">2004/12/06</com:TDateFormat>

Result:

December 6, 2004 12:00:00 AM CST

16.05.2008 01:51:41

Currency default format

Example:

<com:TNumberFormat Type="currency">12.4</com:TNumberFormat>

Result:

$12.40

Currency, de_DE culture with Euro

Example:

<com:TNumberFormat ID="Number2" Type="currency" Culture="de_DE" Currency="EUR"/>

Result:

46.412,42 €

Currency, US format with Euro

Example:

<com:TNumberFormat Type="currency" Culture="en_US" Currency="EUR" Value="100" />

Result

€100.00

Translation examples

Example:

<com:TTranslate>Hello</com:TTranslate>

Result:

Hello

Example:

<com:TTranslate Text="Goodbye" />

Result:

bye

Translation using a different catalogue

Example:

<com:TTranslate Text="Goodbye"> 
    <prop:Catalogue>tests</prop:Catalogue>
</com:TTranslate>

Result:

Bye Bye!

Translation with parameter substitution

Example:

<com:TTranslate time="#time()">
    {greeting} {name}!, The unix-time is "{time}".
    <com:TParam Key="name">
        <com:TTranslate Catalogue="tests" Text="World" />
    </com:TParam>
    <com:TParam Key="greeting">Hello</com:TParam>
</com:TTranslate>

Result:

Hello world!, The unix-time is "1210920701".