04940bff475fe2a75095ab5e26dcfbf6.ppt
- Количество слайдов: 26
The Company…. ¨ The Market Leader in Globalization Technology – Pioneers in visual translation environments – Solutions for major platforms & programming languages – 24. 9% owned by Corel Corporation – Sales growing 60+% annually – Currently 10, 000+ customers worldwide – Offices in Ireland USA
Our Product… ¨ Alchemy CATALYST delivers : – Speed : Faster delivery of products to market – Consistency : Automate product revisions with glossary and translation memory tools – Reduced Costs : Reduced QA/Engineering and Translation times using integrated environment Speed Consistency Reduced Costs
Agenda ¨ What is Microsoft. NET ? – NET Framework – Names. Spaces – System. Globalization – Launching a. NET Application ¨ Develop a. NET Application – Multi-Lingual Application – Create code to switch UI language ¨ Localizing a. NET Application – Creating different language Cultures – Re-integrating translations ¨ QA 60 mins
What is Microsoft. NET ? ¨ Microsoft's platform for building, deploying, operating and integrating Web services – Rich XML, standard protocols – Cross-language development – Common language runtime • Common type system for all languages • Rich runtime environment – Rich class libraries (. NET Framework) • Windows Forms for rich, Win 32 applications • Web application platform ASP. NET ¨ Multi-lingual support – Rich API for internationalization features =
. NET Framework ¨. NET Framework – Globalization Namespaces – Culture-sensitive classes – Resource Model ¨ ASP. NET – International Support – Localization Options ¨ Visual. Studio. NET – Unicode Development Environment – XML – Unified IDE • VB, C#, C++
. NET Framework ¨ 100% Unicode internally – Supports UTF-8 and UTF 16 encoding schemes ¨ Consistent operations – Windows XP, Windows 2000, NT 4. 0, 98, 95 etc. ¨ Supports all NLS (Locale Support) – Collation Tables – String Comparisons – Language Processing (Casing etc. ) – Currency, Date & Time etc.
Globalization Namespaces ¨ Heart of the. NET Framework System I/O Globalization Security Reflection Collections Threading Net Diagnostics Resources Serialization Text Service. Process ¨ System. Globalization – Core NLS services (Date/Time, Currency, String management etc. ) ¨ System. Resource – Multi-Lingual Resource Services ¨ System. Text – Core character conversion Services. (To/From Unicode)
System. Globalization ¨ Culture-aware String Services – String Management • Casing, Comparison, Collation, • Segmentation, Enumeration etc. – Date/Time Formatting • dd/mm/yy, yy/mm/dd – Numeric Formatting • 12, 000 and 12. 000 – Calendar Support • Gregorian, non-gregorian ¨ Our focus today : – Culture. Info Class Locales
System. Globalization. Culture. Info ¨ Information about specific cultures (Locales) Culture. Info Current. UICulture – Current. Culture • String casing and comparison • Collation • Numeric Formatting ¨ Culture Names – RFC 1766 Standard • <Language. Code>-<Region. Code> de-DE de-CH de-AT Thread. Current. Culture = new Culture. Info(“es-ES");
System. Globalization. Culture. Info ¨ Setting the UI of a. NET application Thread. Current. UICulture = new Culture. Info("fr"); ¨ If not specified, . NET framework sets it for you ! – Get. User. Default. UILanguage – (ie UI Language of the OS) System. Globalization Culture. Info Current. UICulture Current. Culture
Launching. NET Applications Example 1 Culture. Info Current. UICulture Current. Culture Set UI Language to French, using Regional French settings for France ! using System. Globalization; Thread. Current. Culture = new Culture. Info(“fr-FR"); fr-FR Language Locale
Launching. NET Applications Example 2 Culture. Info Current. UICulture Current. Culture Set UI Language to French, using Regional French settings for Canada ! using System. Globalization; Thread. Current. Culture = new Culture. Info(“fr-CA"); fr-CA Language Locale
Launching. NET Applications Example 3 Culture. Info Current. UICulture Current. Culture Set UI Language to English, using Regional English settings for Canada ! using System. Globalization; Thread. Current. Culture = new Culture. Info(“en-CA"); en-CA Language Locale
Launching. NET Applications Application Directory Culture. Info Current. UICulture Root. NET Application de Current. Culture de-AT de-DE RFC 1766 Standard de-LU • Directory Structure • Filename(s) de-CH ja
Launching. NET Applications Application Directory Culture. Info Current. UICulture Root. NET Application de Current. Culture de-AT de-DE Thread. Current UICulture = new Culture. Info(“ja"); de-LU de-CH ja
Launching. NET Applications Application Directory Culture. Info Current. UICulture Root. NET Application de Current. Culture de-AT de-DE Thread. Current UICulture = new Culture. Info(“de"); de-LU de-CH ja
Launching. NET Applications Application Directory Culture. Info Current. UICulture Root. NET Application de Current. Culture de-AT de-DE Thread. Current Culture = new Culture. Info(“de. CH"); de-LU de-CH ja
Launching. NET Applications Resource Fallback Mechanism 3 Culture. Info Current. UICulture Current. Culture ¨ Root. NET Application de 2 de-AT Fallback mechanism used to locate appropriate resources – – Attempt to load de-CH resource assemble If not available, load de assembly If not available, load default application resources Else raise an exception! exception de-DE de-LU de-CH 1 ja
Building. NET Applications Compilation Process . resx file ¨ Resources are defined in XML documents . resource file – RESX Files ¨ Filenames are significant – Main 1. resx – Main 1. fr. resx – Main 1. de. resx ¨ Satellite Assemblies – For each language variant . resource. dll file
Building. NET Applications RESX Structure Main 1. resx Main 1. fr. resx ¨ Resources are defined in XML documents – RESX Files ¨ Filenames are significant – Main 1. resx – Main 1. fr. resx – Main 1. de. resx ¨ Satellite Assemblies – For each language variant
Building. NET Applications RESX Structure Main 1. resx Main 1. fr. resx ¨ Resources are defined in XML documents – RESX Files ¨ Filenames are significant – Main 1. resx – Main 1. fr. resx – Main 1. de. resx ¨ Satellite Assemblies – For each language variant Main 1. de. resx
Building. NET Applications Satellite Assemblies Main 1. resx Main 1. fr. resx Main 1. de. resx ¨ Resources are defined in XML documents Application Directory – RESX Files ¨ Filenames are significant – Main 1. resx – Main 1. fr. resx – Main 1. de. resx ¨ Satellite Assemblies – For each language variant Root. NET Application fr de
Building. NET Applications Our First. NET Application Simple. NET Application • En, Fr, De Languages • Menu, Dialog, Strings • Rich Text Editor ¨ Resources are defined in XML documents – RESX Files ¨ Satellite Assemblies – For each language variant ¨ Filenames are significant – Main 1. resx – Main 1. fr. resx – Main 1. de. resx
Translating. NET Applications Application Directory Structure Lrc. App. Exe de fr ¨ Satellite Assemblies ¨ Translation Process – Insertion – Translation – Extraction ¨ Application Rebuild – Microsoft C# compiler en Localization Process –. resx
Questions
04940bff475fe2a75095ab5e26dcfbf6.ppt