Hi. We are working on a site (version 5.0.2860.0) and we have been tasked with adding a new language (culture: en-GB) I have added this in the back end and can add and edit the "translated" pages without issue.

We have created some custom widgets that take advantage of the module builder feature to store and manage the data on the back end. For instance we have a carousel slide module that accepts an image and a title and link. I created a custom widget that queries all of the published slides and renders them appropriately this all works great in the default language of English (en).

Here is the code used to query the slides

public IQueryable<DynamicContent> RetrieveCollectionOfHomepageCarouselSlides()

This is all pretty straightforward however I need to be able to save slides for different languages. I'm certain that I will need to modify the above code for retrieving my slides for the current culture only...or I am completely off base.

1. Do I need to create some sort of language selector in my module in the backend such as a dropdown allowing the user to select which culture to apply the slide to or does Sitefinity have some way of determining this automatically? Admittedly, I'm new to localization in .NET/Sitefinity and I am trying to get my head around the basic concepts here.

In the end I added a drop down in module builder and just pre-loaded the cultures for the content editors to select the culture they wanted to apply the slide to. I was then able to get the current culture on the front end to filter against when I query the slides. Its only one additional step for the editors and it seems to work pretty well since there aren't a large number of slides.

Tools

Sitefinity Professional Services

Progress, Telerik, Sitefinity and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries.