resx

Referencing resource files from multiple projects in a solution

Hi, I am working on localization for a asp.net application that consists of several projects. For this, there are some strings that are used in several of these projects. Naturally, I would prefer to have only one copy of the resource file in each project. Since the resource files don't have an namespace (at least as far as I can tell...

How can I compare multiple .resx files?

How can I compare the content of two (or more) large .resx files? With hundreds of Name/Value pairs in each file, it'd be very helpful to view a combined version. I'm especially interested in Name/Value pairs which are present in the neutral culture but are not also specified in a culture-specific version. ...

Enumerating all strings in resx

We would like to enumerate all strings in a resource file in .NET (resx file). We want this to generate a javascript object containing all these key-value pairs. We do this now for satellite assemblies with code like this (this is VB.NET, but any example code is fine): Dim rm As ResourceManager rm = New ResourceManager([resource name], ...

What are the practical uses of resx file?

What are the practical uses of resx file? I am using .net 1.1. ...

Storing Images to use in application

Hi, I would like to store some images to use in my C# application. They are png files and are currently in a folder with the dlls. Ideally I would like to have them included with the dll so i dont have to include the actual images with the installation. What is the best way to do this? I have though about resx but i am unsure as t...

Global resource vs. Local resource in ASP.NET

We use resx files to localize our web applications. We usually create local resx files (that map to a specific page) when only one page uses a certain phrase, and a global resx file when more than one page needs the phrase. But the good thing about global resx files is that they are a class, and you can call the phrases like you call ...

Sharepoint web part stops working because of Resources.en-US.resx file

I've been developing a Sharepoint web part, which had been working fine upon deployment. The web part has been developed with WSP Builder, packaged up and then deployed via stsadm. The web part has been deployed tens, if not a hundred times to the dev box with no problems. Now, the web part throws an error which breaks the page it's o...

VS2008 - adding resources always causes source file to be added to the csproj

Hi When I'm adding an image to a .resx resources file in Visual Studio 2008 (C# project), VS always decides to add the file itself to the solution (in a Resources folder) and set its Persistence property to "Linked at compile time". The behaviour I want is for the source image file contents to be added to the .resx file, the Persistenc...

What advantages are the of using .resx localization for an ASP.NET MVC app?

There are a number of questions on this site related to how to access RESX files in an ASP.NET MVC application, and best practices of using them. However after reading (for the first time I might add) the MSDN article on resources I'm left wondering if there are even any advantages of using RESX files since I'm not going to be using ser...

ASP.NET: localize content with mixed HTML formatting

In my application I have paragraphs with mixed static text and HTML formatting and links. I'm looking for a good localization solution that keeps resources decoupled from markup. Let's say we have the following paragraph: <p>Let's have a <a href="someURL">cup of coffee</a> and get <b>energized</b>.</p> Using the standard resx soluti...

ResourceWriter data formatting

hi everyone i have resx file to update some datas.I can read data over resx via ResXResourceSet object but when i wanna save the data back the saved data format is not clear...how to edit resx files? thanks ResXResourceSet st = new ResXResourceSet(@"thepath"); entries=new List<DictionaryEntry>(); DictionaryEntry curEntry ; ...

How to place resx files in App_GlobalResources folder using solutions (wsp)???

Hi everybody, I've made a lot of solutions (wsp) for SharePoint 2007 and I have almost automated all installation steps needed, but there is one thing I cannot automate. How can I make a solution that places resources (resx) files in the App_GlobalResources folder of the virtual application? Thanks in advance. ...

Resolving resx references

When I compile my .NET 1.1 ASP.NET app, I'm getting RESX reference problems. How can I easily force VS2003 to dump all these references (I'm not using them) and force a rebuild of them? ...

Modifying .resx file in c#

I had a .resx file containg string name value pairs. Noe i want to modify the values in certain name value pairs programmatically using C#. How can i achieve that. Thanks in advance. ...

On a deployed ASP.NET web site project, can I update a .resx file without recompiling?

I'm deploying an ASP.NET application to a locked down Production environment. Pushing assemblies (satellite resource assemblies included) into this environment has process associated with it, but copying non-assemblies to the environment does not. On an ASP.NET web site project, can I update a .resx file without recompiling? ...

How do I upgrade a resx file to be compatible with .NET 2.0?

I have a .NET 1.0 program that I've had to use a disassembler on in order to recover the source code. Once I had the code files using File Disassembler I used VS2008 to upgrade it. I've managed to get the application to the point where it is able to compile...but when I run it I get an error message saying Fatal error, exiting: Coul...

Editing resource files without recompiling ASP.NET application

I'd like to enable the resource files to be editable after deployment. I read this post which suggests that this is possible, but I can't seem to figure out what settings I need to change to enable this. I have added the App_GlobalResources folder to my ASP.NET 3.5 "Web Application" and added a resource file to this folder. I assume tha...

Localization in WPF

I am starting a new application in WPF and I am curious how to handle Localization? In WinForms you can use resx strings for the UI text, how is this done in WPF? Is there a special binding syntax for binding to resx resources or is there a different way of doing this? Thanks! ...

Are resx files suitable for Internationalization?

I have been given the task of internationalizing a large client-server application. The remit is that I make the app 'World Ready' and then the compiled application and resources gets passed over to colleagues in another country for translation and release to their customers. There will be several countries and therefore several seperate...

Resources (resx) maintenance in big projects

In a big project where you have lots of resources (resx) what would be the right approaches and/or tools of translation in order to save time, at the same time keep everything in order and leave nothing behind. More precisely, how to find (as far as translations are concerned) what has been modified (adds and removes are easy) of an ent...