Can you then explain why I get localized resources out of the main
assembly
when runnin on MS? Run the winforms/messagebox testcase, with the Mono SWF
dll and the MS runtime.

(1) Do you mean that when you compile it on MS.NET localized resources won't
be added to the main assembly?

(2) Or just that localized resources cannot be loaded with ResourceManager
from the main assembly on MS.NET runtime?

If you mean case (2) I already have answered the question:

It reads neutral resources only from the main assembly and reads localized
resources only from the appropriate satellite assembly.

If you mean case (1) please let me know because it would be a very strange
difference.

As I can remember this behaviour is documented somewhere in .NET Framework
SDK but not in the reference of ResourceManager.

Kornél

-----Original Message-----
From: "Kornél Pál" <[EMAIL PROTECTED]>
To: "Peter Dennis Bartok" <[EMAIL PROTECTED]>;
<[email protected]>
Date: 10 June, 2005 12:02
Subject: Re: [Mono-winforms-list] Important ResourceManager notes


We have a test app in winforms/messagebox, that switches to the german
locale, to test reading non-neutral resources. When I run that with our
System.Windows.Froms.dll, but with Microsoft's runtime, it does read the
non-neutral locale. Doesn't that contradict the statement that MS does
not
support it?

..NET Framework does the same I want to implement (in fact I already
implemented it but I don't want to send a patch until I finish reworking
the
whole ResourceManager to be MS.NET compatible). It reads neutral resources
only from the main assembly and reads localized resources only from the
appropriate satellite assembly.

This is a very big difference.

Kornél

-----Original Message-----
From: "Kornél Pál" <[EMAIL PROTECTED]>
To: <[email protected]>
Date: 10 June, 2005 00:14
Subject: [Mono-winforms-list] Important ResourceManager notes


Hi,

I am about post an extenive ResourceManager patch.
I am still working on the test unit to make discover the correct
behaviour
of ResourceManager and prevent regressions.

There were a lot of differences between Mono and .NET Framework
implementation.

The most important that will break Managed.Windows.Forms is that neutral
resources has to be read from the main assembly any other resources has
to
be read from the appropriate satellite assembly.

System.Windows.Forms.dll contains all the cultures of resources in the
main
assembly and only the neutral resources will be available in
ResourceManager
after the patch.

Note that this change does not effect GetManifestResourceStream but it
should not be used with localizable resources. (Managed.Windows.Forms is
not
using GetManifestResourceStream for localization)

Kornél

_______________________________________________
Mono-winforms-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-winforms-list



_______________________________________________
Mono-winforms-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-winforms-list


_______________________________________________
Mono-winforms-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-winforms-list





_______________________________________________
Mono-winforms-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-winforms-list

Reply via email to