Loading presentation...

Present Remotely

Send the link below via email or IM

Copy

Present to your audience

Start remote presentation

  • Invited audience members will follow you as you navigate and present
  • People invited to a presentation do not need a Prezi account
  • This link expires 10 minutes after you close the presentation
  • A maximum of 30 users can follow your presentation
  • Learn more about this feature in our knowledge base article

Do you really want to delete this prezi?

Neither you, nor the coeditors you shared it with will be able to recover it again.

DeleteCancel

Localization And You

Chapter 1: Your Exciting Entree into Localization
by

Ethan Atlakson

on 22 April 2010

Comments (0)

Please log in to add your comment.

Report abuse

Transcript of Localization And You

Localization And You! How it works Why use the Utility Best Practices Future Plans How it works Uses Microsoft Provider Model
Provide a resourceProviderFactoryType definition in web.config
The factory extends ResourceProviderFactory and overrides two methods
CreateGlobalResourceProvider(string) & CreateLocalResourceProvider(string)
There is a Provider for each resource Type (ie. ProductsLanguage, OrdersLanguage)
We are only concerned with Global resources
The GlobalProvider implements IResourceProvider which defines only one method
public object GetObject(string resourceKey, CultureInfo culture)
The provider contains our custom Business logic...Let's take a look...



Out of the box functionality
Microsoft provides the ResXResourceProviderFactory
This factory is used to create an IResourceProvider instance The Localization Utility Two versions Stand-Alone (for injection) PageBase (for code behind) public string GetLocalizedResource<T>(Expression<Func<T, string>> expr) public string GetLocalizedResource<T>(string keyValue) Implements IGlobalResourceLocalizationUtility public string GetLocalizedResource<T>(Expression<Func<T, string>> expr) Eliminates the need for "magic strings"
Provides error handling, and fallback behavior Best Practices Use the Utility
Enter a date into the comment section when adding a new Resource,
or changing a pre-existing one. Future Plans Performance Performance Performance Move all resources to the DB Perhaps a UI so Organizations can manage their own resources Need a caching solution! Any Questions?
Full transcript