473,387 Members | 1,545 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

assemblies / dll / resourcemanager

Hi,

I've created an assembly where are stores some strings.
By using menu items, user can change language of application GUI (so using the strings in my assemblies)

1. how can i compile my resx into dll ?
2. how can i use a resourcemanager to manage the resources ?
3. how can i do this (1. and 2.) without restarting application or form (due to initializecomponent function present in sub new of my form) ?

thanks a lot
Maileen
Nov 21 '05 #1
3 1763
Maileen,

"Maileen" <no*****@nospam.com> schrieb:
I've created an assembly where are stores some strings.
By using menu items, user can change language of application GUI (so using
the strings in my assemblies)

1. how can i compile my resx into dll ?
This can be done by creating localized satellite assemblies which contain
the resources:

Visual Basic and Visual C# Concepts -- Hierarchical Organization of
Resources for Localization
<URL:http://msdn.microsoft.com/library/en-us/vbcon/html/vbconhierarchicalorganizationofresourcesforlocaliz ation.asp>
2. how can i use a resourcemanager to manage the resources ?
Visual Basic and Visual C# Concepts -- Walkthrough: Localizing Windows Forms
<URL:http://msdn.microsoft.com/library/en-us/vbcon/html/vbwlkWalkthroughLocalizingWindowsForms.asp>
3. how can i do this (1. and 2.) without restarting application
or form (due to initializecomponent function present in sub new
of my form) ?


Instantly Changing Language in the Form
<URL:http://www.codeproject.com/csharp/FormLanguageSwitch.asp>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #2
thanks a lot.

Herfried K. Wagner [MVP] wrote:
Maileen,

"Maileen" <no*****@nospam.com> schrieb:
I've created an assembly where are stores some strings.
By using menu items, user can change language of application GUI (so
using the strings in my assemblies)

1. how can i compile my resx into dll ?


This can be done by creating localized satellite assemblies which
contain the resources:

Visual Basic and Visual C# Concepts -- Hierarchical Organization of
Resources for Localization
<URL:http://msdn.microsoft.com/library/en-us/vbcon/html/vbconhierarchicalorganizationofresourcesforlocaliz ation.asp>

2. how can i use a resourcemanager to manage the resources ?


Visual Basic and Visual C# Concepts -- Walkthrough: Localizing Windows
Forms
<URL:http://msdn.microsoft.com/library/en-us/vbcon/html/vbwlkWalkthroughLocalizingWindowsForms.asp>

3. how can i do this (1. and 2.) without restarting application
or form (due to initializecomponent function present in sub new
of my form) ?


Instantly Changing Language in the Form
<URL:http://www.codeproject.com/csharp/FormLanguageSwitch.asp>

Nov 21 '05 #3
I have one additional question :

in the example, the resource have the same name as the application. how can i give them another name ?
and how to store them in another folder ?

something like :
application_path\lang_en.dll

instead of application_path\en\applicationname.resources.dll

thanks a lot,
Maileen
Herfried K. Wagner [MVP] wrote:
Maileen,

"Maileen" <no*****@nospam.com> schrieb:
I've created an assembly where are stores some strings.
By using menu items, user can change language of application GUI (so
using the strings in my assemblies)

1. how can i compile my resx into dll ?


This can be done by creating localized satellite assemblies which
contain the resources:

Visual Basic and Visual C# Concepts -- Hierarchical Organization of
Resources for Localization
<URL:http://msdn.microsoft.com/library/en-us/vbcon/html/vbconhierarchicalorganizationofresourcesforlocaliz ation.asp>

2. how can i use a resourcemanager to manage the resources ?


Visual Basic and Visual C# Concepts -- Walkthrough: Localizing Windows
Forms
<URL:http://msdn.microsoft.com/library/en-us/vbcon/html/vbwlkWalkthroughLocalizingWindowsForms.asp>

3. how can i do this (1. and 2.) without restarting application
or form (due to initializecomponent function present in sub new
of my form) ?


Instantly Changing Language in the Form
<URL:http://www.codeproject.com/csharp/FormLanguageSwitch.asp>

Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Nils Erik Asmundvaag | last post by:
Hello I hope someone is able to help me with this frustrating problem. I have a C# web project in Visual Studio .NET 2003. I want to support Swedish and Norwegian texts and have put the texts...
0
by: Mário Sobral | last post by:
Hi, I created an assembly (let's call it assembly (B)) that returns a localized resource for a given key (similar to System.Globalization.ResourceManager). I checks if the caller assembly (let's...
8
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...
2
by: Dan | last post by:
I am creating a c# class library project to be used by some exe clients. This library needs to be localized for its text messages using satellite resource-only assemblies; I have created the...
3
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...
1
by: Franz | last post by:
I know how to use ResourceManager, but I think I don't use it wisely. I have a web user control. Inside the control, I need to call ResourceManager.GetString. However, I also need to call...
0
by: npthomson | last post by:
Hi all, This could get a bit complicated but I'll try to be as clear as possible. I've written an application that discovers plugins at runtime using reflection from a subdirectory of the...
0
by: Nader | last post by:
I'm trying to use satellite assemblies in my web application. I got a problem with loading resource files. I have the falowing code: protected ResourceManager GetStrings = new...
1
by: Nader | last post by:
I have the next simple code and it doesn't work: ResourceManager gStrings = new ResourceManager("MyApp.Strings", Assembly.GetExecutingAssembly()); //Get the user's language. CultureInfo ci =...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.