I have something like this:
<appSettings> <add key="ConfigName" value="configuration" culture="1033" /> <add key="ConfigName" value="konfiguracja" culture="1045" /> </appSettings>
but the add element has only 2 attributes - key and value , so I think it is not supported.
The following that comes to my mind:
<appSettings> <add key="ConfigName-1033" value="configuration" /> <add key="ConfigName-1045" value="konfiguracja" /> </appSettings>
Can anyone suggest a better solution?
UPDATE is the solution I implemented:
The disadvantage of moving this information to resource files ( Oded answer ) is that it can no longer be easily modified on the machines of developers and testers.
However, here's what I did - I left the settings in the web.config (they cannot be localized, but they can be changed without having to recompile the code) and added them to (they can be localized, they will only be used in the working environment, where blank strings are set for web.config parameters).
source share