Sitefinity 4 Language Selector
Hi
I'm evaluating Sitefinity for use on a multilingual website. I have added a 2nd frontend language in the backend and dropped the language selector onto my template. I have also created 2 pages 1 for each language and added different content to each.
When I click a language in the selector the URL changes correctly but the page content remains in English, eg it does not show the content that was added for the selected language and page. I also notice the Page.Culture & Page.UICulture do not change when selecting a language so cannot see how this would work when using local resource files on user controls.
Do you have any further documentation on this? It has to be said the 1 page you have provided in the documentation is far from comprehensive and does not address the usage of resx files for storing local non-content managed user control text for example form labels.
Thanks
Brin
Any ideas? Anyone? Can anyone tell me how set the page culture from the language selector?
Hello Brin,
This is really unusual. Multilingual pages should display pages on their own language. However, if you, for example, have a content block in the first page and the content in it is in English, then the other language page would also display the English content, simply because the content block exists on both pages and doesn't have different translations.
Below you will find attached a video, where I've created two translations of a page. Please verify that you made the same configurations when you created your pages and configuring the language selector widget.
All the best,
Jen Peleva
the Telerik team
Hi Jen
Hi Brin,
I've tested the language selector again, but this time with our resource files. Take at the video. For this purpose I've created a simple user control that gets the current culture of the page and displays it in a label. I've also included another label, where a resource file is set to its Text property. As you see, on pages the label is displayed depending on the culture of the page, which is the expected behavior. Keep in mind that in order to have different language versions of the resource files you would have to import the corresponding language pack (in my case Spanish language pack). Otherwise Sitefinity won't have access to the translation you're looking for, because it doesn't exist, and will display the label (or other resource in English, since it's the default language.) I've attached a screenshot of a Greek page. Note that the label displays Search in English, because I don't have Greek language pack imported. You will also find my test control in a zip file below.
Kind Regards,
Jen Peleva
the Telerik team
Hi Jen