I'm trying to localize an asp.net web application. Consider the following asp.net code. I'm running with CurrentCulture and CurrentUICulture set to German ("DE-DE").
<%= ReportTitles.EndOfDay %>
<asp:Literal ID="litLabel" runat="server" Text="<%$ Resources:ReportTitles, EndOfDay %>"/>
I expect these two lines to yield the same result, but instead I get this:
Auswertungen für den Tagesabschluss
End of Day
In other words, the first syntax <%= ReportTitles.EndOfDay %>
successfully retrieves the value from the ReportTitles.de.resx file we're using, but the second syntax <asp:Literal ID="litLabel" runat="server" Text="<%$ Resources:ReportTitles, EndOfDay %>"/>
gets the value out of the default US English ReportTitles.resx file.
What's wrong with the 2nd line? Thanks