i thought to store all words and their translations in the webconfig:
<add key="dog_ESP" value="dog_in_spanish"/>
<add key="dog_Eng" value="dog"/>
then,if i want to print the word "dog" in spanish i can refer to
System.Configuration.ConfigurationSettings.AppSettings("dog_ESP")
is this the right approach?my dictionary can contain thousands of variables.
10xWhile it will work, I don't recommend it.
1. The web.config file's in-memory representation of the <appSettings> section may not be optimal for thousands of entries. I suspect it wasn't designed with this load in mind.
2. Microsoft has provided a tool for language localization through Resources. Start on this .net topic:Localization.
0 comments:
Post a Comment