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
0
votes
1 answer

Automatically adding missing resx files in visual studio

I have a solution which has approximately 30 win forms in it. These forms need to be localized for three other languages. I have written an application which generates resx files for these languages for the windows forms. Now I have 90 resx files…
tractatus
  • 21
  • 3
0
votes
1 answer

How to use resx with on variable test

I've been looking for a tuto to use resx but I only found some where the resx depends on the localization(and the language of the browser). How can I tell my app to use a certain resx when a certain variable has a certain value. For instance I'd…
user1037839
-1
votes
1 answer

How to disable modifying .csproj file from being modified when saving .resx file in Visual Studio 2022?

I have created a C# console application with Visual Studio 2022. I have added multiple .resx files and I have modified my .csproj file: Exe
Zvonimir Matic
  • 831
  • 1
  • 8
  • 12
-1
votes
2 answers

How access to resx file in xamarin.forms?

I try to get to the resource string of the resx file all day. I try this way:
-1
votes
1 answer

How to serialize an Icon to a resource (.resx) file from Visual Studio Resource Editor?

I am trying to add some icons to a .resx file in a VB.NET project in Visual Studio 2019. However, I want them to be serialized into the .resx file rather than referenced, in the same way that the Windows Forms designer does. But when I click "Add…
nc404
  • 135
  • 2
  • 8
-1
votes
2 answers

WPF: Using resx file for white labelling (Not localization)

We have a requirement to white label our application, where certain strings (notably the application name) will be different depending on the brand. Many years ago, I'd had experience using resource files for localization, so it seemed like a good…
-1
votes
1 answer

c# save resources file as .resx xml file error

In my application i have a bunch of string definitions. I have put them as within the resources of visual studio with the idea so that it would save as an xml .resx file. The reason for this, is that after deployment i would be able to change some…
Dante1986
  • 58,291
  • 13
  • 39
  • 54
-1
votes
1 answer

Asp.net resx file update without ending session?

I have globalresource file when i'm updating a value then automatically logout from the web site and i need to login again to change another value. Can we update language files (resx) without session logout? I need a solution for this…
Mert
  • 99
  • 12
-1
votes
1 answer

Best way to store questionnaires/answers in c#?

I'm working on a project where I need to store a lot of multilanguage questionnaires. I struggled a lot on how to store these questionnaires in my database and finally I went with the resources files. Each questionnaire has his own resource file in…
Antoine Thiry
  • 2,362
  • 4
  • 28
  • 42
-1
votes
2 answers

Get ressource from resx in an other dll

I have a resx file in a dll A thas contains french and english traductions. The ressource file are public. When I acces to the ressource in the class A after setting the currentThread, Ressource.LibelleHead I get english or french version. Now I…
user1428798
  • 1,534
  • 3
  • 24
  • 50
-1
votes
2 answers

how to automatically extract strings from project and add them to resx file in wpf

I have a very large wpf project and after two years of development i requested to make it bilingual, is there any way to automatically extract strings in labels and grid headers in xaml files so i can translate them instead of manually extract them?
-1
votes
1 answer

How to access language resource file values in code behind

I can access language resource file values in mark up fine using below code: <%=Resources.MainResource.MyKey%> But I cannot do the same in code behind. Shouldn't it just be as follows: Dim MyValue = Resources.MainResource.MyKey
user3656029
  • 101
  • 1
  • 14
-1
votes
1 answer

How to prevent duplicates data in resource file (.resx) from combobox selection

How to prevent duplicates data in resource file (.resx) from combobox selection like: apple mango mango apple mango grapes combo-box creating duplicates value, when ever user enter the records in resx file, and select that that combo-box to verify…
VIVEK
  • 257
  • 1
  • 5
  • 18
-1
votes
1 answer

{project}.resouces.dll not used when project is referenced as dll

I have: projectA (COM dll) en/projectA.resources.dll projectB (dll) referenced by projectA en/projectB.resources.dll When i use the projectA GUI is localized, but GUI in the referenced projectB dll is not. why that? What can i do to get projectB…
Jean-Philippe
  • 397
  • 4
  • 5
-1
votes
1 answer

Why does visual studio put CommandText in resx resource file vs designer code behind file?

Sometimes my queries that are stored in OdbcCommand.CommandText are saved to the designer.cx code behind, and sometimes in the .resx resource file. What causes it to go to the code behind vs the resource file? And is there a way to force visual…
goku_da_master
  • 4,257
  • 1
  • 41
  • 43
1 2 3
67
68