I need to store products for an e-commerce solution in a database. Each product should have descriptive information, such as name, description etc.
I need any product to be localized to x number of languages.
What I've done so far, is to make any column that should be localized and nvarchar(MAX) and then i store an XML string like this:
Super fast laptopSuper hurtig bærbar
And when I load it from the database, into my business logic objects, I parse the XML string to a Dictionary where the key is the culture/language code.
So when I want to display the name of a product, I do this:
lblName.Text = product.Name["en-us"];
Does anyone have a better solution?