Language Selector Capitalization

Posted by Community Admin on 04-Aug-2018 19:16

Language Selector Capitalization

All Replies

Posted by Community Admin on 08-Aug-2011 00:00

We're using the language selector on our website, and having an odd issue. The spanish language drop down item is not capitalized. Why this is I'm not sure, but it looks very akward. Is there a way to forcibly change the text of the item? Or maybe update the text in the sitefinity administration or database?

Posted by Community Admin on 09-Aug-2011 00:00

Hi Chris,

The language titles come from .Net framework and are displayed the way they are by default.
There is a workaround to change that, using css (with the css widget). You can select the Language Selector control and change the style of the item you want (and apply capital letter to it).

.someclass

    text-transform:capitalize;



Another option is using java script widget and jqeury

$(this).val(value.toUpperCase());

where you call string.ToUpperCase method of the selected value.


The third option is a custom widget that inherits from LanguageSelectorControl

I hope that helps.

Best wishes,
Svetoslav Petsov
the Telerik team
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

This thread is closed