Modifying .Resx File in C#

Modify .resx file at runtime

I am just looking for similar solution, where I can "change" resources rather than "add". So your situation is a little bit more complex. Still the solution may be useful:

C#: Change the resource file without re-building?

In short it allows you to modify your .resx files (XML) - so you should be able to add new messages as well. Then we'll use resgen to create binary resources file (.resources), and finally embed it in compiled file using assembly linker (al).

ResX Autogenerated File for Culture Specific Access to Resources

Thread.CurrentThread.CurrentCulture is a thread specific Culture setting that most of the library uses for things like formatting date/times or numbers and in your case for getting translated strings.

learn.microsoft.com/en-us/dotnet/api/system.globalization.cultureinfo.currentculture?view=netframework-4.8



Related Topics



Leave a reply



Submit