[Mono-bugs] [Bug 80809][Nor] New - ASP.NET 2.0 Localization Problems

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Feb 12 13:30:03 EST 2007

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by rull_orion at mail.ru.


--- shadow/80809	2007-02-12 13:30:03.000000000 -0500
+++ shadow/80809.tmp.10778	2007-02-12 13:30:03.000000000 -0500
@@ -0,0 +1,60 @@
+Bug#: 80809
+Product: Mono: Class Libraries
+Version: 1.2
+OS Details: Windows 2003
+Status: NEW   
+Priority: Normal
+Component: Sys.Web
+AssignedTo: gonzalo at ximian.com                            
+ReportedBy: rull_orion at mail.ru               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: ASP.NET 2.0 Localization Problems
+Localization failed if localized property exists in HTML Template.
+Steps to reproduce the problem:
+1. Create local Resources  Default.aspx.resx in App_LocalResources Folder.
+2. Add Resource string
+  <data name="Button1.Text" xml:space="preserve">
+    <value>Some Value</value>
+  </data>
+2. Add Button on Default.aspx page.
+<asp:Button ID="Button1" runat="server" Text="Button"
+3. Run Site.
+Actual Results:
+<input type="submit" name="Button1" value="Button" id="Button1" />
+Expected Results:
+<input type="submit" name="Button1" value="Some Value" id="Button1" />
+Additional Information:
+When ASP.NET Process aspx you can find in disassembled code such lines in 
+__BuildControlButton1 function:
+button1.Text = "Button";
+      button1.Text =
+And When Processing by Mono we have __BuildControl_Button1 function with
+such lines:
+ button1.Text = Convert.ToString(base.GetLocalResourceObject("Button1.Text"));
+button1.Text = "Button";
+This happens with any position Text and meta:resourceKey attributes in
+template - Microsoft Compiler generate local resources assignment after
+default property assignment and mono generate it before.
+If Text Property doesn't exists then localization succeed.
+P.S. During execution with XSP2 Web Server if using Local resources it
+sometimes failed. And it fails always when site need recompilation. So you
+must re-run this Server (to reproduce this bug) 2 or more times until it
+stop failing.

More information about the mono-bugs mailing list