Localizing SharePoint: Adding Multi-language Support to Your Site

25
Hello!

description

More and more, single SharePoint applications are being exposed to international audiences, both on the Internet and the intranets of the world – and clients only want to pay once. We will dive into how localization works in SharePoint in markup, in code-behind, and in CAML. We will also look at the pros and cons of variations in 2007, and how they have been improved for 2010

Transcript of Localizing SharePoint: Adding Multi-language Support to Your Site

Page 1: Localizing SharePoint: Adding Multi-language Support to Your Site

Hello!

Page 2: Localizing SharePoint: Adding Multi-language Support to Your Site

Localizing SharePoint

Adding Multi-language Support to Your Site

Page 3: Localizing SharePoint: Adding Multi-language Support to Your Site

Who are you?

Page 4: Localizing SharePoint: Adding Multi-language Support to Your Site

Greg Hurlman:Avanade Group ManagerSharePoint ArchitectDeveloperFatherHokieGamerWorld Famous Jungle Cruise Skipper (ret.)

Page 5: Localizing SharePoint: Adding Multi-language Support to Your Site

Making life easy through localization

Page 6: Localizing SharePoint: Adding Multi-language Support to Your Site

Language Packs: Mystery of the MS Download Center

Page 7: Localizing SharePoint: Adding Multi-language Support to Your Site

Language Packs: Setup• No, you’re not screwed.

• Don’t forget WSS!

• Don’t forget WSS patches!

• Going to have to run the Config Wizard at least 4 times(It’ll take a while)

Page 8: Localizing SharePoint: Adding Multi-language Support to Your Site

Demo!

Page 9: Localizing SharePoint: Adding Multi-language Support to Your Site

Variations

Page 10: Localizing SharePoint: Adding Multi-language Support to Your Site

Variations

Variation Root

Label(en-US)

Label(fr-FR)

Label(en-GB)

Page 11: Localizing SharePoint: Adding Multi-language Support to Your Site

Not everything varies

• Yes:– Publishing Content

• No:– Page Layouts (all Site Collection-level

stuff)– Permissions– List Changes (mostly)–Web Part List References– Pretty much everything else

Page 12: Localizing SharePoint: Adding Multi-language Support to Your Site

So why bother with them?

• Easy content management for end users• Automatic user redirection

• Workflow-driven translation possible

Page 13: Localizing SharePoint: Adding Multi-language Support to Your Site

Demo!

Page 14: Localizing SharePoint: Adding Multi-language Support to Your Site

On with the code

Page 15: Localizing SharePoint: Adding Multi-language Support to Your Site

So what can we build with this stuff?

• Everything you’re already building

• No more magic strings

• Resources!

Page 16: Localizing SharePoint: Adding Multi-language Support to Your Site

Resources: Learn to love them

• All your strings/images/etc are belong to them

• Stay neutral

• One .resx per locale

• Just say no to Properties/Resources.resx

Page 17: Localizing SharePoint: Adding Multi-language Support to Your Site

Where do I put these .resx things?

C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\Resources

In a Feature, of course.

Page 18: Localizing SharePoint: Adding Multi-language Support to Your Site

How do I get my information back out?

• $Resources:ResourceFileName,ResourceKeyName

• In XML, just drop it in

• In markup, surround it with <% %>

• In code, use SPUtility.GetLocalizedString(…)

Page 19: Localizing SharePoint: Adding Multi-language Support to Your Site

Demo!

Page 20: Localizing SharePoint: Adding Multi-language Support to Your Site

What else is new?

Page 21: Localizing SharePoint: Adding Multi-language Support to Your Site

Shiny!

• Variations• Timer Jobs• Content Propagation

• Site Collection Alternate Languages

Page 22: Localizing SharePoint: Adding Multi-language Support to Your Site

Demo!

Page 23: Localizing SharePoint: Adding Multi-language Support to Your Site

Questions?

Page 24: Localizing SharePoint: Adding Multi-language Support to Your Site

Photo Credits• http://www.flickr.com/photos/photojonny/2268845904/• http://www.flickr.com/photos/magdalar/2950663799• http://www.flickr.com/photos/angelsk/4176291456• http://www.flickr.com/photos/caharley72/4343295169• http://www.flickr.com/photos/bestrated1/341866875• http://www.flickr.com/photos/gilderic/4240700822• http://www.flickr.com/photos/damaradeaella/2822846819/

Page 25: Localizing SharePoint: Adding Multi-language Support to Your Site

Thanks for coming!

• Don’t forget your evaluations

• You can find me at:• Blog: http://greghurlman.com• Twitter: @ghurlman• FB: http://facebook.com/greg.hurlman• Email: [email protected]• Princeton Area SharePoint User Group• SharePoint Saturday New York