Book Image

Oracle ADF Enterprise Application Development - Made Simple

By : Sten E. Vesterli
Book Image

Oracle ADF Enterprise Application Development - Made Simple

By: Sten E. Vesterli

Overview of this book

<p>With Application Development Framework (ADF), Oracle gives you the tool its own developers use. Modern enterprise applications must be user-friendly, visually attractive, and fast performing and Oracle Fusion Applications are just that; but to get the desired output you need proven methods to use this powerful and flexible tool to achieve success in developing your enterprise applications.</p> <p>Just as you need to know more than how to wield a hammer to build a house, you need more than knowing ADF to build a successful enterprise application. This book explains how to use the technology, create a blueprint, and organize your work to ensure success.</p> <p>This book takes you through an entire enterprise application development project using ADF. The book begins with a proof of concept, demonstrating the basics of the ADF technology, and then moves on to estimating the effort. You will then learn the necessary skills required to structure your project, your code, and how to build a successful enterprise project with ADF.</p> <p>Additional topics allow you to explore the support tools required for source control and issue tracking, learn to integrate them into your development environment, and use them productively to develop an enterprise application. Out-of-the-box functionalities such as skinning, customization, and internationalization are discussed at length.</p>
Table of Contents (20 chapters)
Oracle ADF Enterprise Application Development—Made Simple
Credits
About the Author
Acknowledgement
About the Reviewers
www.PacktPub.com
Preface
Index

Performing the translation


Now that you have your strings nicely separated out from business components and user interface, it is time to translate them. You have a resource bundle (.properties file, XLIFF file, or Java class) with your default text—but you have not really told the ADF framework what that language is. To add this information, you add a suffix to the file, using a two-character ISO 639 language code. If, for example, your default language is English, you add _en to the file name, making a file such as ModelBundle_en.properties.

If you wish to specify a specific country version of the language, you can add an additional suffix using a two-character ISO 3166 country code. For example, French as spoken in France would be ModelBundle_fr_FR while French as spoken in Canada would be ModelBundle_fr_CA.

To start your translation process, you create copies of your default file or class with different suffixes for all your target languages. You can then send out your property or XLIFF file to be translated.

Tip

Do not send a Java ListResourceBundle class to be translated unless your translator happens to be a Java programmer in his spare time.

When you get your translation back, you need to place all of your translated resource files in the file system next to the original default resource files in your project:

Additionally, you will have to define the languages your application will offer in the faces-config.xml file. You can find this file in your View project under Web Content/ WEB-INF. On the Application sub-tab, scroll down to the Locale Config section, set Default Locale and add all the languages your application supports: