Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are resx files a suitable way to customise for different customers?

I'm looking at customising the various pieces of text in an application for different customers. It seems like .resx resources would be a sensible way to do this. However, all the literature for resx I come across seems to be about localising for language differences (as in English, French, Spanish, etc.), so just want to check it is the best thing simply for customer differences in text as well.

And, hypothetically, could it also deal with different languages for different customers, e.g.:

CustomerA.resx
CustomerA.en-US.resx
CustomerA.de-DE.resx

CustomerB.resx
CustomerB.en-US.resx
CustomerB.de-DE.resx

... etc

Is resx the way to go for customer differences?

like image 337
ngm Avatar asked Mar 08 '11 10:03

ngm


1 Answers

You can use them for storing different strings per customer - it will work. I imagine you don't have many customer to cater for and they do not require the strings to be modified very often. Otherwise the management of multiple files may become a real pain.

Storing per-customer strings in the database (with caching) may be a better option, especially if you want the customers to modify their strings.

like image 59
Jakub Konecki Avatar answered Sep 28 '22 01:09

Jakub Konecki