Questions tagged [resx]

.resx files are resource lists used in .NET applications.

ResX Resource Files are used in .net applications for translating applications into several languages. Each language has its own file, e.g. a file "Default.aspx" could have a resx-file "Default.aspx.de.resx" for german translation and "Default.aspx.fr.resx" for french translation. Default translation is english language and results in file "Default.aspx.resx" without any language code. See Microsoft Documentation for details.

1010 questions
17
votes
7 answers

How to get texts from Resx to be used in Javascript?

We are building large ASP.NET applications for the intranet use in multiple languages/cultures. We utilize the Globalization with RESX files and use GetResourceText on the server side to get the localized texts. Lately we are doing more and more…
PeterFromCologne
  • 10,213
  • 9
  • 36
  • 46
17
votes
3 answers

What is the correct way to remove resource images from a VS project?

I have imported images through the visual studio designer to the projects resource file. Some of these images are no longer used and I want to remove them. However, I've tried to remove the resource images before by deleting the image file through…
sieben
  • 2,161
  • 4
  • 23
  • 31
17
votes
3 answers

What is the recommend way to create a custom culture and associated resource files for a specific Client?

I have client that wants to specifiy their own version of localized content for a subset of my string resources. For simplicity here is basic example: Lets say I have 2 localized strings (showing english content) PageTitle="Hello…
Justin
  • 10,667
  • 15
  • 58
  • 79
16
votes
1 answer

Performance Overheads when Using Resource Files (.resx)

Note, I am aware of the following questions on this topic: Are there any performance issues or caveats with resource (.resx) files? Are string resources (.resx) properties kept in memory? et al. However, I don't find any of the answers in these…
MoonKnight
  • 23,214
  • 40
  • 145
  • 277
16
votes
2 answers

Access resx resource files from another project

I'm using asp.net 3.5, my solution currently has 2 projects, an API class project and a website project, within the class project I have a resource file named checkin.resx. For me to be able to access the resource files from my website project, I…
Raj
  • 862
  • 1
  • 8
  • 12
15
votes
6 answers

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:

Let's have a

stefann
  • 1,045
  • 10
  • 14
15
votes
5 answers

Visual Studio creates invalid Resx files

I have a pretty simple form that I am wanting to localize (I actually have quite a few in this project, they all have the same problem). When I set the form property Localizable to true Visual Studio generates a .resx file with the form name (as you…
15
votes
1 answer

VS Code resx file extension

Seems like there is no way to automatically create and manage resx files in VS Code now. Does someone know extension for it? P.S. Yeah, I know that I can edit resx file as bare xml, but it`s not a right way.
Nikita Pakhomov
  • 182
  • 1
  • 8
15
votes
2 answers

How to load different RESX files based on some parameter

I have an ASP.NET3.5 (C#) ASPX page that is internationalized in 10 different languages. The page is very complex in its structured with dozens of nested views driven by a state machine pattern. EDIT: I am using the meta:resourcekey syntax in every…
Francesco Gallarotti
  • 1,221
  • 1
  • 16
  • 39
15
votes
4 answers

MissingManifestResourceException on Windows Phone 8.1 with .resx resources

I'm developing a Windows Phone 8.1 app that also targets Android(Xamarin) As ever I added my string resources(.resx) on a PCL and referenced them on my launcher project to use it on my views, this all works fine on WP 8.1 silverlight but on the…
15
votes
6 answers

.NET localization tools

Are there any tools, that ease work with localization in .NET? I mean work with resx files in VS is done pretty ugly from a developer point of view. For example, if I need to add a string to resources, I have to manually add it to all resource files…
DarkDeny
  • 1,750
  • 2
  • 21
  • 31
15
votes
10 answers

Is there a way to regenerate a missing .resx file?

I have the source for a project, but am missing the .resx file, which prevents compilation. Is there a way to re-generate a resx file for it? This is a C# project I created with Visual Studio 2010 Professional on an XP machine that I'm trying to…
B. Clay Shannon-B. Crow Raven
  • 8,547
  • 144
  • 472
  • 862
15
votes
9 answers

Are there any performance issues or caveats with resource (.resx) files?

Resource files seem great for localization of labels and messages, but are they perfect? For example: Is there a better solution if there is a huge amount of resources? Like 100,000 strings in a .resx file? (Theoretically, I do not actually have…
John B
  • 20,062
  • 35
  • 120
  • 170
14
votes
2 answers

How to access another assembly's .resx?

I have an assembly which contains, among other things, a Messages.resx which contains strings of GUI messages such as Yes, No, OK, Cancel, Open, etc. My project references this assembly. How can I use them?
Louis Rhys
  • 34,517
  • 56
  • 153
  • 221
14
votes
5 answers

Best alternatives to using Resource files in .net site

In the past I have used asp.net's built in Resource files for handling localization. It's worked pretty well and we find it easy to use and maintain in our business. There is one big drawback though - our client's support teams can't update the…
Richard Reddy
  • 2,120
  • 3
  • 25
  • 39
1 2
3
67 68