SlideShare una empresa de Scribd logo
1 de 13
 Localization is the process of customizing

your application for a given culture and
locale.


Globalization is the process of designing
and developing applications for multiple
cultures.








Languages depend upon the geographical
location.
For eg:fr is the code for French language.
fr-FR means French language in France.
So, fr specifies only the language whereas fr-FR
is the locale.
Similarly, fr-CA defines another locale implying
French language and culture in Canada.
If we use only fr, it implies a neutral culture (i.e.,
location neutral).
Culture & UICulture
•UICulture: gets/sets the user interface culture for the
currently executing thread.
•This property helps the runtime to load the resource
strings from a specific resource file (which we will see
later).
•This property can take neutral cultures as well as
locales. For example:
Thread.CurrentThread.CurrentUICulture = new
CultureInfo(“fr”);
Or,
Thread.CurrentThread.CurrentUICulture = new
CultureInfo(“fr-CA”);
• Culture: gets/sets the region specific culture
and formats of currency, dates etc.
•This needs language as well as location
(locale).

Thread.CurrentThread.CurrentCulture = new
CultureInfo(“fr-CA”); //correct as we have given
locale
Thread.CurrentThread.CurrentCulture = new
CultureInfo(“fr”); //wrong, will not work
Switching Locale
•Use the browser settings:
In IE, the user can change the culture by going
to
Internet Options->General->Languages.
For this to work, we need to set both the Culture and
the UICulture to auto and enableClientBasedCulture
= true as:
<GLOBALIZATION culture="auto" uiculture="auto"
enableClientBasedCulture="”true”" />
•User specified settings:
We can give an option for the user to
specify and change the culture and the language at
Resource File
•A resource file is a XML file that
contains the strings that we want to

a. Translate into different languages.
b. Can be updated dynamically so
that user themselves can modify
values in resource files once the
application is deployed on the
server without re-compiling the
entire application itself.
•The resource file contains key /
value pairs.
•Each pair is an individual resource.
Local resource is specific to a single web
page and used for providing versions of a
Web page in different languages.
 resources must be stored in
App_LocalResources sub folder.

Global resource can be read from any
page or code that is in the application.
 Global resource must be stored in
App_GlobalResources sub folder.



LocalResources folder contains resources
which apply for one page or user control
only.



While resources in GlobalResources are
accessible in the whole application.
 Design a fairly simple webpage with a few
label controls and a button control
 Tools

Generate Local Resource

This will create a corresponding
Default.aspx.resx resource file for your
webpage
in the App_LocalResources folder.
 Note: Controls removed from the page will still
show up in the resource file.
Make sure to clean the resource file if you have
•The attribute meta:resourcekey was added to
your controls.
•The attribute value corresponds to the resource
file control names
(e.g. meta:resourcekey="Label1Resource1"
corresponds to "Label1Resource1"
and all its properties in the Default.aspx.resx file).
<%@ Page Language="VB"
AutoEventWireup="false"
CodeFile="Default.aspx.vb" Inherits="_Default"
culture="es-MX"
meta:resourcekey="PageResource1"
uiculture="es" %>
Localization and globalization in c#

Más contenido relacionado

La actualidad más candente

Translation theory before the 20th century
Translation theory before the 20th centuryTranslation theory before the 20th century
Translation theory before the 20th centuryAyesha Mir
 
Functional theories
Functional theoriesFunctional theories
Functional theoriesLy Berns
 
Interlanguage hypothesis
Interlanguage hypothesisInterlanguage hypothesis
Interlanguage hypothesisIndira Safadi
 
MATERIALS USED IN ENGLISH FOR SPECIAL PURPOSES (ESP)
MATERIALS USED IN ENGLISH FOR SPECIAL PURPOSES (ESP)MATERIALS USED IN ENGLISH FOR SPECIAL PURPOSES (ESP)
MATERIALS USED IN ENGLISH FOR SPECIAL PURPOSES (ESP)Lord Mark Jayson Ilarde
 
Kinds of translation
Kinds of translationKinds of translation
Kinds of translationZeshan Awan
 
pragmatics speech act theory promises, felicity conditions
pragmatics speech act theory promises, felicity conditionspragmatics speech act theory promises, felicity conditions
pragmatics speech act theory promises, felicity conditionsSajid Ali
 
Language Attitude by Karahan F
Language Attitude by Karahan FLanguage Attitude by Karahan F
Language Attitude by Karahan FSuhana Ahmad
 
Language _linguistics
Language  _linguisticsLanguage  _linguistics
Language _linguisticshasv31
 
Literary approach to translation theory
Literary  approach to translation theoryLiterary  approach to translation theory
Literary approach to translation theoryAbdullah Saleem
 
Translation 1st lecture
Translation 1st lectureTranslation 1st lecture
Translation 1st lectureBahra Salah
 
Globalization and translation
Globalization and translationGlobalization and translation
Globalization and translationPankaj Dwivedi
 
Foreignization and Domestication-.pptx
Foreignization and Domestication-.pptxForeignization and Domestication-.pptx
Foreignization and Domestication-.pptxamjadgulabro
 
REGISTER AND STYLE
REGISTER AND STYLEREGISTER AND STYLE
REGISTER AND STYLEFatima Gul
 

La actualidad más candente (20)

Translation theory before the 20th century
Translation theory before the 20th centuryTranslation theory before the 20th century
Translation theory before the 20th century
 
Functional theories
Functional theoriesFunctional theories
Functional theories
 
corpus linguistics.pptx
corpus linguistics.pptxcorpus linguistics.pptx
corpus linguistics.pptx
 
Interlanguage hypothesis
Interlanguage hypothesisInterlanguage hypothesis
Interlanguage hypothesis
 
Schema theory
Schema theorySchema theory
Schema theory
 
definition of translation
definition of translationdefinition of translation
definition of translation
 
MATERIALS USED IN ENGLISH FOR SPECIAL PURPOSES (ESP)
MATERIALS USED IN ENGLISH FOR SPECIAL PURPOSES (ESP)MATERIALS USED IN ENGLISH FOR SPECIAL PURPOSES (ESP)
MATERIALS USED IN ENGLISH FOR SPECIAL PURPOSES (ESP)
 
Kinds of translation
Kinds of translationKinds of translation
Kinds of translation
 
pragmatics speech act theory promises, felicity conditions
pragmatics speech act theory promises, felicity conditionspragmatics speech act theory promises, felicity conditions
pragmatics speech act theory promises, felicity conditions
 
Language Attitude by Karahan F
Language Attitude by Karahan FLanguage Attitude by Karahan F
Language Attitude by Karahan F
 
Language _linguistics
Language  _linguisticsLanguage  _linguistics
Language _linguistics
 
Literary approach to translation theory
Literary  approach to translation theoryLiterary  approach to translation theory
Literary approach to translation theory
 
Translation 1st lecture
Translation 1st lectureTranslation 1st lecture
Translation 1st lecture
 
Needs Analysis
Needs AnalysisNeeds Analysis
Needs Analysis
 
Globalization and translation
Globalization and translationGlobalization and translation
Globalization and translation
 
Foreignization and Domestication-.pptx
Foreignization and Domestication-.pptxForeignization and Domestication-.pptx
Foreignization and Domestication-.pptx
 
Language and Culture
Language and CultureLanguage and Culture
Language and Culture
 
REGISTER AND STYLE
REGISTER AND STYLEREGISTER AND STYLE
REGISTER AND STYLE
 
Speech acts (SLT)
Speech acts (SLT)Speech acts (SLT)
Speech acts (SLT)
 
Language families
Language familiesLanguage families
Language families
 

Destacado

Localization And Branding
Localization And BrandingLocalization And Branding
Localization And BrandingChris Raulf
 
Localization in WSN
Localization in WSNLocalization in WSN
Localization in WSNYara Ali
 
Localization Project Management
Localization Project ManagementLocalization Project Management
Localization Project Managementbarakdanin
 
Localization and contextualization_04162014
Localization and contextualization_04162014Localization and contextualization_04162014
Localization and contextualization_04162014Dods Dodong
 
Localization Project Management
Localization Project ManagementLocalization Project Management
Localization Project ManagementMaria Asnes
 
Translation, Localization And Globalization Zhu Xianchao
Translation, Localization And Globalization Zhu XianchaoTranslation, Localization And Globalization Zhu Xianchao
Translation, Localization And Globalization Zhu Xianchaozhuxianchao
 
Localization & contextualization
Localization & contextualizationLocalization & contextualization
Localization & contextualizationLdPFerndz Bee
 
Localization of MI on ECG
Localization of MI on ECGLocalization of MI on ECG
Localization of MI on ECGNooh Khushal
 

Destacado (9)

Localization And Branding
Localization And BrandingLocalization And Branding
Localization And Branding
 
Localization framework
Localization frameworkLocalization framework
Localization framework
 
Localization in WSN
Localization in WSNLocalization in WSN
Localization in WSN
 
Localization Project Management
Localization Project ManagementLocalization Project Management
Localization Project Management
 
Localization and contextualization_04162014
Localization and contextualization_04162014Localization and contextualization_04162014
Localization and contextualization_04162014
 
Localization Project Management
Localization Project ManagementLocalization Project Management
Localization Project Management
 
Translation, Localization And Globalization Zhu Xianchao
Translation, Localization And Globalization Zhu XianchaoTranslation, Localization And Globalization Zhu Xianchao
Translation, Localization And Globalization Zhu Xianchao
 
Localization & contextualization
Localization & contextualizationLocalization & contextualization
Localization & contextualization
 
Localization of MI on ECG
Localization of MI on ECGLocalization of MI on ECG
Localization of MI on ECG
 

Similar a Localization and globalization in c#

MVP Virtual Conference - Americas 2015 - Cross platform localization for mobi...
MVP Virtual Conference - Americas 2015 - Cross platform localization for mobi...MVP Virtual Conference - Americas 2015 - Cross platform localization for mobi...
MVP Virtual Conference - Americas 2015 - Cross platform localization for mobi...Christopher Miller
 
3. WEB TECHNOLOGIES.pptx B.Pharm sem 2 CAP
3. WEB TECHNOLOGIES.pptx B.Pharm sem 2 CAP3. WEB TECHNOLOGIES.pptx B.Pharm sem 2 CAP
3. WEB TECHNOLOGIES.pptx B.Pharm sem 2 CAPVedika Narvekar
 
Globalization and accessibility
Globalization and accessibilityGlobalization and accessibility
Globalization and accessibilityaspnet123
 
plone.app.multilingual
plone.app.multilingual plone.app.multilingual
plone.app.multilingual Ramon Navarro
 
Introduction to Compilers
Introduction to CompilersIntroduction to Compilers
Introduction to CompilersAkhil Kaushik
 
Localization and Shared Preferences in android
Localization and Shared Preferences in androidLocalization and Shared Preferences in android
Localization and Shared Preferences in androidAly Arman
 
Multi Lingual Websites In Umbraco
Multi Lingual Websites In UmbracoMulti Lingual Websites In Umbraco
Multi Lingual Websites In UmbracoPaul Marden
 
Android application development fundamentals
Android application development fundamentalsAndroid application development fundamentals
Android application development fundamentalsindiangarg
 
2010 06-u maryland-crowd_sourcing-workshop-v2010-06-16-10h44
2010 06-u maryland-crowd_sourcing-workshop-v2010-06-16-10h442010 06-u maryland-crowd_sourcing-workshop-v2010-06-16-10h44
2010 06-u maryland-crowd_sourcing-workshop-v2010-06-16-10h44Alain Désilets
 
Localization (l10n) - The Process
Localization (l10n) - The ProcessLocalization (l10n) - The Process
Localization (l10n) - The ProcessSundeep Anand
 
computer assisted translation programme.pptx
computer assisted translation programme.pptxcomputer assisted translation programme.pptx
computer assisted translation programme.pptxssuser3183f9
 
Big data components - Introduction to Flume, Pig and Sqoop
Big data components - Introduction to Flume, Pig and SqoopBig data components - Introduction to Flume, Pig and Sqoop
Big data components - Introduction to Flume, Pig and SqoopJeyamariappan Guru
 
Preparing an Open Source Documentation Repository for Translations
Preparing an Open Source Documentation Repository for TranslationsPreparing an Open Source Documentation Repository for Translations
Preparing an Open Source Documentation Repository for TranslationsHPCC Systems
 
Run your app on every Windows Phone 8.1 device in the world
Run your app on every Windows Phone 8.1 device in the worldRun your app on every Windows Phone 8.1 device in the world
Run your app on every Windows Phone 8.1 device in the worldbartlannoeye
 

Similar a Localization and globalization in c# (20)

MVP Virtual Conference - Americas 2015 - Cross platform localization for mobi...
MVP Virtual Conference - Americas 2015 - Cross platform localization for mobi...MVP Virtual Conference - Americas 2015 - Cross platform localization for mobi...
MVP Virtual Conference - Americas 2015 - Cross platform localization for mobi...
 
Php packages
Php packagesPhp packages
Php packages
 
3. WEB TECHNOLOGIES.pptx B.Pharm sem 2 CAP
3. WEB TECHNOLOGIES.pptx B.Pharm sem 2 CAP3. WEB TECHNOLOGIES.pptx B.Pharm sem 2 CAP
3. WEB TECHNOLOGIES.pptx B.Pharm sem 2 CAP
 
Globalization and accessibility
Globalization and accessibilityGlobalization and accessibility
Globalization and accessibility
 
plone.app.multilingual
plone.app.multilingual plone.app.multilingual
plone.app.multilingual
 
Asp folders and web configurations
Asp folders and web configurationsAsp folders and web configurations
Asp folders and web configurations
 
Introduction to Compilers
Introduction to CompilersIntroduction to Compilers
Introduction to Compilers
 
Localization and Shared Preferences in android
Localization and Shared Preferences in androidLocalization and Shared Preferences in android
Localization and Shared Preferences in android
 
Multi Lingual Websites In Umbraco
Multi Lingual Websites In UmbracoMulti Lingual Websites In Umbraco
Multi Lingual Websites In Umbraco
 
Android application development fundamentals
Android application development fundamentalsAndroid application development fundamentals
Android application development fundamentals
 
2010 06-u maryland-crowd_sourcing-workshop-v2010-06-16-10h44
2010 06-u maryland-crowd_sourcing-workshop-v2010-06-16-10h442010 06-u maryland-crowd_sourcing-workshop-v2010-06-16-10h44
2010 06-u maryland-crowd_sourcing-workshop-v2010-06-16-10h44
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
 
Localization (l10n) - The Process
Localization (l10n) - The ProcessLocalization (l10n) - The Process
Localization (l10n) - The Process
 
computer assisted translation programme.pptx
computer assisted translation programme.pptxcomputer assisted translation programme.pptx
computer assisted translation programme.pptx
 
methods and resources
methods and resourcesmethods and resources
methods and resources
 
Big data components - Introduction to Flume, Pig and Sqoop
Big data components - Introduction to Flume, Pig and SqoopBig data components - Introduction to Flume, Pig and Sqoop
Big data components - Introduction to Flume, Pig and Sqoop
 
Preparing an Open Source Documentation Repository for Translations
Preparing an Open Source Documentation Repository for TranslationsPreparing an Open Source Documentation Repository for Translations
Preparing an Open Source Documentation Repository for Translations
 
Run your app on every Windows Phone 8.1 device in the world
Run your app on every Windows Phone 8.1 device in the worldRun your app on every Windows Phone 8.1 device in the world
Run your app on every Windows Phone 8.1 device in the world
 
Memory models in c#
Memory models in c#Memory models in c#
Memory models in c#
 
Lecture 10
Lecture 10Lecture 10
Lecture 10
 

Más de PaYal Umraliya

Information systems by checkmate...
Information systems by checkmate...Information systems by checkmate...
Information systems by checkmate...PaYal Umraliya
 
CRUD(IN_UP_DEL) IN JAVA
CRUD(IN_UP_DEL) IN JAVA CRUD(IN_UP_DEL) IN JAVA
CRUD(IN_UP_DEL) IN JAVA PaYal Umraliya
 
MODELS USED IN SOFTWARE DEVELOPMENT
MODELS USED IN SOFTWARE DEVELOPMENTMODELS USED IN SOFTWARE DEVELOPMENT
MODELS USED IN SOFTWARE DEVELOPMENTPaYal Umraliya
 

Más de PaYal Umraliya (6)

Information systems by checkmate...
Information systems by checkmate...Information systems by checkmate...
Information systems by checkmate...
 
CRUD(IN_UP_DEL) IN JAVA
CRUD(IN_UP_DEL) IN JAVA CRUD(IN_UP_DEL) IN JAVA
CRUD(IN_UP_DEL) IN JAVA
 
Introduction to wpf
Introduction to wpfIntroduction to wpf
Introduction to wpf
 
tittanium
tittaniumtittanium
tittanium
 
MODELS USED IN SOFTWARE DEVELOPMENT
MODELS USED IN SOFTWARE DEVELOPMENTMODELS USED IN SOFTWARE DEVELOPMENT
MODELS USED IN SOFTWARE DEVELOPMENT
 
Wsn by checkmate
Wsn by checkmateWsn by checkmate
Wsn by checkmate
 

Último

The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 

Último (20)

The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 

Localization and globalization in c#

  • 1.
  • 2.  Localization is the process of customizing your application for a given culture and locale.  Globalization is the process of designing and developing applications for multiple cultures.
  • 3.       Languages depend upon the geographical location. For eg:fr is the code for French language. fr-FR means French language in France. So, fr specifies only the language whereas fr-FR is the locale. Similarly, fr-CA defines another locale implying French language and culture in Canada. If we use only fr, it implies a neutral culture (i.e., location neutral).
  • 4. Culture & UICulture •UICulture: gets/sets the user interface culture for the currently executing thread. •This property helps the runtime to load the resource strings from a specific resource file (which we will see later). •This property can take neutral cultures as well as locales. For example: Thread.CurrentThread.CurrentUICulture = new CultureInfo(“fr”); Or, Thread.CurrentThread.CurrentUICulture = new CultureInfo(“fr-CA”);
  • 5. • Culture: gets/sets the region specific culture and formats of currency, dates etc. •This needs language as well as location (locale). Thread.CurrentThread.CurrentCulture = new CultureInfo(“fr-CA”); //correct as we have given locale Thread.CurrentThread.CurrentCulture = new CultureInfo(“fr”); //wrong, will not work
  • 6. Switching Locale •Use the browser settings: In IE, the user can change the culture by going to Internet Options->General->Languages. For this to work, we need to set both the Culture and the UICulture to auto and enableClientBasedCulture = true as: <GLOBALIZATION culture="auto" uiculture="auto" enableClientBasedCulture="”true”" /> •User specified settings: We can give an option for the user to specify and change the culture and the language at
  • 7. Resource File •A resource file is a XML file that contains the strings that we want to a. Translate into different languages. b. Can be updated dynamically so that user themselves can modify values in resource files once the application is deployed on the server without re-compiling the entire application itself. •The resource file contains key / value pairs. •Each pair is an individual resource.
  • 8. Local resource is specific to a single web page and used for providing versions of a Web page in different languages.  resources must be stored in App_LocalResources sub folder. 
  • 9. Global resource can be read from any page or code that is in the application.  Global resource must be stored in App_GlobalResources sub folder. 
  • 10.  LocalResources folder contains resources which apply for one page or user control only.  While resources in GlobalResources are accessible in the whole application.
  • 11.  Design a fairly simple webpage with a few label controls and a button control  Tools Generate Local Resource This will create a corresponding Default.aspx.resx resource file for your webpage in the App_LocalResources folder.  Note: Controls removed from the page will still show up in the resource file. Make sure to clean the resource file if you have
  • 12. •The attribute meta:resourcekey was added to your controls. •The attribute value corresponds to the resource file control names (e.g. meta:resourcekey="Label1Resource1" corresponds to "Label1Resource1" and all its properties in the Default.aspx.resx file). <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" culture="es-MX" meta:resourcekey="PageResource1" uiculture="es" %>