1 / 10

Internationalization

Internationalization. Net.Orange. Internationalization. Scope. What items are affected? Images (No locale-specific images) Text Values Dates Where does internationalization occur? Infrastructure ( xd tags) Code (product pages) Data (cOS response) What triggers internationalization?

brone
Télécharger la présentation

Internationalization

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Internationalization Net.Orange

  2. Internationalization Scope • What items are affected? • Images (No locale-specific images) • Text • Values • Dates • Where does internationalization occur? • Infrastructure (xd tags) • Code (product pages) • Data (cOS response) • What triggers internationalization? • Everything is keyed off the client.locale variable.

  3. Internationalization Changing the Locale • Systematically <cfsetclient.locale = url.locale> • User Profile Set in user profile and called in as client.locale at login. • User Selectable Using the locale selector toolbar tool at /ndoXd/tools/localeSelector

  4. Internationalization Adding Locale-specific resources • Locale resources are located at /ndoXd/i18n/locales/ • One file per locale • Pipe delimited • Value|Substitution format • Example of es.txt

  5. Internationalization Text Usage - Tag • Tags have built in localization keyed off the client.locale variable. • Values are handled, content is not. • Example: • “Actions” renders as “Acciones” is the locale is set to es.

  6. Internationalization Text Usage - Code • Content-based code must use the transform. • How to use… • Include the i18n processing file. • Wrap text in the function

  7. Internationalization Date Usage- Code • Use the built-in ColdFusion LSDateFormat(date, ‘short’) • It is keyed off the client.locale • Will generate region-specific date formats

  8. Internationalization Currency Usage- Code • Use the built-in ColdFusion LSCurrencyFormat(value) • It is keyed off the client.locale • Will generate region-specific currency formats

  9. Internationalization Sample – English/Default Item Label Item Description to explain what the item is. Item Label Title of Screenshot

  10. Internationalization Sample – Spanish Tag-based Code-based

More Related