Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Internationalization / December 2006

Tip: Looking for answers? Try searching our database.

Winres error when loading localized resx

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jared - 08 Dec 2006 00:27 GMT
I have created a spanish resx file in VS, but when I attempt to load the
spanish resx file in Winres.exe I get the following error:
   "The default culture file for the current culture not found, Please add
the defult culture file."

I can open the default resx file, and I want to re-iterate that the spanish
resx file was created in VS from the original (default resx file, which is
english).

Does anyone know what that error means and how to fix it?

Thanks,

Jared
Manish Bafna - 10 Dec 2006 03:37 GMT
Hi,
Following excerpt taken from MSDN site will fix your error:

Before you begin to localize an application's Windows Forms forms, you
should decide whether you want to use Visual Studio .NET or Winres.exe as the
localization tool. The localized .resx files produced by each tool are not
interchangeable. Therefore, after you have started to localize with one tool,
you cannot switch to the other tool.

Due to the differences in the content of the .resx files produced by
Winres.exe and Visual Studio .NET, Winres.exe cannot open a .resx file that
was previously localized for a target culture using Visual Studio .NET. For
example, Winres.exe can open the neutral file project1.resx, but it cannot
open the localized file project1.fr-FR.resx generated by Visual Studio .NET.
Likewise, a .resx file that was localized for a target culture using
Winres.exe is not compatible with Visual Studio .NET. If you choose to use
Winres.exe as your localization tool, you must convert your localized .resx
files into .resources files using the Resource File Generator (Resgen.exe).
Then use either the Assembly Linker (Al.exe) or the C# Compiler (Csc.exe) to
compile the .resources files into satellite assemblies. For more information
on this process, see Creating Satellite Assemblies.

Thanks and Regards,
manish bafna

> I have created a spanish resx file in VS, but when I attempt to load the
> spanish resx file in Winres.exe I get the following error:
[quoted text clipped - 10 lines]
>
> Jared
Jared - 11 Dec 2006 17:54 GMT
I read that message as well.  But later in the same article, it states that
winres 2.0 is compatible with Visual Studio.  This allows one to edit the
resource file in either winres 2.0 or visual studio.

The article states:
"However, with version 2.0 of Winres.exe, the Visual Studio File Mode (VSFM)
was added. As the name implies, a resource file saved in this compatibility
mode can be edited with either tool."

> Hi,
> Following excerpt taken from MSDN site will fix your error:
[quoted text clipped - 47 lines]
>>
>> Jared

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.