Hi,
I have inherited a number of aspx pages that I have been tasked with localising. The pages have never been designed for localisation so I think this may be some of the problem.
I'd basically like to know how I deal with scenarios like this:
1)
Static text contained within HTML markup e.g.
<span class="toolbarTopText"> <strong>Define Report Group</strong>
</span>
or
<span>
<img id="scheduleImage"
alt="some text i want to localize" src="myimage.gif" style="cursor:hand" onclick="ShowDialog();"/>
</span>
or
<asp:TemplateField HeaderText="Header text to localise!" ItemStyle-HorizontalAlign="Center"
HeaderStyle-HorizontalAlign="Center">
<ItemTemplate>
<span>
<%# GetLastCompleted(Container.DataItem) %>
</span>
</ItemTemplate>
</asp:TemplateField>
It doesnt appear like all instances are detected using the Visual Studio > Tools > Generate Local Resource file such as the above.
Therefore, I would like to know:
What syntax do I need to use to take account of scenarios such as above?
Would I need to change the structure of my pages to make everything localisable?
I presume I should be able to localise everything in a web page or are there caveats to take account of? e.g. I would like to have one resx file per aspx page.
Thanks in advance,
MrPeds
I have inherited a number of aspx pages that I have been tasked with localising. The pages have never been designed for localisation so I think this may be some of the problem.
I'd basically like to know how I deal with scenarios like this:
1)
Static text contained within HTML markup e.g.
<span class="toolbarTopText"> <strong>Define Report Group</strong>
</span>
or
<span>
<img id="scheduleImage"
alt="some text i want to localize" src="myimage.gif" style="cursor:hand" onclick="ShowDialog();"/>
</span>
or
<asp:TemplateField HeaderText="Header text to localise!" ItemStyle-HorizontalAlign="Center"
HeaderStyle-HorizontalAlign="Center">
<ItemTemplate>
<span>
<%# GetLastCompleted(Container.DataItem) %>
</span>
</ItemTemplate>
</asp:TemplateField>
It doesnt appear like all instances are detected using the Visual Studio > Tools > Generate Local Resource file such as the above.
Therefore, I would like to know:
What syntax do I need to use to take account of scenarios such as above?
Would I need to change the structure of my pages to make everything localisable?
I presume I should be able to localise everything in a web page or are there caveats to take account of? e.g. I would like to have one resx file per aspx page.
Thanks in advance,
MrPeds