Windows Develop Bookmark and Share   
 index > Windows Forms General > Multi Language Windows Application.
 

Multi Language Windows Application.

Hi. I want to develop an windows application that supports multi language. According to culture info the program changes it resource file. To do this i create a new class library project and add in resource files and the class which gives the strings in resource file. If i do it in the same project there is no problem but if try to retrieve t another project it gives the error below :

Error Message: Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "kodProg.Resources.FormElements.tr-TR.resources" was correctly embedded or linked into assembly "kodProg.Resources" at compile time, or that all the satellite assemblies required are loadable and fully signed.

The code i wrote retrieve the string:
public class ResourceFileFactory
{
ResourceManager rsm = null;
CultureInfo culture = CultureInfo.CurrentCulture;
public ResourceFileFactory(Type T)
{
Assembly asm = Assembly.GetExecutingAssembly();
rsm = new ResourceManager("kodProg.Resources.FormElements",a sm);
}
public string GetString(string name)
{
return rsm.GetString(name, culture);
}
}
Have you got a code example like this . Where is my error. What should i do.
koraykirdinli  Sunday, September 27, 2009 6:22 PM
Have you explosed you resources to publish? By defualt the resource file is internal.
K.MAK  Sunday, September 27, 2009 11:39 PM
Yes i explosed my resources to public you are right but the problem is going on there is no change.
When i try to run the winn app. it always create two directories under bin. tr-TR and en-US
and a dll named kodProg.Resources.dll .

The problem not solved
koraykirdinli  Wednesday, September 30, 2009 7:43 AM

Hi,

 

Here is a similar issue tells in the community content part of msdn document. It says this may be caused by subfolder.

http://msdn.microsoft.com/en-us/library/y99d1cd3(VS.80).aspx

 

Another article about this:

You may receive a "System.Resources.MissingManifestResourceException" error message when you access the .resources file of the form at run time

http://support.microsoft.com/kb/318603/en-us

 

Hope this helps.

 

Best regards,

Ling Wang


Please remember to click “Mark as Answer�on the post that helps you, and to click “Unmark as Answer�if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Ling Wang  Sunday, October 04, 2009 9:51 AM

We are changing the issue type to “General Discussion” because you have not followed up with the necessary information. If you have more time to look at the issue and provide more information, please feel free to change the issue type back to “Question” by opening the Options list at the top of the post window, and changing the type. If the issue is resolved, we will appreciate it if you can share the solution so that the answer can be found and used by other community members having similar questions.


Please remember to click “Mark as Answer�on the post that helps you, and to click “Unmark as Answer�if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Ling Wang  Thursday, October 08, 2009 2:43 AM

You can use google to search for other answers

Custom Search

More Threads

• calling function in parent form from child form
• Unhandled Exception: Failed to add the tip to the native tool tip control
• cross Thread control accessbility
• Controls at the runtime????
• MDIContainer
• PrintPreviewControl
• How To Extract Icons From Exe Or Dll Files Using ExtractAssociatedIcon ??
• DataGridView Max row
• STA and threadpool problem
• Application.OpenForms in Framework 1.1