This is a migrated thread and some comments may be shown as answers.

Resx file for LightBox

2 Answers 8 Views
LightBox
This is a migrated thread and some comments may be shown as answers.
Darek
Top achievements
Rank 1
Darek asked on 24 Oct 2014, 09:50 AM
Is there a resx file for the control LightBox? I would like to translate the label "Image 1 of 5" in the control ImageGallery (mode LightBox).

Darek

2 Answers, 1 is accepted

Sort by
0
Kostadin
Telerik team
answered on 29 Oct 2014, 08:21 AM
Hi Darek,

I am afraid there isn't a resx file for RadLightBox. Nevertheless you can use the following approach to change the pager text.
function pageLoad() {
    var lightBoxElement = $find("<%= RadImageGallery1.ClientID %>").get_lightBox();
    lightBoxElement.add_showed(OnShowed);
}
 
function OnShowed(sender) {
    sender.get_element().getElementsByClassName('rltbPager')[0].innerHTML =
        sender.get_element().getElementsByClassName('rltbPager')[0].innerHTML.replace("Image", "Изображение").replace("of", "от");
}

Also I logged this request in our Ideas&Feedback portal so you can vote for it.

Regards,
Kostadin
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Darek
Top achievements
Rank 1
answered on 29 Oct 2014, 11:42 AM
Thanks, works great.

Darek
Tags
LightBox
Asked by
Darek
Top achievements
Rank 1
Answers by
Kostadin
Telerik team
Darek
Top achievements
Rank 1
Share this question
or