(+N) Consulting Inc.

Consulting | Software Solutions | Training

Upon Reflection - Localization / Internationalization (I18N) gotcha

The other day I stumbled over a non intuitive feature of localization. Turns out that you need to include any key you are going to use in a local specific file in the culture neutral file as well. Otherwise - declarative control localization using the meta:resourcekey="myKey" property syntax would not work as expected.. The setup: Create a file named Default.aspx Create an asp:HyperLink tag, and set some properties: <asp:HyperLink ID="Greetings" runat="server" Text="Hello World" NavigateUrl="http://www.ReallyDoesntMatterWhere.com/" meta:resourcekey="HelloWorld"/> <br/> <%=CultureInfo.CurrentCulture.NativeName%> <br/... [More]