Tag Info

Hot answers tagged

2

SPUtility.GetLocalizedString("$Resources:YourKeyValue", "Comp.Dept.Proj.Farm\\GloablResources", 1033); plz refer this link http://geekswithblogs.net/venkatx5/archive/2010/12/14/how-to-create-multilingual-webpart-in-sharepoint-2010.aspx


2

Don't know if the OP still need this, but I hope it may be usefull to anyone experiencing the same issue. Turn out that Wictor Wilén has built a visual studio extension that manages the aforementioned setting automatically. You can find it on the Visual Studio Gallery under the name "SPResX Visual Studio 2012 Extension". It also offer the ability to ...


1

It can also be done in code behind OnInit function e.g., protected override void OnInit(EventArgs e) { base.OnInit(e); InitializeControl(); CultureInfo ci = SPContext.Current.Web.Locale; string url = string.Format("/_layouts/15/ScriptResx.ashx?name=MyResourceFile&culture={0}&rev={1}", ci.ToString(), ...


1

Unfortunately just specifying resource string for WebUrl property of ContentByQueryWebPart web part is not enough since resource string could not be resolved dynamically (basically not supported) using SharePoint web parts infrastructure like in case of Url tokens (e.g. ~sitecollection). But, you could consider the following approach. Solution The ...


1

You can create new feaure and in it's "FeatureReceiver.FeatureActivated" you can get web part on the page and change it with your resource file. Look these two relative questions: How to localize webpart title, description, group, quickadd group in Sandbox solution CQWP - dynamically setting the list


1

Add the mapped folder called RESOURCES to you solution and then add you resx files there. If you want to add your resx files in the App_GlobalResource folder in the IIS, then add an Empty Element to you solution, add your resx files to that and modify the SharePointSolutionItem.spdata to target the App_GlobalResource folder like so: <?xml version="1.0" ...


1

Create new "Import SharePoint Solution Package" from Installed templates project and select your web template that you import from sharepoint than add resource file to your solution: add Resource File project items to your project. If you do not have to localize code in addition to the markup, you can instead add Global Resources Files. Provide a name for ...



Only top voted, non community-wiki answers of a minimum length are eligible