Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Multilingual Lists in SharePoint 2013

$
0
0

Hi,

We have developed multilingual sites in SharePoint 2013 using resource files. Since the language settings of site in SP 2013 are now moved to browser language settings, we are facing serious issues.

There are a couple of custom lists/ libraries, that are picking up the list titles from resource files to change according to site locale. The list titles change as per the locale and text mentioned in resource files but the problem comes when we are referring those lists in custom web parts. I am using the following line of code in the web part to get the list:

SPList list = web.Lists[ResourceHelper.GetLocalized("Custom_List_Title", "Resources")];

when the site language is English (default language)- the list is retrieved and the web part works properly. When I change the site language from browser, the list title changes but the web part throws an exception  - "List not found". However the list exists with changed title.

It is strange as it used to work fine in SP 2010

Can anyone help out here and shed some light as why SP 2013 fails to find list?



Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>