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

How do you localize static text in a listview item template?

1 Answer 107 Views
ListView (Mobile)
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 2
David asked on 09 Sep 2014, 03:53 PM
Just as my thread title suggests, I'm trying to find the best way/time to localize any static strings in my listview item templates.

For example:

<script type="script/x-kendo-template" id="meeting-item">
        <a data-item-id="#=meetingID#" href="\#meeting-details?id=#=meetingID#" data-transition="slide:left">
        <h3 class="time">#= startTime #</h3>
        <h3 class="counts"><span class="hc" data-i18n="dashboard.headCount"></span>: #=headCount# | Total: #=totalCount#</h3>
        <h2>#=meetingName#</h2>
        </a>
    </script>

I have i18next working great in my regular Kendo Web widgets but in my mobile implementation, I can't find a view even that will successfully parse/swap out my localized values (the data-i18n tag).

Any help would be greatly appreciated.

1 Answer, 1 is accepted

Sort by
0
David
Top achievements
Rank 2
answered on 10 Sep 2014, 07:32 PM
Thankful for Stack overflow. 

Here's a solution in case others need it:

http://stackoverflow.com/questions/25730178/how-to-properly-localize-strings-in-kendo-mobile
Tags
ListView (Mobile)
Asked by
David
Top achievements
Rank 2
Answers by
David
Top achievements
Rank 2
Share this question
or