Label for Comment and Comments in CommentCounter Control in lower case
Dear all,
we want to translate some labels to german. Now we translated the labels for 'comment' and 'comments' into 'Kommentar' and 'Kommentare'. But unfortunately on the published site we see only 'kommentar' and 'kommentare' (lower case). I find out that this is done in Javascript. In line 5426 and 5427 of "file" /Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl21_TSM&compress=0&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral
jQuery.each(commmentsCounterControls,function(index,commentsCounterControl)var currentCountFormatted="";
var displayMode=jQuery(commentsCounterControl).attr("displayMode");
if((!currentCount||currentCount==0)&&!(displayMode==="IconOnly"))currentCountFormatted=that.get_leaveCommentText();
if(currentCount>0&¤tCount<100)currentCountFormatted=currentCount;
elseif(currentCount>=100)currentCountFormatted=that.get_ninetyNinePlusText();
if(displayMode==="FullText"&¤tCount==1)currentCountFormatted+=" "+that.get_commentText().toLowerCase();
elseif(displayMode==="FullText"&¤tCount>1)currentCountFormatted+=" "+that.get_commentsText().toLowerCase();
jQuery(commentsCounterControl).html(currentCountFormatted);
if(displayMode==="IconOnly")that._setImages(currentCount,commentsCounterControl);
);
We are using Build version: 7.3.5614.0. How can we solve this problem?
Best regards
Eric
Hi Eric,
I was not able to reproduce this behavior on my side and the labels for the comments appear as I have set them under Administration -> Labels and Messages. I am sending attached a short video for your reference demonstrating this.
The issue on your side might be caused by some custom css styles. Can you please create a new page with no template and then check if the label will be displayed lowercase?
In addition to this, you may also use your custom css styles with an !important clause to make the first letter of the label to be uppercase. The css class of the label is sfcommentsTitle. Please refer to the following thread where the same has been discussed.
Regards,
Sabrie Nedzhip
Telerik