A .NET resource editor application for .resx files

Mar 18, 2006

Working with resource files (.resx) in Visual Studio 2002/2003/2005 is very easy and straightforward. A .resx file is a fairly simple XML file that can be used for a lot of things. Where I have used it the most is for localization of ASP.NET websites and Windows Forms applications. All though it can contain images and other file types, I have only used for storing strings.

At work, we are working with a localized ASP.NET application that has to be translated into several different languages. So we use .resx files for storing these languages. Us, the developers, do not do the actual translating our selves. Nor do we decide what to be written in the first place. That’s for the copywriters to decide and control.

The problem is that they do not have the means to control the text without going through one of the developers that can easily open the .resx file in Visual Studio and make the changes. The copywriters haven’t got Visual Studio installed and cannot open the .resx in Notepad to make the changes in the raw XML. It’s just too complicated. It would also be a bad idea to let them modify the XML document manually, because if they make a syntax error, the whole .resx file will be invalided and the website would throw a lot of exceptions.

So, I searched the web for an application designed for editing resource files. I wanted to find a simple and intuitive application, but I couldn't. Not even Scott Hanselman's ultimate list of tools offered me one.

That’s when I saw the light and decided to write my own little resource editor application. It is written entirely in C# 2.0 and is deployed as a ClickOnce application. It is a very simple app, which only does what it is supposed to do – edit resource files. No more, no less. The only added feature is a security lock down for the name column. This will prevent the copywriters from editing the name and deleting and adding rows. This can be turned on and off by checking the check box in the bottom left corner.

Resource editor

Give it to your copywriters and let them edit the text by them selves.

Download the Resource Editor application
Download the C# project

Enjoy.

* $4.95/month BlogEngine.net Hosting – Click Here!

Comments (16) -

 Scott Hanselman
Scott Hanselman
3/18/2006 5:45:05 PM #

Cool. We use Microsoft Excel and the XLS file to the translator, with macros to convert. Although, sometimes we use resgen.exe to convert the RESX into a txt file. Then the translator just edits the text.

There's also a Resx editor here at MSDN: msdn.microsoft.com/.../default.aspx

 Mads Kristensen
Mads Kristensen
3/18/2006 6:17:36 PM #

The problem with using Excel is that there is no way of locking down the original name/value list. The translaters can accidently delete a row or rename a field in the name column. That could potentially break the app or at least have the translaters do it all over again. Ok, you can actually lock Excel functionality down by using macros. Do you do that or how do you secure the .resx file from being invalidated?

James
James United States
8/15/2007 10:13:05 PM #

The resource editor looks like exactly what i am looking for... however i seem to be having problems downloading the files - both for the source and the application.

Ann
Ann United States
8/29/2007 10:37:02 AM #

The resource editor is an excellent work. But I am not able to Download the C# project.

Tom
Tom United States
9/14/2007 10:29:10 PM #

Could not find file 'C:\project\Resource Editor_1_0_0_22\Resource Editor.exe.manifest'.

Oren
Oren Israel
10/2/2007 12:09:50 PM #

Thanks. it's exactly what I was looking for.

I can't download the C# project too. Can you please fix it?

Jovan
Jovan Macedonia (FYROM)
10/2/2007 7:49:05 PM #

If you try to download than you are able to download only file without extension, continue with the file dowloading and than add to that file extension .RAR and you can have correct file.

Regards,

Jovan
Jovan Macedonia (FYROM)
10/2/2007 7:58:55 PM #

But my probelm is how to recive password for this Project ?... am I allow to use it foe my needs ?... Thanks

James
James United States
10/10/2007 11:54:19 PM #

Thanks Jovan - the RAR rename did the trick!

Naro
Naro France
3/12/2008 4:13:11 AM #

oh yes just what i search for... very nice...
am i allow to view project source and probably adapt a little to my needs?
i can't because of password protection.

Thanks

waqu
waqu
3/26/2008 11:15:57 PM #

Here's another free software that just does the same:
http://sourceforge.net/projects/resx/

Sorry Mads, but you did good work anyway Smile

Sam
Sam United States
6/30/2008 3:30:08 PM #

The problem is we can't debug or compile the source code because it asks for password. can you provide the password??

Mads Kristensen
Mads Kristensen Denmark
7/13/2008 1:28:02 PM #

The password for the source project is "medister"

Tim
Tim Canada
1/3/2009 6:51:37 PM #

I am trying to download the source project but cannot at the moment.

I have tried the posted link and the suggestion to have no file extension
blog.madskristensen.dk/file.axd?file=Resource Editor

Both brought me to the 404 page.

Any clues?

Mads Kristensen
Mads Kristensen Denmark
1/6/2009 1:34:59 PM #

Sure, let me fix it when I get home from work in a few hours

Paul Martin
Paul Martin Canada
1/19/2009 3:24:32 PM #

Great tool, nice work, much easier then installing the VS 2008 trial when I need others to make changes!!  Also better than the sourceforge version in that it is closer to the MS tool.

Thanks a ton.
Paul

Pingbacks and trackbacks (1)+

Comments are closed

About the author

Mads Kristensen

Mads Kristensen
Program Manager at the Microsoft Web Platform team and founder of BlogEngine.NET.

More...

Month List

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer’s view in any way.