MVC Resource file non language

131 Views Asked by At

I have a MVC webapplication where two brands of the same company can login. Both companys have the same language but there are some small words that needs to be changed in the application self.

So my idea is to switch (based on company value) the resource file, but i can't find a solution for this problem.

Thanks for any help

1

There are 1 best solutions below

1
Steve Harris On

Create a folder for each company and put in each a 'translations.config' file. You can then add keys for each of the phrases that the individual companies want different. You can indicate which folder to look in in web.config.

You will then translate using the global/local resx file you currently have and also lookup your translation in the config file if the folder is set and the file exists.