Translation of "select all" and "clear all"

2 posts, 0 answers
  1. programador
    programador avatar
    1 posts
    Member since:
    Feb 2018

    Posted 22 Feb Link to this post

    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

  2. Todor
    Admin
    Todor avatar
    83 posts

    Posted 27 Feb Link to this post

    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
Back to Top