Mar312009

Accessing the Variation Labels List of a Site Collection

Published by Nicolas at 10:01 AM under SharePoint 2007

Let's say you want to access each Variation Label of your Site Collection.
A good way to do it should be:

string resxString = SPUtility.GetLocalizedString("$Resources:cmscore,Settings_Publishing_VariationLabels;",null, SPContext.Current.Web.Language);SPList variationLabelsList = rootWeb.Lists[resxString]; 

Where the resource key of the cmscore.xx-XX.resx represents the local name of the variation labels list in your Site Collection.

Simple isn't it?
NO! Indeed, it isn't.

What we experienced on one of our project is that the value of the resource key "Settings_Publishing_VariationLabels" was wrong in the french cmscore resx file (cmscore.fr-FR.resx).
The value in the file was Étiquettes de variante but the name of the list created when the site collection has been created was "Étiquettes de variantes"

Just update the french cmscore resx file will be solved this problem.



[KickIt] [Dzone] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Tags:

E-mail | Permalink | Trackback | Post RSSRSS comment feed 0 Responses

Comments

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
Loading