Can WinRes.exe open files in VSFM format?

G

Guest

Hello,

I'm not sure what group to post this in. I couldn't find
a localization discussion group.


Briefly:
I open 'myFile.resx' in WinRes.
I modify the resource and save to Spanish in Visual Studio File Mode.
The result is 'myFile.es.resx'.

I then Open 'myFile.es.resx' in WinRes.
WinRes reports an error in the output pane instructing me to 'add the defult
(sic) resource'.
There is no Add function, so I Open 'myFile.resx'.
Still, 'myFile.es.resx' will not open.

My question:
Can WinRes.exe open VSFM files that WinRes.exe wrote?

Thanks in advance for your help.
 
L

Linda Liu [MSFT]

Hi Allan,
I'm not sure what group to post this in. I couldn't finda localization
discussion group.

If you have questions about WinForms application's localization, you may
post them in the microsoft.public.dotnet.framework.windowsforms newsgroup.

As for your problem, since the Visual Studio File Mode stores only changed
values in the resource file, Winres.exe requires that the parent of the
current resource file be located in the same directory. In your practice,
the 'myFile.resx' should be located in the same directory as the
'myFile.es.resx' file.

Hope this helps.
If you have any question, please feel free to let me know.

Sincerely,
Linda Liu
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
L

Linda Liu [MSFT]

Hi Allan,

How about the problem now?

If the problem is still not resolved or your have any question, please feel
free to let me know.

Thank you for using our MSDN Managed Newsgroup Support Service!

Sincerely,
Linda Liu
Microsoft Online Community Support
 
G

Guest

Hello Linda,

Thanks for the replies. Sorry for my delay...I have been out of the office.

You email has helped me understand that with myFile.resx and myFile.es.resx
in the same directory as WinRes.exe, I *should* be able to Open
myFile.es.resx with WinRes.

However, when I do the above, the output pane of WinRes still displays the
message "The default culture file for the current culture not found, Please
add the defult culture file."

So, using VS2005 I created a new project, chose Windows Application, and got
the default WindowsApplication1 solution. This created the default Form1.cs,
Form1.Designer.cs, and Form1.resx.

I opened this Form1.resx in WinRes.exe, changed the title bar text, and
saved as Spanish, resulting in Form1.es.resx.

Opening Form1.es.resx in WinRes results in the same error. WinRes.exe,
Form1.resx, and Form1.ex.resx are all in the same directory.

I am using WinRes.exe Version 2.0.50727.42

Thanks in advance for your work on this issue.

[Localization is extremely and immediately important to us.
And WinRes.exe was to be our tool to do this.
And so far, things are going rather poorly.]
 
L

Linda Liu [MSFT]

Hi Allan,

Thank you for your reply.

I performed a test based on your description and did reproduce the problem
on my side. I am using the same version of WinRes as you.

I also find that this problem only exists on the Spanish culture, i.e.
WinRes v2.0.50727.42 doesn't support 'Visual Studio File Mode-VSFM' for the
Spanish culture, but it does support 'VSFM' for other cultures, e.g
'Albanian', 'Arabic', 'French' and etc.

I have searched in our inner database but didn't find a similar issue in
it. I will report this issue to our product team.

I suggest that you save the resx file for the Spanish culture in 'Single
File Mode' to detour this problem. With 'Single File Mode', it has no
difference for your application to access the resoruces for the Spanish
culture.

Hope this helps and thank you for reporting this issue to us.

Sincerely,
Linda Liu
Microsoft Online Community Support
 
G

Guest

Thank you, Linda.

I should have tried a different culture myself. Good troubleshooting on
your part.

There is a difference with 'Single File Mode'...Visual Studio 2005 is unable
to use the 'SFM'.

Still, we are targeting Mexico at the moment, so 'es-MX' will work for the
time being. And it does work--I checked it.

One more questions:

Is there a more recent version than WinRes 2.0.50727.42 ???

Thanks in advance for your answer.
 
L

Linda Liu [MSFT]

Hi Allan,

Thank you for your prompt response.
There is a difference with 'Single File Mode'...Visual Studio 2005 is
unable to use the 'SFM'.

Yes, there's a difference between 'Single File Mode' and 'Visual Studio
File Mode'. The former saves all the information of the corresponding form
to the resx file for a specific culture, and the latter only saves delta of
the default resx file to the resx file for the specific culture.

VS05 could use resx file saved in 'SFM' on my part. I create a es.resx file
for the 'Spanish' culture in SFM using WinRes. In VS05, I include this
es.resx file into the project and open the form in the designer. Set the
Language property of the form to 'Spanish' and the information saved in the
es.resx file is displayed on the form in the designer.
Is there a more recent version than WinRes 2.0.50727.42 ???

WinRes 2.0.50727.42 is shipped with .NET Framework SDK 2.0. There isn't a
more recent version than this version currently.


Sincerely,
Linda Liu
Microsoft Online Community Support
 
L

Linda Liu [MSFT]

Hi Allan,

How about the problem now?

If you have any question, please feel free to let me know.

Thank you for using our MSDN Managed Newsgroup Support Service!


Sincerely,
Linda Liu
Microsoft Online Community Support
 
G

Guest

Thank you, Linda.

Your answers have helped me use WinRes.exe.
I will now be saving VSFM formatted files to the es-MX language...
which WinRes.exe opens without problem.

Thanks again for your help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top