Click here to Skip to main content
15,891,809 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have two resource files under Properties in Windows c# Project viz.
1).Properties.en.Resx
2).Properties.tr.Resx


I am not able to add Resource in Properties.en.Resx or in Properties.tr.Resx
Please help me regarding this

What I have tried:

using (ResXResourceWriter resx = new ResXResourceWriter(@"Properties.en.Resx"))
{
resx.AddResource("Title", "Classic American Cars");
resx.Generate();
}
//not reflecting above resource after reading in below code

strs = new List<dictionaryentry>();

ResourceSet rs=ResourceManager.GetResourceSet(CultureInfo, true, false);
IEnumerator e = rs.GetEnumerator();
while (e.MoveNext())
{

strs.Add((DictionaryEntry)e.Current);
}
grdResources.DataSource = strs;

Using Above ,am able to get list
Posted
Updated 10-Aug-16 10:19am

1 solution

I think you need to study Satellite assemblies, see the information here:
Locating and Using Resources for a Specific Culture[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900