SlideShare a Scribd company logo
Write Once… Take Less Time to Deploy  Everywhere   Michael Labriola   Senior Consultant   Digital Primates Page 0 of 59 Page 1 of 59
Who am I? Michael Labriola Senior Consultant Digital Primates Client side architect specializing in Adobe Flex Designed and implemented UCA and CLDR implementation for ActionScript Lead architect and developer of FlexUnit 4 and Fluint Flex Team Mentor Individual Member of the Unicode Consortium Architected applications deployed worldwide Page 2 of 59
What are we going to cover? The challenges of internationalizing and localizing an application A general strategy for keeping some of these challenges in check by using a well-defined presentation tier An overview of Adobe Flex An understanding of how Flex can help Page 3 of 59
Terminology As with every technical debate, at some point the definition of the words internationalization(i18n) and localization(L10n) will be called into question.  Here are the definitions I choose to use for this presentation: Page 4 of 59
Terminology i18n – designing and developing a product to be easily adaptable to a multitude of cultures, languages and locations L10n – Adapting that product to meet the needs to a specific market Page 5 of 59
Challenges of global applications Internationalization is not free.  It is usually not cheap.  Regardless of the platform you choose for development, it is never completely automatic Page 6 of 59
Challenges of global applications Internationalization is a process and even more so an awareness that must be continually evaluated throughout development It is made easier when considered from the beginning and disproportionately more difficult when it is an after thought Page 7 of 59
Challenges of global applications International support is a business decision The goal of internationalizing a product is to reach new markets The ultimate goal is to ensure that the decision to pursue new markets is a business, not a technical, choice Page 8 of 59
Challenges of global applications The decision to internationalize is a big deal It means a bigger budget, new requirements and longer development and QA cycles Why do it? Ideally to sell the same software the a new marketplace. To achieve a bigger ROI on software. Page 9 of 59
Challenges of global applications Internationalization is not an all or nothing decision. There are decisions as to the amount of support The more support, the more cost, the more opportunity to reach new markets. Page 10 of 59
Visibility of Efforts Page 11 of 59
Externalizing Content Externalizing content is a highly visible step. It involves removing all hard coded labels and messages While visible, only performing this step will mean that you can support different locales speaking the same language reasonably well. You can likely support some additional locales poorly. Page 12 of 59
Challenges: Externalizing Externalizing content means that nothing displayed to the user can be hard-coded in your application Labels User Messages Error Messages Reference Data Date and Time Formats Page 13 of 59
Challenges: Externalizing All external content must be defined in some external source such as a property file, XML document or even database All code must respect variability. You cannot have code such as: if ( selectedItem == "Male" ) { } Page 14 of 59
Challenges: Externalizing Further, when parsing user input, you cannot assume currency symbols, placement of text punctuation or order of elements. Output display and input parsing need to work together else you are displaying one format to a user and asking them to enter data in another. The result would be an unusable application Page 15 of 59
Using Unicode Unicode maps every viable character to a unique code point, allowing you access to a multitude of written languages CLDR - Unicode Common Locale Data Repository provides locale specific data which explains how to use and format data for a given locale. Page 16 of 59
Challenges: Unicode There are various levels of Unicode support in different runtimes, development languages and tools Internally storing strings for display and user input as Unicode code points is a great step forward, however, care still needs to be taken whenever searching, comparing or manipulating strings. Page 17 of 59
Challenges: Unicode Comparing strings in the world of Unicode is not quite the simple == operation many of us are used to.  Standard string comparison functions built into languages may or may not work for this purpose Worse yet, they may appear to work in your locale and only break with others Page 18 of 59
Challenges: Unicode By way of example, different versions of the Flash runtime have different Unicode support.  Most versions store strings as UTF-16 internally, however, support for characters outside of the Basic Multilingual Plane (BMP) is trickier and not as intuitive Page 19 of 59
Challenges: Unicode Further, remember that there is no such thing as a universal sort Unicode helps us to define common characters. However, those characters are used in different locales in different ways. The same physical character often sorts in a different order in neighboring locales Page 20 of 59
Challenges: Unicode Do not assume that your development tools, language, etc. understands and handles this sorting properly Before version 10.1 of the Flash runtime, it was necessary to use 3 rd  party tools to accomplish this sorting correctly Page 21 of 59
Dynamic Sizing and Placement How much space content should take and where it should be placed on the screen is defined by language, locale and font It is unlikely that a translated message to another language will ever take the exact same amount of screen space.  Some locales will expect form headings and scroll bars to be in drastically different places.  Page 22 of 59
Challenges: Sizing and Placement Therefore, you can never assume an absolute font size. Some glyphs cannot be accurately displayed below approximately a 12pt font You can also never assume that two strings will concatenate in the same way in different languages. Care must be taken with text inputs embedded in a string Page 23 of 59
Challenges: Sizing and Placement As noted, strings represented in different languages and different fonts take different amounts of space to display Not only can you not assume the size of a field, you must also not assume absolute positioning of other fields Sizing and placement must be handled fluidly Page 24 of 59
Challenges: Sizing and Placement Screen shot of app with fixed size Page 25 of 59
Challenges: Sizing and Placement Dynamic sizes but not dynamically positioned Page 26 of 59
Challenges: Sizing and Placement Resized and repositioned Page 27 of 59
Customizing Views Customizing views per locale is the ultimate expression of localization How do you manage to have customized views per locale and not allow it to become a nightmare of custom builds and custom code? Page 28 of 59
Solutions So, how do you define an effective client side architecture for i18n and L10n application? You need to start by separating meaning from display For example, Unicode maps characters. It allows others to decide how those might appear on the screen Page 29 of 59
Number 1 is a number, it represents a count of some abstract item. We can represent it a variety of ways but it has a known meaning: 1 1.0 1,0 1.00000000 One Uno Page 30 of 59
Numbers Similarly 3 quarters of a whole has a meaning, regardless of presentation: .75 ¾ 0,75 Page 31 of 59
Dates Dates also represent a point in time relative to another point in the past. While the choice of fixed point may vary from culture to culture the meaning of a date is the same: 03/14/2010 14/03/2010 The fourteenth of March, year Two Thousand and Ten Anno Domini  29, Rabi' al-awwal ( ربيع الأول ) 1431 Page 32 of 59
Reference Data Even non-simple types share the same trait. For example, the biological sex of an individual has a specific meaning which is conveyed regardless of the word used to describe it Male or Female M or F Macho o Hembra Page 33 of 59
Meaning In all cases there is an underlying meaning which is being shown in one of a variety of ways Understanding the meaning of data separate from the way it is shown or the way it is entered is a major part of the solution for client internationalization problems Page 34 of 59
Meaning In other words, we need to separate the idea of presenting the data from the meaning This fits inline with the idea of a multi tiered approach to client-server architecture ..which fits in very well with my talk. Page 35 of 59
Tiers Page 36 of 59
Solving the problem The major focus of our i18n work is the presentation tier.  Storing and saving data with meaning in mind, and never with format Relying on the presentation tier to format and interpret incoming format into raw data. Page 37 of 59
Why? Well, let’s consider the alternative Does it make sense at the data level? Once data is stored with format it becomes a constant struggle to interpret it for different locales. However, your data layer needs to be capable of storing i18n info. Does it make sense at the logical level? The logical level should do operations on data. To me it is very important that the data is already normalized before the logical layer touches it. The biggest challenge is not messing it up here. Page 38 of 59
Solutions This is where Adobe Flex plays a key role Page 39 of 59
Adobe Flex Primer Adobe Flex is a technology designed to build the presentation tier of rich Internet applications. These applications resemble client server applications more than web applications They are executed in a virtual machine on the client.  Page 40 of 59
Adobe Flex Primer Flex is an open source framework Flex encourages extension and re-composition, meaning that while there are many core Flex pieces available, you can reshape them as needed into a viable presentation layer for your product. Page 41 of 59
Adobe Flex Primer Flex applications can be deployed in two ways Web: which means that Flash Runtime is the virtual machine Desktop: which means that Adobe Integrated Runtime (AIR) is the runtime Page 42 of 59
Adobe Flex Primer Why use Flash Player? It’s a good runtime. Some version of Flash Player is installed on 99% of the Internet connected personal computers in mature markets and still over 98% in emerging markets. Currently, the penetration and update rate to the newest version is faster than any other runtime Page 43 of 59
Adobe Flex Primer Flex itself is a component framework which allows ease of assembling presentation tier user interfaces using XML markup. Flex can be thought of as a domain specific language for creating user interfaces. Page 44 of 59
Adobe Flex Primer In that capacity, Flex has a specific philosophy which makes it extremely practical for our purposes In Flex a developer creates views which automatically monitor and react to changes in an underlying data model.  Page 45 of 59
Adobe Flex Primer That means that, in general, a Flex developer interacts with data.  The view of that data is represented by one or more classes and can vary without changing the underlying logic. Page 46 of 59
Adobe Flex Primer It is viable to say that, in Flex, the concepts of form and function are decoupled. You can define the functionality of a component or view. That functionality can remain in tact regardless of how you choose to display it on the screen. Page 47 of 59
Adobe Flex Primer So, why does Flex make sense for an i18n application? Because developers can interact with meaning. The formatting of that meaning becomes part of the view. As the form and function are separate, you can have multiple, very distinct views of the same data without rewriting the functionality in any way Page 48 of 59
Adobe Flex Primer Let’s take a look at some of the specific tools available to the Flex developer which aid in this goal Page 49 of 59
Data Binding Data Binding is a key concept where the view monitors data for changes.  When a chance occurs, the view updates as in this simple Currency example Page 50 of 59
Measurement and Layout One of the biggest strengths of Flex is its ability to auto size and auto layout content. This is a very quick example of dynamic layout Page 51 of 59
Property Files Flex allows you to define your externalized strings in property files. Those property files can be added to a project at compile time or loaded at runtime as needed Page 52 of 59
Formatters and Validators As was briefly demonstrated with the data binding example, Flex has a rich set of extensible Formatters and Validators for display and data. By default the formats for these controls are also controlled externally via properties files. They can be assembled together to achieve the separation of data versus presentation discussed here. Page 53 of 59
Unicode Support Internally Flex depends on the string storage capabilities of the Flash or AIR runtime. All strings are internally stored as Unicode in UTF-16. Flash Player can render and allow input of Unicode characters. It can also render any Unicode character to the screen Page 54 of 59
Rich Text Engine To that end, Flex has access to TLF (Text Layout Framework) that works with Flash Player 10.0 and above. This layout framework allows rendering of Unicode characters, BiDirectional text and allows for the flowing of that text around other objects with intelligent wrapping  Page 55 of 59
Collation As of version 10.1, Flash has native access to Unicode collation, however, even earlier version were able to use these features due to Flex’s inherent capability for extension. Libraries exist that support locale specific collation with full configuration of the operation Page 56 of 59
Layout Mirroring Flex 4 will natively support layout mirroring, however, extensions already exist for earlier versions that allow full page flipping Like most of the other Flex features, the burden is not placed on the application for this feature, but rather the framework itself Page 57 of 59
Component Skinning Component Skinning is the first place that one can truly begin to understand the message of form and function separation When skinning a component or view it is possible to completely change anything visual about the component without ever changing the functionality Page 58 of 59
Contact Information [email_address] http://twitter.com/mlabriola   Michael Labriola   Senior Consultant   Digital Primates Page 59 of 59

More Related Content

PPTX
Generic Tools - Specific Languages (PhD Defense Slides)
PPTX
Language-Oriented Business Applications
PPTX
Ask the Experts: SDL Trados live Q+A webinar for freelance translators
PPTX
Fundamentalsofprogrammingfinal 121011003536-phpapp02
PPTX
Chapter 5
PDF
Cprogramming tutorial
PPTX
Generic Tools, Specific Laguages
PDF
C plus plus for hackers it security
Generic Tools - Specific Languages (PhD Defense Slides)
Language-Oriented Business Applications
Ask the Experts: SDL Trados live Q+A webinar for freelance translators
Fundamentalsofprogrammingfinal 121011003536-phpapp02
Chapter 5
Cprogramming tutorial
Generic Tools, Specific Laguages
C plus plus for hackers it security

What's hot (20)

PPTX
Vp lecture1 ararat
PPTX
Switch case looping
PPTX
Margareth lota
PPTX
Vitalii Braslavskyi - Declarative engineering
PPTX
Mark asoi ppt
PPTX
Fundamentals of programming final santos
PPT
C# Introduction brief
PPTX
Architecting Domain-Specific Languages
PPT
Characteristics of c#
PPT
Chapter 5( programming) answer
PPTX
Introduction to Programming
PPT
SD & D Types of programming language
ODP
Programming
PDF
Basics of Computer Coding: Understanding Coding Languages
PPTX
Top 10 programming languages
PPT
Text Editors and IDEs
DOCX
Programming
PPTX
Programming Languages
PDF
Abc c program
PPTX
Why programming is important
Vp lecture1 ararat
Switch case looping
Margareth lota
Vitalii Braslavskyi - Declarative engineering
Mark asoi ppt
Fundamentals of programming final santos
C# Introduction brief
Architecting Domain-Specific Languages
Characteristics of c#
Chapter 5( programming) answer
Introduction to Programming
SD & D Types of programming language
Programming
Basics of Computer Coding: Understanding Coding Languages
Top 10 programming languages
Text Editors and IDEs
Programming
Programming Languages
Abc c program
Why programming is important
Ad

Viewers also liked (8)

PPTX
Flex 4 components from the firehose
PPT
Developing for a world wide audience
PPTX
Archives of the Columbia-Princeton Electronic Music Center
PPTX
L2624 labriola
PDF
Blaze Ds Slides
PPT
2007 Max Presentation - Creating Custom Flex Components
PPTX
Les nouveautés du Windows Runtime 8.1
PPTX
assertYourself - Breaking the Theories and Assumptions of Unit Testing in Flex
Flex 4 components from the firehose
Developing for a world wide audience
Archives of the Columbia-Princeton Electronic Music Center
L2624 labriola
Blaze Ds Slides
2007 Max Presentation - Creating Custom Flex Components
Les nouveautés du Windows Runtime 8.1
assertYourself - Breaking the Theories and Assumptions of Unit Testing in Flex
Ad

Similar to Write once... Take Less Time to Deploy (20)

PPT
Developing for a world wide audience
PPTX
How to create software that is ready for the world
PDF
Internationalization (i18n) Primer: Solving Coding Issues Equals Competitive ...
PPT
Culture Usability
PPTX
Selling UX at CodeMash 2012
PDF
UI/UX: Distinction and Trends
PDF
UI/UX-Distinction and Trend
PDF
UX For Digital Humanists: A Primer
PPT
Randori design goals and justification
PDF
Outsourcing Internationalization (i18n) Services
PDF
Implementing Modernization by Trevor Perry
PDF
Wordware 2011: Lingoport i18n Planning & Static Analysis
PDF
Software Development Quantified
PDF
What is Internationalization & Localization Testing?
PDF
How To Build And Launch A Successful Globalized App From Day One Or All The ...
PDF
Hacking UX: Product Design Thinking for Techies
PDF
The Birth of the HUGE UX School
PDF
UX & UI Design: Differentiate through design
PDF
Designing for Interactive User Interfaces
PDF
Designing for Interactive User Interfaces
Developing for a world wide audience
How to create software that is ready for the world
Internationalization (i18n) Primer: Solving Coding Issues Equals Competitive ...
Culture Usability
Selling UX at CodeMash 2012
UI/UX: Distinction and Trends
UI/UX-Distinction and Trend
UX For Digital Humanists: A Primer
Randori design goals and justification
Outsourcing Internationalization (i18n) Services
Implementing Modernization by Trevor Perry
Wordware 2011: Lingoport i18n Planning & Static Analysis
Software Development Quantified
What is Internationalization & Localization Testing?
How To Build And Launch A Successful Globalized App From Day One Or All The ...
Hacking UX: Product Design Thinking for Techies
The Birth of the HUGE UX School
UX & UI Design: Differentiate through design
Designing for Interactive User Interfaces
Designing for Interactive User Interfaces

More from michael.labriola (12)

PPTX
Optimizing Browser Rendering
PPT
Talking trash
PPT
FlexUnit 4 for contributors
PPT
Why test with flex unit
PPT
Apocalypse Soon
PPTX
Flex 4 Component Development
PPTX
Any Which Array But Loose
PPT
Air Drag And Drop
PPT
Diving in the Flex Data Binding Waters
PPT
How To Navigate And Extend The Flex Infrastructure
PPT
Dense And Hot 360 Flex
PPT
Dense And Hot Web Du
Optimizing Browser Rendering
Talking trash
FlexUnit 4 for contributors
Why test with flex unit
Apocalypse Soon
Flex 4 Component Development
Any Which Array But Loose
Air Drag And Drop
Diving in the Flex Data Binding Waters
How To Navigate And Extend The Flex Infrastructure
Dense And Hot 360 Flex
Dense And Hot Web Du

Recently uploaded (20)

PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
Spectroscopy.pptx food analysis technology
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
sap open course for s4hana steps from ECC to s4
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Encapsulation theory and applications.pdf
PDF
cuic standard and advanced reporting.pdf
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Empathic Computing: Creating Shared Understanding
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
“AI and Expert System Decision Support & Business Intelligence Systems”
Spectroscopy.pptx food analysis technology
Per capita expenditure prediction using model stacking based on satellite ima...
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
sap open course for s4hana steps from ECC to s4
Programs and apps: productivity, graphics, security and other tools
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Encapsulation theory and applications.pdf
cuic standard and advanced reporting.pdf
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Empathic Computing: Creating Shared Understanding
Unlocking AI with Model Context Protocol (MCP)
Encapsulation_ Review paper, used for researhc scholars
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
MYSQL Presentation for SQL database connectivity
Mobile App Security Testing_ A Comprehensive Guide.pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
20250228 LYD VKU AI Blended-Learning.pptx

Write once... Take Less Time to Deploy

  • 1. Write Once… Take Less Time to Deploy Everywhere Michael Labriola Senior Consultant Digital Primates Page 0 of 59 Page 1 of 59
  • 2. Who am I? Michael Labriola Senior Consultant Digital Primates Client side architect specializing in Adobe Flex Designed and implemented UCA and CLDR implementation for ActionScript Lead architect and developer of FlexUnit 4 and Fluint Flex Team Mentor Individual Member of the Unicode Consortium Architected applications deployed worldwide Page 2 of 59
  • 3. What are we going to cover? The challenges of internationalizing and localizing an application A general strategy for keeping some of these challenges in check by using a well-defined presentation tier An overview of Adobe Flex An understanding of how Flex can help Page 3 of 59
  • 4. Terminology As with every technical debate, at some point the definition of the words internationalization(i18n) and localization(L10n) will be called into question. Here are the definitions I choose to use for this presentation: Page 4 of 59
  • 5. Terminology i18n – designing and developing a product to be easily adaptable to a multitude of cultures, languages and locations L10n – Adapting that product to meet the needs to a specific market Page 5 of 59
  • 6. Challenges of global applications Internationalization is not free. It is usually not cheap. Regardless of the platform you choose for development, it is never completely automatic Page 6 of 59
  • 7. Challenges of global applications Internationalization is a process and even more so an awareness that must be continually evaluated throughout development It is made easier when considered from the beginning and disproportionately more difficult when it is an after thought Page 7 of 59
  • 8. Challenges of global applications International support is a business decision The goal of internationalizing a product is to reach new markets The ultimate goal is to ensure that the decision to pursue new markets is a business, not a technical, choice Page 8 of 59
  • 9. Challenges of global applications The decision to internationalize is a big deal It means a bigger budget, new requirements and longer development and QA cycles Why do it? Ideally to sell the same software the a new marketplace. To achieve a bigger ROI on software. Page 9 of 59
  • 10. Challenges of global applications Internationalization is not an all or nothing decision. There are decisions as to the amount of support The more support, the more cost, the more opportunity to reach new markets. Page 10 of 59
  • 11. Visibility of Efforts Page 11 of 59
  • 12. Externalizing Content Externalizing content is a highly visible step. It involves removing all hard coded labels and messages While visible, only performing this step will mean that you can support different locales speaking the same language reasonably well. You can likely support some additional locales poorly. Page 12 of 59
  • 13. Challenges: Externalizing Externalizing content means that nothing displayed to the user can be hard-coded in your application Labels User Messages Error Messages Reference Data Date and Time Formats Page 13 of 59
  • 14. Challenges: Externalizing All external content must be defined in some external source such as a property file, XML document or even database All code must respect variability. You cannot have code such as: if ( selectedItem == "Male" ) { } Page 14 of 59
  • 15. Challenges: Externalizing Further, when parsing user input, you cannot assume currency symbols, placement of text punctuation or order of elements. Output display and input parsing need to work together else you are displaying one format to a user and asking them to enter data in another. The result would be an unusable application Page 15 of 59
  • 16. Using Unicode Unicode maps every viable character to a unique code point, allowing you access to a multitude of written languages CLDR - Unicode Common Locale Data Repository provides locale specific data which explains how to use and format data for a given locale. Page 16 of 59
  • 17. Challenges: Unicode There are various levels of Unicode support in different runtimes, development languages and tools Internally storing strings for display and user input as Unicode code points is a great step forward, however, care still needs to be taken whenever searching, comparing or manipulating strings. Page 17 of 59
  • 18. Challenges: Unicode Comparing strings in the world of Unicode is not quite the simple == operation many of us are used to. Standard string comparison functions built into languages may or may not work for this purpose Worse yet, they may appear to work in your locale and only break with others Page 18 of 59
  • 19. Challenges: Unicode By way of example, different versions of the Flash runtime have different Unicode support. Most versions store strings as UTF-16 internally, however, support for characters outside of the Basic Multilingual Plane (BMP) is trickier and not as intuitive Page 19 of 59
  • 20. Challenges: Unicode Further, remember that there is no such thing as a universal sort Unicode helps us to define common characters. However, those characters are used in different locales in different ways. The same physical character often sorts in a different order in neighboring locales Page 20 of 59
  • 21. Challenges: Unicode Do not assume that your development tools, language, etc. understands and handles this sorting properly Before version 10.1 of the Flash runtime, it was necessary to use 3 rd party tools to accomplish this sorting correctly Page 21 of 59
  • 22. Dynamic Sizing and Placement How much space content should take and where it should be placed on the screen is defined by language, locale and font It is unlikely that a translated message to another language will ever take the exact same amount of screen space. Some locales will expect form headings and scroll bars to be in drastically different places. Page 22 of 59
  • 23. Challenges: Sizing and Placement Therefore, you can never assume an absolute font size. Some glyphs cannot be accurately displayed below approximately a 12pt font You can also never assume that two strings will concatenate in the same way in different languages. Care must be taken with text inputs embedded in a string Page 23 of 59
  • 24. Challenges: Sizing and Placement As noted, strings represented in different languages and different fonts take different amounts of space to display Not only can you not assume the size of a field, you must also not assume absolute positioning of other fields Sizing and placement must be handled fluidly Page 24 of 59
  • 25. Challenges: Sizing and Placement Screen shot of app with fixed size Page 25 of 59
  • 26. Challenges: Sizing and Placement Dynamic sizes but not dynamically positioned Page 26 of 59
  • 27. Challenges: Sizing and Placement Resized and repositioned Page 27 of 59
  • 28. Customizing Views Customizing views per locale is the ultimate expression of localization How do you manage to have customized views per locale and not allow it to become a nightmare of custom builds and custom code? Page 28 of 59
  • 29. Solutions So, how do you define an effective client side architecture for i18n and L10n application? You need to start by separating meaning from display For example, Unicode maps characters. It allows others to decide how those might appear on the screen Page 29 of 59
  • 30. Number 1 is a number, it represents a count of some abstract item. We can represent it a variety of ways but it has a known meaning: 1 1.0 1,0 1.00000000 One Uno Page 30 of 59
  • 31. Numbers Similarly 3 quarters of a whole has a meaning, regardless of presentation: .75 ¾ 0,75 Page 31 of 59
  • 32. Dates Dates also represent a point in time relative to another point in the past. While the choice of fixed point may vary from culture to culture the meaning of a date is the same: 03/14/2010 14/03/2010 The fourteenth of March, year Two Thousand and Ten Anno Domini 29, Rabi' al-awwal ( ربيع الأول ) 1431 Page 32 of 59
  • 33. Reference Data Even non-simple types share the same trait. For example, the biological sex of an individual has a specific meaning which is conveyed regardless of the word used to describe it Male or Female M or F Macho o Hembra Page 33 of 59
  • 34. Meaning In all cases there is an underlying meaning which is being shown in one of a variety of ways Understanding the meaning of data separate from the way it is shown or the way it is entered is a major part of the solution for client internationalization problems Page 34 of 59
  • 35. Meaning In other words, we need to separate the idea of presenting the data from the meaning This fits inline with the idea of a multi tiered approach to client-server architecture ..which fits in very well with my talk. Page 35 of 59
  • 36. Tiers Page 36 of 59
  • 37. Solving the problem The major focus of our i18n work is the presentation tier. Storing and saving data with meaning in mind, and never with format Relying on the presentation tier to format and interpret incoming format into raw data. Page 37 of 59
  • 38. Why? Well, let’s consider the alternative Does it make sense at the data level? Once data is stored with format it becomes a constant struggle to interpret it for different locales. However, your data layer needs to be capable of storing i18n info. Does it make sense at the logical level? The logical level should do operations on data. To me it is very important that the data is already normalized before the logical layer touches it. The biggest challenge is not messing it up here. Page 38 of 59
  • 39. Solutions This is where Adobe Flex plays a key role Page 39 of 59
  • 40. Adobe Flex Primer Adobe Flex is a technology designed to build the presentation tier of rich Internet applications. These applications resemble client server applications more than web applications They are executed in a virtual machine on the client. Page 40 of 59
  • 41. Adobe Flex Primer Flex is an open source framework Flex encourages extension and re-composition, meaning that while there are many core Flex pieces available, you can reshape them as needed into a viable presentation layer for your product. Page 41 of 59
  • 42. Adobe Flex Primer Flex applications can be deployed in two ways Web: which means that Flash Runtime is the virtual machine Desktop: which means that Adobe Integrated Runtime (AIR) is the runtime Page 42 of 59
  • 43. Adobe Flex Primer Why use Flash Player? It’s a good runtime. Some version of Flash Player is installed on 99% of the Internet connected personal computers in mature markets and still over 98% in emerging markets. Currently, the penetration and update rate to the newest version is faster than any other runtime Page 43 of 59
  • 44. Adobe Flex Primer Flex itself is a component framework which allows ease of assembling presentation tier user interfaces using XML markup. Flex can be thought of as a domain specific language for creating user interfaces. Page 44 of 59
  • 45. Adobe Flex Primer In that capacity, Flex has a specific philosophy which makes it extremely practical for our purposes In Flex a developer creates views which automatically monitor and react to changes in an underlying data model. Page 45 of 59
  • 46. Adobe Flex Primer That means that, in general, a Flex developer interacts with data. The view of that data is represented by one or more classes and can vary without changing the underlying logic. Page 46 of 59
  • 47. Adobe Flex Primer It is viable to say that, in Flex, the concepts of form and function are decoupled. You can define the functionality of a component or view. That functionality can remain in tact regardless of how you choose to display it on the screen. Page 47 of 59
  • 48. Adobe Flex Primer So, why does Flex make sense for an i18n application? Because developers can interact with meaning. The formatting of that meaning becomes part of the view. As the form and function are separate, you can have multiple, very distinct views of the same data without rewriting the functionality in any way Page 48 of 59
  • 49. Adobe Flex Primer Let’s take a look at some of the specific tools available to the Flex developer which aid in this goal Page 49 of 59
  • 50. Data Binding Data Binding is a key concept where the view monitors data for changes. When a chance occurs, the view updates as in this simple Currency example Page 50 of 59
  • 51. Measurement and Layout One of the biggest strengths of Flex is its ability to auto size and auto layout content. This is a very quick example of dynamic layout Page 51 of 59
  • 52. Property Files Flex allows you to define your externalized strings in property files. Those property files can be added to a project at compile time or loaded at runtime as needed Page 52 of 59
  • 53. Formatters and Validators As was briefly demonstrated with the data binding example, Flex has a rich set of extensible Formatters and Validators for display and data. By default the formats for these controls are also controlled externally via properties files. They can be assembled together to achieve the separation of data versus presentation discussed here. Page 53 of 59
  • 54. Unicode Support Internally Flex depends on the string storage capabilities of the Flash or AIR runtime. All strings are internally stored as Unicode in UTF-16. Flash Player can render and allow input of Unicode characters. It can also render any Unicode character to the screen Page 54 of 59
  • 55. Rich Text Engine To that end, Flex has access to TLF (Text Layout Framework) that works with Flash Player 10.0 and above. This layout framework allows rendering of Unicode characters, BiDirectional text and allows for the flowing of that text around other objects with intelligent wrapping Page 55 of 59
  • 56. Collation As of version 10.1, Flash has native access to Unicode collation, however, even earlier version were able to use these features due to Flex’s inherent capability for extension. Libraries exist that support locale specific collation with full configuration of the operation Page 56 of 59
  • 57. Layout Mirroring Flex 4 will natively support layout mirroring, however, extensions already exist for earlier versions that allow full page flipping Like most of the other Flex features, the burden is not placed on the application for this feature, but rather the framework itself Page 57 of 59
  • 58. Component Skinning Component Skinning is the first place that one can truly begin to understand the message of form and function separation When skinning a component or view it is possible to completely change anything visual about the component without ever changing the functionality Page 58 of 59
  • 59. Contact Information [email_address] http://twitter.com/mlabriola Michael Labriola Senior Consultant Digital Primates Page 59 of 59

Editor's Notes

  • #37: Public domain image courtesy of Bartledan