I have a website that goes to several clients. Sometimes the customer insists on minor changes. For reasons beyond my control, I must obey no matter how insignificant the request. This is usually not a problem, I just create the client version of the user control or page and overwrite the default during assembly or create a configuration setting to handle it.
Now that I’m localizing the site, I’m wondering how best to make small changes to the wording.
Let's say I have a resource file with a name Resources.resxthat has 300 resources. It has a resource called Continue. The meaning of the English language is “Continue”, the French meaning is “Continue”.
Now, for one reason, one client wants him to say “Next” and “Après,” and the rest want to keep it. What is the best way to post such a request? (This is a simple example).
The only thing I can come up with is
- Create another client-specific Resource.resx and replace the DLL with the build time. Since I will completely replace the dll, the new resource file should contain all 300 lines. The obvious problem is that I now have 2 resource files, each of which contains 300 lines.
- Create a custom control / page and modify it to use a custom resource file. for example, SignIn.ascx will be replaced at build time and it will pull resources from
ClientName.resxinstead Resources.resx.
Are there any other things that I could try? Is there a way to change it so that the application always looks in the file ClientResources.resxfor overridden values before actually looking at the specified resource file?
source
share