1 / 26

Globalization Development Kit Building Global Internet Application

Session id: 40127. Globalization Development Kit Building Global Internet Application. Simon Law Product Manager Oracle Corporation. Globalization Development Kit. What is the GDK ?

fauna
Download Presentation

Globalization Development Kit Building Global Internet Application

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. Session id: 40127 Globalization Development KitBuilding Global Internet Application Simon LawProduct Manager Oracle Corporation

  2. Globalization Development Kit • What is the GDK ? • A toolkit that simplifies the development process, and reduces the cost of developing Internet applications that will be used to support a global environment • The need for the GDK • The complexity associated with the different globalization concepts, can make building and supporting a global Internet application quite a challenge for many companies.

  3. Internet and Oracle Services • Oracle’s Globalization Platform for J2EE • Internet Services • provides the development support for the J2EE middle tier to hide the complexity of synchronizing globalization operations across tiers • Oracle Services • provides development support in the middle tier to provide consistent globalization operations as provided in the database server

  4. Oracle Unicode Database Monolingual Model Application Server A ISO-8859-1 MonolingualEnglish ApplicationServerInstance1 English Locale ApplicationServer Instance2 Shift- JIS MonolingualJapanese Japanese Locale Application Server B ApplicationServer Instance TIS- 620 MonolingualJapanese Thai Locale

  5. Oracle Unicode Database Multilingual Model ISO-8859-1 English Locale Application Server Shift- JIS ApplicationServer Instance MultilingualEnglish, Japanese, Thai Japanese Locale TIS- 620 Thai Locale

  6. Developing a Global Internet Application • Determining the user locale preference and synchronizing it with the application • Specifying the character set for the input and output of web content • Staging and managing translated content • Getting consistent globalization operations between the application and the database

  7. Supported Locale Sources Locale Type Source HTTP language preference Browser User Input Locale Menu Locale preference from database Database LDAP locale preference LDAP Application default locale GDK

  8. GDK Application configuration file • Dictates the globalization behaviors and the properties of the application • One application configuration file per J2EE application • Alter the globalization behavior in the application, without the need to change the programs and to recompile them

  9. Defining the locale sources and the application locales • Application configuration file: gdkapp.xml <locale-source> oracle.i18n.servlet.localeldap.LDAPInetOrgPerson </locale-source> <locale-source> oracle.i18n.servlet.localesource.HTTPAcceptLanguage </locale-source> <application-locales> <locale>de-*</locale> <locale>ja</locale> <locale default="yes">en-US</locale> </application-locales>

  10. Detecting the Locale • Locale loc = request.getLocale( ); • Localizer localizer = ServletHelper.getLocalizerInstance(request); The GDK Localizer is an all-in-one globalization object that encapsulates comprehensive globalization attributes and methods

  11. Character set for the input and output of web content • A single local character set dedicated to the whole application • Use Unicode UTF-8 for all contents regardless of the language • Use the native character set for each language

  12. ISO locale NLS_LANGUAGE NLS_TERRITORY IANA Character Set ar-SA ARABIC SAUDI ARABIA WINDOWS-1256 de-DE GERMAN GERMANY WINDOWS-1252 en-US AMERICAN AMERICA WINDOWS-1252 en-GB ENGLISH UNITED KINGDOM WINDOWS-1252 el GREEK GREECE WINDOWS-1253 es-ES SPANISH SPAIN WINDOWS-1252 fr FRENCH FRANCE WINDOWS-1252 fr-CA CANADIAN FRENCH CANADA WINDOWS-1252 iw HEBREW ISRAEL WINDOWS-1255 ko KOREAN KOREA EUC-KR ja JAPANESE JAPAN SHIFT_JIS it ITALIAN ITALY WINDOWS-1252 pt PORTUGUESE PORTUGAL WINDOWS-1252 pt-BR BRAZILIAN PORTUGUESE BRAZIL WINDOWS-1252 tr TURKISH TURKEY WINDOWS-1254 nl DUTCH THE NETHERLANDS WINDOWS-1252 zh SIMPLIFIED CHINESE CHINA GBK zh-TW TRADITIONAL CHINESE TAIWAN BIG5 AUTO-CHARSET

  13. Handling the character set • Specify the Character set in the application configuration file. <page-charset>UTF-8</page-charset> <page-charset>AUTO-CHARSET</page-charset> <locale-charset-maps> <locale-charset> <locale>ja</locale><charset>EUC-JP</charset> </locale-charset> </locale-charset-maps>

  14. Managing translated content • Static Files – HTML, GIF, XML etc. • French version of index.html > index_fr.html or fr/index.html • ServletHelper.rewriteURL ( ) method rewrites a URL based on the rules specified in the application configuration file. <img src="<%=“ServletHelper.rewriteURL("logo.jpg",request)%>">

  15. Managing translated content • Strings in the JSP / JAVA Servlets • Externalized into Java ResourceBundle REPLACE<% Locale user_locale=request.getLocale(); ResourceBundle rb=ResourceBundle.getBundle("resource",user_locale); %> <%= rb.getString("Welcome") %> WITH % Localizer.getMessage ("Welcome") %>

  16. Globalization compatibility between Java & Oracle • No Globalization Standard • Lengthy lead time for Java to add new locale support • The GDK extends Oracle Globalization Support features to the application server • Handles the compatibility between the Java and the Oracle database server seamlessly

  17. AR8ADOS710 AR8ADOS710T AR8ADOS720 AR8ADOS720T AR8APTEC715 APTEC715T AR8ASMO708PLUS AR8ASMO8X AR8HPARABIC8T AR8MUSSAD768 AR8MUSSAD768T AR8NAFITHA711 AR8NAFITHA711T AR8NAFITHA721 AR8NAFITHA721T AR8SAKHR706 AR8SAKHR707 AR8SAKHR707T AR8XBASIC BG8MSWIN BG8PC437S BN8BSCII CE8BS2000 CEL8ISO8859P14 CH7DEC CL8BS2000 CL8EBCDIC1158 CL8EBCDIC1158R CL8ISOIR111 JA16DBCS JA16DBCSFIXED JA16EUCFIXED JA16MACSJIS JA16SJISFIXED KO16DBCS KO16DBCSFIXED KO16KSC5601FIXED KO16KSCCS LA8ISO6937 LA8PASSPORT LT8PC772 LT8PC774 LV8PC1117 LV8PC8LR LV8RST104090 N7SIEMENS9780X NDK7DEC NE8ISO8859P10 NL7DEC S7DEC S7SIEMENS9780X S8BS2000 SF7ASCII SF7DEC TR7DEC TR8DEC US16TSTFIXED US8BS2000 CL8KOI8U D7DEC D7SIEMENS9780X D8BS2000 DK7SIEMENS9780X DK8BS2000 E7DEC E7SIEMENS9780X E8BS2000 EE8BS2000 EEC8EUROASCI EEC8EUROPA3 EL8DEC EL8GCOS7 EL8MACGREEK EL8MACGREEKS EL8PC437S EL8PC851 ET8MSWIN923 F7DEC F7SIEMENS9780X F8BS2000 HU8ABMOD HU8CWI2 I7DEC I7SIEMENS9780X IN8ISCII IW7IS960 IW8EBCDIC1086 US8ICL UTFE VN8VN3 WE16DECTST WE16DECTST2 WE8BS2000 WE8BS2000E WE8BS2000L5 WE8DEC WE8DECTST WE8DG WE8EBCDIC924 WE8GCOS7 WE8HP WE8ICL WE8ISOICLUK WE8NCR4970 WE8NEXTSTEP WE8ROMAN8 YUG7ASCII ZHS16CGB231280FIXED ZHS16DBCS ZHS16DBCSFIXED ZHS16GBKFIXED ZHS16MACCGB231280 ZHT16BIG5FIXED ZHT16CCDC ZHT16DBCS ZHT16DBCSFIXED ZHT16DBT ZHT32EUCFIXED ZHT32EUCTST ZHT32SOPS ZHT32TRIS ZHT32TRISFIXED ARABIC ARABIC ARABIC_ABJ_MATCH ARABIC_ABJ_SORT ARABIC_MATCH SPANISH SPANISH SPANISH_M XSPANISH GENERIC_M SIMPLIFIED CHINESE SCHINESE_PINYIN_M SCHINESE_RADICAL_M SCHINESE_STROKE_M GBK TRADITIONAL CHINESE TCHINESE_RADICAL_M TCHINESE_STROKE_M BIG5 HKSCS Not available in Java 1.4.2 • Character sets • Languages • Territories • Linguistic Sorts BANGLADESH CYPRUS DJIBOUTI INDONESIA KAZAKHSTAN MALAYSIA MAURITANIA SINGAPORE SOMALIA UZBEKISTAN VIETNAM ASSAMESE BANGLA BENGALI GERMAN DIN GUJARATI INDONESIAN KANNADA LATIN AMERICAN SPANISH MALAY MALAYALAM MARATHI ORIYA PUNJABI TAMIL TELUGU VIETNAMESE

  18. Oracle Services • Oracle Locale Mapping • Oracle Locale Information • Oracle Character Set Conversion • Oracle Date, Number, and Monetary Formatting

  19. Oracle Services cont. • Oracle Binary and Linguistic Sorts including _CI + _AI • Oracle Translated locale and time zone names • Oracle Language and Character Set detection Technology to guess the character set encoding and language of a given byte string or document

  20. D E M O N S T R A T I O N Oracle Store

  21. Summary • GDK is Oracle’s globalization platform for the middle-tier • Bring Oracle Globalization features to the J2EE • Reduce Application Development Complexity • Increase Developer Productivity • Decrease Deployment Times • Application Consolidation

  22. Next Steps…. • Recommended demos and/or hands-on labs • OW Hands on Session & DEMOgrounds • Globalization Support related questions • Visit the DEMOgrounds for more information. • Relevant web sites to visit for more information • http://otn.oracle.com/tech/globalization • GDK – 10g and 9i availability

  23. Reminder – please complete the OracleWorld online session surveyThank you.

  24. Q & Q U E S T I O N S A N S W E R S A

More Related