Previous | Next | Trail Map | Internationalization | Introduction

Running the Sample Program

The internationalized program is flexible, because it allows the end-user to specify their language and country on the command line. In the following example, the program displays the messages in French, because the language code is fr (French), and the country code is FR (France):
% java I18NSample fr FR
Bonjour.
Comment allez-vous?
Au revoir.
In the next example, the language code is en (English) and the country code is US (United States):
% java I18NSample en US
Hello.
How are you?
Goodbye.


Previous | Next | Trail Map | Internationalization | Introduction