Last post Jan 02, 2011 02:39 PM by dahla
Dec 30, 2010 08:55 AM|DrZ3D|LINK
i have a multi language website and i get the data from xml file now to make the code easier to use and if in future i add some more data to xmlfile i need to create something that be look like this:
Languages.Account.UserName() return a string "User name: "
language.Video.NotFundError() return as string "Sorry, your requested video is not fund."
and so on....
the Language is my class
Video and Accoun is part of website
UserName and NotFundError are the property or function that return the value from xml file
in my xml file i also have root
in child of root will find the part of website
in child of part of website will find resource that have name and the value
the question is, is there something in visual basic to create something like this?
if it is please let me know how or help me to find some example code
Jan 02, 2011 02:39 PM|dahla|LINK
You should take a look at something like this
Localization already exists in asp.net, so you might as well utilize it instead of creating your own xml structure and xml mappings