Dear NG,
i want to load a plugin (WinForm) in my Applikation. That works fine. Now I
want to globalize that plugin. So I have to load the Satellite Assembly, as
well. But how can I load this (and when?).
Thank you very much
Rudi 5 10029
Hello Rudolf,
From what I know about satellite assemblies, they should be loaded
automatically by the .NET Framework when you request resources for the
corresponding culture. The trick is to deploy these assemblies to the
correct location and with correct names - to be exact, to a folder named
exactly as the culture abbreviation (e.g. de-de or en-us), being sub-folder
of the folder containing the plug-in DLL.
So the folder structure will be like this:
application.exe
somelibrary.dll
Plug-ins\
SomePlug-in\
SomePlugin.dll
de-DE\
SomePlugin.de-DE.dll
en-AU
SomePlugin.en-AU.dll
fr-FR
SomePlugin.fr-FR.dll
I'd also suggest reviewing the corresponding sections of MSDN Library as my
memory is not ideal and I could miss something.
--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Unit Testing and Integration Environment http://x-unity.miik.com.ua
Deliver reliable .NET software
"Rudolf Ball" <Ba************@Infineon.com> wrote in message
news:bh**********@newssrv.muc.infineon.com... Dear NG,
i want to load a plugin (WinForm) in my Applikation. That works fine. Now
I want to globalize that plugin. So I have to load the Satellite Assembly,
as well. But how can I load this (and when?).
Thank you very much
Rudi
Dear Dmitriy,
thank you very much, but I have done this.
My structure is exactly like yours (folders de-DE, de-AT, en-US).
I load the assembly like this:
Assembly ControlLib;
PlugIn newPlugin;
ControlLib = Assembly.LoadFrom(Location);
newPlugin = (PlugIn)ControlLib.CreateInstance(ControlName);
MainPanel.Controls.Add(newPlugin);
this works fine, but the internationalized Plugin with the Satellite
Assemblies does not change the language. At Startup I change the
CurrentUICulture to "de-AT", but my Plugin uses always the Standard.
Thanx for your help
Rudi
"Dmitriy Lapshin [C# / .NET MVP]" <x-****@no-spam-please.hotpop.com> wrote
in message news:O9**************@TK2MSFTNGP10.phx.gbl... Hello Rudolf,
From what I know about satellite assemblies, they should be loaded automatically by the .NET Framework when you request resources for the corresponding culture. The trick is to deploy these assemblies to the correct location and with correct names - to be exact, to a folder named exactly as the culture abbreviation (e.g. de-de or en-us), being
sub-folder of the folder containing the plug-in DLL.
So the folder structure will be like this:
application.exe somelibrary.dll Plug-ins\ SomePlug-in\ SomePlugin.dll de-DE\ SomePlugin.de-DE.dll en-AU SomePlugin.en-AU.dll fr-FR SomePlugin.fr-FR.dll
I'd also suggest reviewing the corresponding sections of MSDN Library as
my memory is not ideal and I could miss something.
-- Dmitriy Lapshin [C# / .NET MVP] X-Unity Unit Testing and Integration Environment http://x-unity.miik.com.ua Deliver reliable .NET software
"Rudolf Ball" <Ba************@Infineon.com> wrote in message news:bh**********@newssrv.muc.infineon.com... Dear NG,
i want to load a plugin (WinForm) in my Applikation. That works fine.
Now I want to globalize that plugin. So I have to load the Satellite Assembly, as well. But how can I load this (and when?).
Thank you very much
Rudi
Rudolf,
How do you load localizable resources in your plug-in (from your sample I
can judge it is actually a Windows Forms User Control)? Do you use
'Localizable' property in your custom controls?
--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Unit Testing and Integration Environment http://x-unity.miik.com.ua
Deliver reliable .NET software
"Rudolf Ball" <Ba************@Infineon.com> wrote in message
news:bh**********@newssrv.muc.infineon.com... Dear Dmitriy,
thank you very much, but I have done this. My structure is exactly like yours (folders de-DE, de-AT, en-US). I load the assembly like this:
Assembly ControlLib; PlugIn newPlugin;
ControlLib = Assembly.LoadFrom(Location); newPlugin = (PlugIn)ControlLib.CreateInstance(ControlName); MainPanel.Controls.Add(newPlugin);
this works fine, but the internationalized Plugin with the Satellite Assemblies does not change the language. At Startup I change the CurrentUICulture to "de-AT", but my Plugin uses always the Standard.
Thanx for your help
Rudi "Dmitriy Lapshin [C# / .NET MVP]" <x-****@no-spam-please.hotpop.com> wrote in message news:O9**************@TK2MSFTNGP10.phx.gbl... Hello Rudolf,
From what I know about satellite assemblies, they should be loaded automatically by the .NET Framework when you request resources for the corresponding culture. The trick is to deploy these assemblies to the correct location and with correct names - to be exact, to a folder named exactly as the culture abbreviation (e.g. de-de or en-us), being sub-folder of the folder containing the plug-in DLL.
So the folder structure will be like this:
application.exe somelibrary.dll Plug-ins\ SomePlug-in\ SomePlugin.dll de-DE\ SomePlugin.de-DE.dll en-AU SomePlugin.en-AU.dll fr-FR SomePlugin.fr-FR.dll
I'd also suggest reviewing the corresponding sections of MSDN Library as my memory is not ideal and I could miss something.
-- Dmitriy Lapshin [C# / .NET MVP] X-Unity Unit Testing and Integration Environment http://x-unity.miik.com.ua Deliver reliable .NET software
"Rudolf Ball" <Ba************@Infineon.com> wrote in message news:bh**********@newssrv.muc.infineon.com... Dear NG,
i want to load a plugin (WinForm) in my Applikation. That works fine. Now I want to globalize that plugin. So I have to load the Satellite
Assembly, as well. But how can I load this (and when?).
Thank you very much
Rudi
Yes, i do this. But it doesn`t work.
What alternative possibilities do I have?
"Dmitriy Lapshin [C# / .NET MVP]" <x-****@no-spam-please.hotpop.com> wrote
in message news:%2****************@TK2MSFTNGP12.phx.gbl... Rudolf,
How do you load localizable resources in your plug-in (from your sample I can judge it is actually a Windows Forms User Control)? Do you use 'Localizable' property in your custom controls?
-- Dmitriy Lapshin [C# / .NET MVP] X-Unity Unit Testing and Integration Environment http://x-unity.miik.com.ua Deliver reliable .NET software
"Rudolf Ball" <Ba************@Infineon.com> wrote in message news:bh**********@newssrv.muc.infineon.com... Dear Dmitriy,
thank you very much, but I have done this. My structure is exactly like yours (folders de-DE, de-AT, en-US). I load the assembly like this:
Assembly ControlLib; PlugIn newPlugin;
ControlLib = Assembly.LoadFrom(Location); newPlugin = (PlugIn)ControlLib.CreateInstance(ControlName); MainPanel.Controls.Add(newPlugin);
this works fine, but the internationalized Plugin with the Satellite Assemblies does not change the language. At Startup I change the CurrentUICulture to "de-AT", but my Plugin uses always the Standard.
Thanx for your help
Rudi "Dmitriy Lapshin [C# / .NET MVP]" <x-****@no-spam-please.hotpop.com>
wrote in message news:O9**************@TK2MSFTNGP10.phx.gbl... Hello Rudolf,
From what I know about satellite assemblies, they should be loaded automatically by the .NET Framework when you request resources for the corresponding culture. The trick is to deploy these assemblies to the correct location and with correct names - to be exact, to a folder
named exactly as the culture abbreviation (e.g. de-de or en-us), being sub-folder of the folder containing the plug-in DLL.
So the folder structure will be like this:
application.exe somelibrary.dll Plug-ins\ SomePlug-in\ SomePlugin.dll de-DE\ SomePlugin.de-DE.dll en-AU SomePlugin.en-AU.dll fr-FR SomePlugin.fr-FR.dll
I'd also suggest reviewing the corresponding sections of MSDN Library
as my memory is not ideal and I could miss something.
-- Dmitriy Lapshin [C# / .NET MVP] X-Unity Unit Testing and Integration Environment http://x-unity.miik.com.ua Deliver reliable .NET software
"Rudolf Ball" <Ba************@Infineon.com> wrote in message news:bh**********@newssrv.muc.infineon.com... > Dear NG, > > i want to load a plugin (WinForm) in my Applikation. That works
fine. Now I > want to globalize that plugin. So I have to load the Satellite Assembly, as > well. But how can I load this (and when?). > > Thank you very much > > Rudi > >
Hi,
As a guess - try moving all the satellite assemblies from their sub-folders
in the Plugins directory to the corresponding sub-folders of the main
application directory. I have a feeling that the Framework probes for
satellite assemblies in sub-folders of the main application directory (as
far as I remember there are several AppDomain-level settings that govern the
probing process).
It should result in a structure like this:
MyApp\
MyApp.exe
SomeLibrary.dll
Plugins\
MyPlugin.dll
fr-FR\
MyPlugin.fr-FR.dll
de-DE\
MyPlugin.de-DE.dll
--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Unit Testing and Integration Environment http://x-unity.miik.com.ua
Deliver reliable .NET software
"DotNetJunkie" <do**********@gmx.net> wrote in message
news:un**************@TK2MSFTNGP09.phx.gbl... Yes, i do this. But it doesn`t work. What alternative possibilities do I have?
"Dmitriy Lapshin [C# / .NET MVP]" <x-****@no-spam-please.hotpop.com> wrote in message news:%2****************@TK2MSFTNGP12.phx.gbl... Rudolf,
How do you load localizable resources in your plug-in (from your sample
I can judge it is actually a Windows Forms User Control)? Do you use 'Localizable' property in your custom controls?
-- Dmitriy Lapshin [C# / .NET MVP] X-Unity Unit Testing and Integration Environment http://x-unity.miik.com.ua Deliver reliable .NET software
"Rudolf Ball" <Ba************@Infineon.com> wrote in message news:bh**********@newssrv.muc.infineon.com... Dear Dmitriy,
thank you very much, but I have done this. My structure is exactly like yours (folders de-DE, de-AT, en-US). I load the assembly like this:
Assembly ControlLib; PlugIn newPlugin;
ControlLib = Assembly.LoadFrom(Location); newPlugin = (PlugIn)ControlLib.CreateInstance(ControlName); MainPanel.Controls.Add(newPlugin);
this works fine, but the internationalized Plugin with the Satellite Assemblies does not change the language. At Startup I change the CurrentUICulture to "de-AT", but my Plugin uses always the Standard.
Thanx for your help
Rudi "Dmitriy Lapshin [C# / .NET MVP]" <x-****@no-spam-please.hotpop.com> wrote in message news:O9**************@TK2MSFTNGP10.phx.gbl... > Hello Rudolf, > > From what I know about satellite assemblies, they should be loaded > automatically by the .NET Framework when you request resources for
the > corresponding culture. The trick is to deploy these assemblies to
the > correct location and with correct names - to be exact, to a folder named > exactly as the culture abbreviation (e.g. de-de or en-us), being sub-folder > of the folder containing the plug-in DLL. > > So the folder structure will be like this: > > application.exe > somelibrary.dll > Plug-ins\ > SomePlug-in\ > SomePlugin.dll > de-DE\ > SomePlugin.de-DE.dll > en-AU > SomePlugin.en-AU.dll > fr-FR > SomePlugin.fr-FR.dll > > I'd also suggest reviewing the corresponding sections of MSDN
Library as my > memory is not ideal and I could miss something. > > -- > Dmitriy Lapshin [C# / .NET MVP] > X-Unity Unit Testing and Integration Environment > http://x-unity.miik.com.ua > Deliver reliable .NET software > > "Rudolf Ball" <Ba************@Infineon.com> wrote in message > news:bh**********@newssrv.muc.infineon.com... > > Dear NG, > > > > i want to load a plugin (WinForm) in my Applikation. That works fine. Now > I > > want to globalize that plugin. So I have to load the Satellite
Assembly, > as > > well. But how can I load this (and when?). > > > > Thank you very much > > > > Rudi > > > > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: John |
last post by:
Hi,
i have two Projects A, B. Both have satellite assemblies (for
internationalization). B depend on A. After compilation, the satellite
assemblies from B (B\bin\Debug\en) are in A\bin\Debug\en....
|
by: nbaiju |
last post by:
Hi,
I am building a asp.net application which has satellite assemblies. When
building the satellite assemblies dll's from Visual Studio 2003 GUI the
application works fine . i.e. the resource...
|
by: Afaq |
last post by:
Hi,
After adding large number of empty resource files (which will be updated
later), we are not able to compile the project. the following is the output
of the build process. It fails while...
|
by: autogoor |
last post by:
If you visit maps.google.com and select "satellite", you get a pic. But
it is not <img href="...">, and it gets quick nice response to mouse
movements and click. Does anyone know how this is...
|
by: BillKi |
last post by:
I am working on localizing my webservice to return localized error
messages to our client app.
I have created 3 resx files, 1 for english (default), 1 for spanish,
and 1 for italian.
When I...
|
by: Adam Calderon |
last post by:
In ASP.NET 2.0 you have the choice of using the built in
App_GlobalResoruces or App_LocalResources style of using resources or
you can use your own resources utilizing satellite assemblies. In the...
|
by: gjenglish |
last post by:
I have recently migrated an ASP.NET 1.1 web application to ASP.NET 2.0.
In this application I am storing all my resources in satellite
assemblies and I am accessing them via the ResourceManager...
|
by: mastern200 |
last post by:
I need to make a program where:
In this program you MUST use the following functions and header file (library function):
• #include<cmath >
• fabs
• pow
• sqrt
You run a company that ships...
|
by: =?Utf-8?B?c2lwcHl1Y29ubg==?= |
last post by:
Hi
What determines if the Satellite assemblies should be in a dir "de-DE" or "de"
I built some satellite assembles with resource files resourcefile.de-DE.resx
and my app finds these in /de-DE...
|
by: Phil Stanton |
last post by:
I have a button on a form which when pressed displays a google map of the
address.
Code is
Private Sub Googlemap_Click()
MakeURL ("")
End Sub
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
| |