Dec 03, 2013, 8:27 AM
[CLOSED] Template and Localization
Hi,
I have a template in a RowExpander plug-in. In this template I have a label
that must be translated on the basis of the language.
I have tried to put <asp:literal> but it doesn't work.
http://forums.ext.net/showthread.php...localized-text
See the example below. The label to translate is "LabelToLocalize"
Thank you
I have a template in a RowExpander plug-in. In this template I have a label
that must be translated on the basis of the language.
I have tried to put <asp:literal> but it doesn't work.
<asp:Literal ID="Literal1" runat="server" Text="<%$ I18n: Label_Sequence%>" />
How could I do? I have seen this old thread but actually I don't understand the answer.http://forums.ext.net/showthread.php...localized-text
See the example below. The label to translate is "LabelToLocalize"
Thank you
<ext:GridPanel runat="server" ID="TempBlockGrid" AutoScroll="true" StoreID="TemplateBlockStore">
<ColumnModel>
<Columns>
<%--Fields for List Mode--%>
<ext:Column ID="Column4" runat="server" DataIndex="Id" Hidden="True" />
<ext:Column ID="Column5" runat="server" DataIndex="Sortidx" Header="<%$ I18n: Label_Sequence %>" Width="75" Groupable="false" Sortable="false" MenuDisabled="true" />
<ext:Column ID="Column6"
runat="server"
DataIndex="TextShort"
Text="<%$ I18n: Label_Text %>"
Flex="1" Sortable="False" MenuDisabled="true">
</ext:Column>
<ext:Column ID="colTextComplete" runat="server" DataIndex="Text" Hidden="True"/>
</Columns>
</ColumnModel>
<Plugins>
<ext:RowExpander ID="RowExpander2" runat="server">
<Listeners>
<BeforeExpand Handler="if(record.data.Text.length > 100) return true; else return false;"></BeforeExpand>
</Listeners>
<Template ID="Template2" runat="server">
<Html>
<p><b> LabelToLocalize :</b> {Text}</p>
<br />
</Html>
</Template>
</ext:RowExpander>
</Plugins>
</ext:GridPanel>
Last edited by Daniil; Dec 03, 2013 at 1:25 PM.
Reason: [CLOSED]