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

Translation of "select all" and "clear all"

1 Answer 198 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
programador
Top achievements
Rank 1
programador asked on 22 Feb 2018, 11:49 AM

I have a multi language report and need to translate the texts "select all" and "clear all" that are shown in the multi select controls on the parameters area.

I can't find where i have to translate them.

I have translated resources.en.js and kendo.culture.en.min.js

 

Thanl you

1 Answer, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 27 Feb 2018, 04:36 PM
Hi programador,

Currently the values "select all" and "clear selection"  are hard coded in all the Templates of the Html5 Report Viewer that we provide with Telerik Reporting installation.
The html code in the templates currently looks like:
<!DOCTYPE html>
    .....
    <body>
        .....
 
        <template id="trv-parameter-editor-available-values-multiselect">
            <div class="trv-parameter-editor-available-values-multiselect">
                <div class="list" id="parameter-editor-multiselect-list"></div>
                <div class="footer">
                    <a class="select-all k-link" href="#">select all</a>
                     <a tabindex="-1" class="select-none k-link" href="#">clear selection</a>
                </div>
            </div>
        </template>
         
        .....
    </body>
</html>

To localize those strings you might create a custom template that adds the a-tags containing them dynamically with different text depending on culture settings.

Another option is to load different template depending on the culture, but it will require multiple templates.

A custom JavaScript function that modifies the content of the corresponding a-tags in the ReportViewer DOM could also work.

Regards,
Todor
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
programador
Top achievements
Rank 1
Answers by
Todor
Telerik team
Share this question
or