[CLOSED] XTemplate + localized text

  1. #1

    [CLOSED] XTemplate + localized text

    Hi,

    I'm working on a multilingual website.

    I would like to display localized label in a dataview component.

    I tried to put a <asp:Literal> control but doesn't work.

                             <ext:Panel runat="server" Region="North" Height="300" AutoScroll="true">
                                 <Items>
                                     <ext:DataView runat="server" StoreID="MatchesStoreID"  ItemSelector="div.MatchItem" >
                                           <Tpl runat="server">
                                                <Html>
                                                        <tpl for=".">
                                                            <div class="MatchItem">          
                                                                <table>
                                                                    <tr>
                                                                        <td class="MatchTableFormat">A localized label</td>
                                                                        <td>{INDEX}</td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="MatchTableFormat">Second localized label</td>
                                                                        <td>{[TeamRenderer(values.HOMETEAMID)]}</td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="MatchTableFormat">third localized label</td>
                                                                        <td>{[TeamRenderer(values.GUESTTEAMID)]}</td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="MatchTableFormat">Last localized label</td>
                                                                        <td>{DATE:date("d M Y  H:i")}</td>
                                                                    </tr>
                                                                </table>                                                                                              
                                                            </div>
                                                        </tpl>
                                                </Html>
                                           </Tpl>
                                     </ext:DataView> 
                                 </Items>
                             </ext:Panel>

    thank you for your help
    Last edited by Daniil; Apr 23, 2013 at 3:55 AM. Reason: [CLOSED]
  2. #2
    Hello!

    I think, you should have localized versions of this XTemplate and set it to Html property on the server-side:

    XTemplate1.Html = Resources.Labels.String1;

Similar Threads

  1. Replies: 10
    Last Post: Dec 02, 2014, 6:09 AM
  2. [OPEN] [#98] GridPanel: date values in DateColumn not localized
    By sbg in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Dec 27, 2012, 8:57 AM
  3. Listener for TreeGrid XTemplate Text Input
    By Chantruese in forum 1.x Help
    Replies: 0
    Last Post: May 29, 2012, 3:08 AM
  4. [CLOSED] FileUploadField default button text is not localized
    By anup in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Aug 03, 2011, 10:15 PM
  5. Replies: 2
    Last Post: Feb 12, 2010, 5:38 PM

Tags for this Thread

Posting Permissions