A .NET resource editor application for .resx files

by Mads Kristensen 18. March 2006 20:23

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.

* Only $4.95/month ASP.NET & Windows 2008 + IIS 7 Hosting! FREE SQL Included

Tags:

Server-side

Comments

3/19/2006 2:45:05 AM #

 Scott Hanselman

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

Scott Hanselman |

3/19/2006 3:17:36 AM #

 Mads Kristensen

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?

Mads Kristensen |

8/16/2007 7:13:05 AM #

James

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.

James United States |

8/29/2007 7:37:02 PM #

Ann

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

Ann United States |

9/15/2007 7:29:10 AM #

Tom

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

Tom United States |

10/2/2007 9:09:50 PM #

Oren

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

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

Oren Israel |

10/3/2007 4:49:05 AM #

Jovan

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 Macedonia (FYROM) |

10/3/2007 4:58:55 AM #

Jovan

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

Jovan Macedonia (FYROM) |

10/11/2007 8:54:19 AM #

James

Thanks Jovan - the RAR rename did the trick!

James United States |

3/12/2008 1:13:11 PM #

Naro

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

Naro France |

3/27/2008 8:15:57 AM #

waqu

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

Sorry Mads, but you did good work anyway Smile

waqu |

7/1/2008 12:30:08 AM #

Sam

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

Sam United States |

7/13/2008 10:28:02 PM #

Mads Kristensen

The password for the source project is "medister"

Mads Kristensen Denmark |

1/4/2009 3:51:37 AM #

Tim

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?

Tim Canada |

1/6/2009 10:34:59 PM #

Mads Kristensen

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

Mads Kristensen Denmark |

1/20/2009 12:24:32 AM #

Paul Martin

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

Paul Martin Canada |

9/15/2009 2:00:51 PM #

trackback

Translating an Asp.NET site to Another Language Using.resx Files

Translating an Asp.NET site to Another Language Using.resx Files

naspinski |

Comments are closed

About the slave

Mads Kristensen Mads Kristensen
Web developer at ZYB and founder of BlogEngine.NET. More...

LinkedIn ZYB Facebook Last.fm Twitter View Mads Kristensen's profile on Technorati

The Lounge

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2008