Groups | Blog | Home
all groups > dotnet internationalization > december 2006 >

dotnet internationalization : Winres error when loading localized resx


Jared
12/7/2006 5:27:52 PM
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
12/9/2006 7:37:01 PM
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

[quoted text, click to view]
Jared
12/11/2006 10:54:21 AM
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."


[quoted text, click to view]
AddThis Social Bookmark Button