Quantcast
Channel: Store localization texts in database or resource files? - Stack Overflow
Viewing all articles
Browse latest Browse all 2

Store localization texts in database or resource files?

$
0
0

Currently in my Asp.Net website I store localization texts in a table in the database. The table has three columns:

TextCode nvarchar(100),CultureId int,TextString nvarchar(MAX)

So every time when I need to get a localized text for a specific culture I just do a simple query.

The main advantage of this method is simple and also I can update the texts while my web app is running.

The obvious drawback is performance. I use resource files for localization in other desktop applications. The reason I chose database is I am under an impression that updating the resource file in asp.net will cause the web app to reload and thus I need to take the site offline when I update the resource file. Is assumption true? What's the "common" approach to store localized texts in Asp.Net?

Thanks


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images