SlideShare uma empresa Scribd logo
1 de 31
Baixar para ler offline
Internationalization
What is internationalization?
         the process of creating applications which can adapt and adjust to
various countries, languages, regions.
         I18N
What is localization?
        the process of adapting an application for a specific language or
country by addition of locale-specific components and translation of text.
        L10N
Why need internationalization?
Why need internationalization?
     Difference:
           - Language
           - Currency
           - Date and time
Alternatives to solve the Problem?
     Develop product
     Translate product
Benefits of I18N and L10N
     No hard coding
     No recompilation
     Localized quickly
Unicode
    provide a unique number
    for every character
    irrespective of platform,
    program or language.

    Unicode is a 16-bit
    character encoding
Significance of Unicode
     Java platform uses Unicode as its native character encoding.

     Uxxxx :
                X : hexadecimal digit
Internationalization Process
Properties file
     MessageBundle.properties
     MessageBundle_fr_FR.properties
     MessageBundle_de_DE.properties
Locale
     Constructors:
             public Locale(String language, String country)
             public Locale(String language)
             Locale usLocale = new Locale(“en”,”us”)
Methods
          public static Locale getDefault()
          public final String getDisplayCountry()
          public final String getDisplayLanguage()
Resource Bundle
         Localized or translated into different languages
         Handled for multiple locales at the same time
         Supported for more locales later
Using Resource Bundle
          ResourceBundle getBundle(String, Locale)
Fetching the text from Resource Bundle
          public final String getString(String key)
Fetching the text from Resource Bundle
          public abstract Enumeration <String> getKeys()
Internationalization Elements
Component Captions
    Caption text
    Dates
    Numerals
    Percentage
Need for Formatting?
     12345678
          US 12,345,678
          EU 12.345.678
NumberFormat class
    getNumberInstance()
    getCurrencyInstance()
    getPercentInstance()
    format()
DateFormat class
     DateFormat getDateInstance (style, locale)
Formatting Message
It is not always possible to create a
grammatically correct sentences with
concatenation of phrases and variables.
So we need MessageFormat.
Steps for MessageFormat.
     Identify variables
     Create template
     Create object array
     Create instance
     Apply and Format
Internationlization
Internationlization
Internationlization
Internationlization
Internationlization

Mais conteúdo relacionado

Mais procurados

The D Programming Language - Why I love it!
The D Programming Language - Why I love it!The D Programming Language - Why I love it!
The D Programming Language - Why I love it!ryutenchi
 
Drupal 8 customized checkout system
Drupal 8 customized checkout systemDrupal 8 customized checkout system
Drupal 8 customized checkout systemAhmad Hassan
 
Controlled Natural Language rendering of Copyright Ontology licenses
Controlled Natural Language rendering of Copyright Ontology licensesControlled Natural Language rendering of Copyright Ontology licenses
Controlled Natural Language rendering of Copyright Ontology licensesRoberto García
 
c# usage,applications and advantages
c# usage,applications and advantages c# usage,applications and advantages
c# usage,applications and advantages mohamed drahem
 

Mais procurados (6)

D programming language
D programming languageD programming language
D programming language
 
The D Programming Language - Why I love it!
The D Programming Language - Why I love it!The D Programming Language - Why I love it!
The D Programming Language - Why I love it!
 
Drupal 8 customized checkout system
Drupal 8 customized checkout systemDrupal 8 customized checkout system
Drupal 8 customized checkout system
 
Drupal7 multilingual
Drupal7 multilingualDrupal7 multilingual
Drupal7 multilingual
 
Controlled Natural Language rendering of Copyright Ontology licenses
Controlled Natural Language rendering of Copyright Ontology licensesControlled Natural Language rendering of Copyright Ontology licenses
Controlled Natural Language rendering of Copyright Ontology licenses
 
c# usage,applications and advantages
c# usage,applications and advantages c# usage,applications and advantages
c# usage,applications and advantages
 

Destaque

Books of jeu and the untitled text in the bruce codex schmidt mac dermot part iv
Books of jeu and the untitled text in the bruce codex schmidt mac dermot part ivBooks of jeu and the untitled text in the bruce codex schmidt mac dermot part iv
Books of jeu and the untitled text in the bruce codex schmidt mac dermot part ivMarcela D'Amico
 
(Bukan) Kapsel IP; Alumni IP Unpad di NGO
(Bukan) Kapsel IP; Alumni IP Unpad di NGO(Bukan) Kapsel IP; Alumni IP Unpad di NGO
(Bukan) Kapsel IP; Alumni IP Unpad di NGOZainal Muttaqin
 
12 reasons why social media is non negotiable
12 reasons why social media is non negotiable12 reasons why social media is non negotiable
12 reasons why social media is non negotiableStr8talk Social Media
 
3 statements and operators
3   statements and operators3   statements and operators
3 statements and operatorsTuan Ngo
 
10 fa it_security-1
10 fa it_security-110 fa it_security-1
10 fa it_security-1adiloki
 
Identifying Volume.2012
Identifying Volume.2012Identifying Volume.2012
Identifying Volume.2012jmori1
 
IM Club: Do You Trust Social Media Automation?
IM Club: Do You Trust Social Media Automation?IM Club: Do You Trust Social Media Automation?
IM Club: Do You Trust Social Media Automation?Rather Inventive
 
Electrons and Chemical Bonding 2012 Day 2
Electrons and Chemical Bonding 2012 Day 2Electrons and Chemical Bonding 2012 Day 2
Electrons and Chemical Bonding 2012 Day 2jmori1
 
Donor Relationship Management
Donor Relationship Management Donor Relationship Management
Donor Relationship Management Yellow Umbrella
 
8 C's for Nagpur’s Path to being a Global City by Akash Bhavsar_Skyquest_27-1...
8 C's for Nagpur’s Path to being a Global City by Akash Bhavsar_Skyquest_27-1...8 C's for Nagpur’s Path to being a Global City by Akash Bhavsar_Skyquest_27-1...
8 C's for Nagpur’s Path to being a Global City by Akash Bhavsar_Skyquest_27-1...Akash Bhavsar
 
Eb86 b03f 666d-4a8d-90fda1142cd29dae
Eb86 b03f 666d-4a8d-90fda1142cd29daeEb86 b03f 666d-4a8d-90fda1142cd29dae
Eb86 b03f 666d-4a8d-90fda1142cd29daeCarlos Carvalho
 

Destaque (20)

Evaluation of final images pp
Evaluation of final images ppEvaluation of final images pp
Evaluation of final images pp
 
Ch03 cont.
Ch03 cont.Ch03 cont.
Ch03 cont.
 
Chemistry ace
Chemistry aceChemistry ace
Chemistry ace
 
Production log
Production logProduction log
Production log
 
Books of jeu and the untitled text in the bruce codex schmidt mac dermot part iv
Books of jeu and the untitled text in the bruce codex schmidt mac dermot part ivBooks of jeu and the untitled text in the bruce codex schmidt mac dermot part iv
Books of jeu and the untitled text in the bruce codex schmidt mac dermot part iv
 
Flash2HTML Convertions #fbm2012
Flash2HTML Convertions #fbm2012Flash2HTML Convertions #fbm2012
Flash2HTML Convertions #fbm2012
 
(Bukan) Kapsel IP; Alumni IP Unpad di NGO
(Bukan) Kapsel IP; Alumni IP Unpad di NGO(Bukan) Kapsel IP; Alumni IP Unpad di NGO
(Bukan) Kapsel IP; Alumni IP Unpad di NGO
 
12 reasons why social media is non negotiable
12 reasons why social media is non negotiable12 reasons why social media is non negotiable
12 reasons why social media is non negotiable
 
3 statements and operators
3   statements and operators3   statements and operators
3 statements and operators
 
10 fa it_security-1
10 fa it_security-110 fa it_security-1
10 fa it_security-1
 
Il mattino
Il mattinoIl mattino
Il mattino
 
Identifying Volume.2012
Identifying Volume.2012Identifying Volume.2012
Identifying Volume.2012
 
IM Club: Do You Trust Social Media Automation?
IM Club: Do You Trust Social Media Automation?IM Club: Do You Trust Social Media Automation?
IM Club: Do You Trust Social Media Automation?
 
Bs work
Bs workBs work
Bs work
 
Electrons and Chemical Bonding 2012 Day 2
Electrons and Chemical Bonding 2012 Day 2Electrons and Chemical Bonding 2012 Day 2
Electrons and Chemical Bonding 2012 Day 2
 
Donor Relationship Management
Donor Relationship Management Donor Relationship Management
Donor Relationship Management
 
8 C's for Nagpur’s Path to being a Global City by Akash Bhavsar_Skyquest_27-1...
8 C's for Nagpur’s Path to being a Global City by Akash Bhavsar_Skyquest_27-1...8 C's for Nagpur’s Path to being a Global City by Akash Bhavsar_Skyquest_27-1...
8 C's for Nagpur’s Path to being a Global City by Akash Bhavsar_Skyquest_27-1...
 
Eb86 b03f 666d-4a8d-90fda1142cd29dae
Eb86 b03f 666d-4a8d-90fda1142cd29daeEb86 b03f 666d-4a8d-90fda1142cd29dae
Eb86 b03f 666d-4a8d-90fda1142cd29dae
 
Question 2
Question 2Question 2
Question 2
 
소셜의 이해
소셜의 이해소셜의 이해
소셜의 이해
 

Semelhante a Internationlization

Software Internationalization Crash Course
Software Internationalization Crash CourseSoftware Internationalization Crash Course
Software Internationalization Crash CourseWill Iverson
 
Chinese Minority Language Support in OpenOffice.org
Chinese Minority Language Support in OpenOffice.orgChinese Minority Language Support in OpenOffice.org
Chinese Minority Language Support in OpenOffice.orgAlexandro Colorado
 
Session 8 : internationalization - Giáo trình Bách Khoa Aptech
Session 8 : internationalization  - Giáo trình Bách Khoa AptechSession 8 : internationalization  - Giáo trình Bách Khoa Aptech
Session 8 : internationalization - Giáo trình Bách Khoa AptechMasterCode.vn
 
Localization (l10n) - The Process
Localization (l10n) - The ProcessLocalization (l10n) - The Process
Localization (l10n) - The ProcessSundeep Anand
 
Microsoft .NET Development Platform Internationalization
Microsoft .NET Development Platform InternationalizationMicrosoft .NET Development Platform Internationalization
Microsoft .NET Development Platform InternationalizationRishi Kothari
 
Affordable and efficient multi platform localisation. case study
Affordable and efficient multi platform localisation. case studyAffordable and efficient multi platform localisation. case study
Affordable and efficient multi platform localisation. case studyVolodymyr Shyrochuk
 
Net framework
Net frameworkNet framework
Net frameworkjhsri
 
Translating software with SDL Passolo
Translating software with SDL PassoloTranslating software with SDL Passolo
Translating software with SDL PassoloSDL Trados
 
Introduction to SDL Passolo
Introduction to SDL PassoloIntroduction to SDL Passolo
Introduction to SDL PassoloAnnie Markova
 
Multilingual Content in Drupal 7 & 8 at DrupalCon Munich
Multilingual Content in Drupal 7 & 8 at DrupalCon MunichMultilingual Content in Drupal 7 & 8 at DrupalCon Munich
Multilingual Content in Drupal 7 & 8 at DrupalCon MunichSuzanne Dergacheva
 
The Good, the Bad, and the Ugly: What Happened to Unicode and PHP 6
The Good, the Bad, and the Ugly: What Happened to Unicode and PHP 6The Good, the Bad, and the Ugly: What Happened to Unicode and PHP 6
The Good, the Bad, and the Ugly: What Happened to Unicode and PHP 6Andrei Zmievski
 

Semelhante a Internationlization (20)

ColdBox i18N
ColdBox i18N ColdBox i18N
ColdBox i18N
 
Internationalization
InternationalizationInternationalization
Internationalization
 
Software Internationalization Crash Course
Software Internationalization Crash CourseSoftware Internationalization Crash Course
Software Internationalization Crash Course
 
Chinese Minority Language Support in OpenOffice.org
Chinese Minority Language Support in OpenOffice.orgChinese Minority Language Support in OpenOffice.org
Chinese Minority Language Support in OpenOffice.org
 
Session 8 : internationalization - Giáo trình Bách Khoa Aptech
Session 8 : internationalization  - Giáo trình Bách Khoa AptechSession 8 : internationalization  - Giáo trình Bách Khoa Aptech
Session 8 : internationalization - Giáo trình Bách Khoa Aptech
 
Unicode & PHP6
Unicode & PHP6Unicode & PHP6
Unicode & PHP6
 
Lecture # 1
Lecture # 1Lecture # 1
Lecture # 1
 
Localization (l10n) - The Process
Localization (l10n) - The ProcessLocalization (l10n) - The Process
Localization (l10n) - The Process
 
Microsoft .NET Development Platform Internationalization
Microsoft .NET Development Platform InternationalizationMicrosoft .NET Development Platform Internationalization
Microsoft .NET Development Platform Internationalization
 
Affordable and efficient multi platform localisation. case study
Affordable and efficient multi platform localisation. case studyAffordable and efficient multi platform localisation. case study
Affordable and efficient multi platform localisation. case study
 
Net framework
Net frameworkNet framework
Net framework
 
Localization feature of ue4
Localization feature of ue4Localization feature of ue4
Localization feature of ue4
 
Drupal entity translation
Drupal entity translationDrupal entity translation
Drupal entity translation
 
Synapse india reviews sharing asp.net
Synapse india reviews sharing  asp.netSynapse india reviews sharing  asp.net
Synapse india reviews sharing asp.net
 
C Course Material0209
C Course Material0209C Course Material0209
C Course Material0209
 
Translating software with SDL Passolo
Translating software with SDL PassoloTranslating software with SDL Passolo
Translating software with SDL Passolo
 
Introduction to SDL Passolo
Introduction to SDL PassoloIntroduction to SDL Passolo
Introduction to SDL Passolo
 
Multilingual Content in Drupal 7 & 8 at DrupalCon Munich
Multilingual Content in Drupal 7 & 8 at DrupalCon MunichMultilingual Content in Drupal 7 & 8 at DrupalCon Munich
Multilingual Content in Drupal 7 & 8 at DrupalCon Munich
 
The Good, the Bad, and the Ugly: What Happened to Unicode and PHP 6
The Good, the Bad, and the Ugly: What Happened to Unicode and PHP 6The Good, the Bad, and the Ugly: What Happened to Unicode and PHP 6
The Good, the Bad, and the Ugly: What Happened to Unicode and PHP 6
 
Tml for Objective C
Tml for Objective CTml for Objective C
Tml for Objective C
 

Mais de Tuan Ngo

Introduction of cg program for portal 20120424 en
Introduction of cg program for portal 20120424 enIntroduction of cg program for portal 20120424 en
Introduction of cg program for portal 20120424 enTuan Ngo
 
Net framework
Net frameworkNet framework
Net frameworkTuan Ngo
 
15 anonymous methods, partial types and nullable types
15   anonymous methods, partial types and nullable types15   anonymous methods, partial types and nullable types
15 anonymous methods, partial types and nullable typesTuan Ngo
 
14 generics and iterators
14   generics and iterators14   generics and iterators
14 generics and iteratorsTuan Ngo
 
13 collections
13   collections13   collections
13 collectionsTuan Ngo
 
11 exception handling
11   exception handling11   exception handling
11 exception handlingTuan Ngo
 
12 events and delegates
12   events and delegates12   events and delegates
12 events and delegatesTuan Ngo
 
9 properties & indexers
9   properties & indexers9   properties & indexers
9 properties & indexersTuan Ngo
 
10 namespace
10  namespace10  namespace
10 namespaceTuan Ngo
 
8 abstract classes and interfaces
8   abstract classes and interfaces 8   abstract classes and interfaces
8 abstract classes and interfaces Tuan Ngo
 
7 inheritance and polymorphism
7   inheritance and polymorphism7   inheritance and polymorphism
7 inheritance and polymorphismTuan Ngo
 
6 class and methods
6    class and methods6    class and methods
6 class and methodsTuan Ngo
 
4 c# programming constructs
4   c# programming constructs4   c# programming constructs
4 c# programming constructsTuan Ngo
 
1 get started with c#
1   get started with c#1   get started with c#
1 get started with c#Tuan Ngo
 
2 variables and data types
2   variables and data types2   variables and data types
2 variables and data typesTuan Ngo
 

Mais de Tuan Ngo (20)

Introduction of cg program for portal 20120424 en
Introduction of cg program for portal 20120424 enIntroduction of cg program for portal 20120424 en
Introduction of cg program for portal 20120424 en
 
Net framework
Net frameworkNet framework
Net framework
 
15 anonymous methods, partial types and nullable types
15   anonymous methods, partial types and nullable types15   anonymous methods, partial types and nullable types
15 anonymous methods, partial types and nullable types
 
14 generics and iterators
14   generics and iterators14   generics and iterators
14 generics and iterators
 
13 collections
13   collections13   collections
13 collections
 
11 exception handling
11   exception handling11   exception handling
11 exception handling
 
12 events and delegates
12   events and delegates12   events and delegates
12 events and delegates
 
9 properties & indexers
9   properties & indexers9   properties & indexers
9 properties & indexers
 
10 namespace
10  namespace10  namespace
10 namespace
 
8 abstract classes and interfaces
8   abstract classes and interfaces 8   abstract classes and interfaces
8 abstract classes and interfaces
 
7 inheritance and polymorphism
7   inheritance and polymorphism7   inheritance and polymorphism
7 inheritance and polymorphism
 
5 arrays
5   arrays5   arrays
5 arrays
 
6 class and methods
6    class and methods6    class and methods
6 class and methods
 
4 c# programming constructs
4   c# programming constructs4   c# programming constructs
4 c# programming constructs
 
1 get started with c#
1   get started with c#1   get started with c#
1 get started with c#
 
2 variables and data types
2   variables and data types2   variables and data types
2 variables and data types
 
Jdbc 7
Jdbc 7Jdbc 7
Jdbc 7
 
Jdbc 6
Jdbc 6Jdbc 6
Jdbc 6
 
Jdbc 3
Jdbc 3Jdbc 3
Jdbc 3
 
Jdbc 2
Jdbc 2Jdbc 2
Jdbc 2
 

Internationlization