Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Localising Pages not working in all cases.

Status
Not open for further replies.

MrPeds

Programmer
Jan 7, 2003
219
GB
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top