locked
Localization... resources files or XML? RRS feed

  • Question

  • User1320652035 posted
    Quick question on internationalization of a site... do you guys here prefer to use Resource files or XML? Is there any limitations or advanatages to either? I was contemplating using XML files to pull my values from... but not sure it's the best choice. Thanks.

    Thursday, December 1, 2005 2:11 PM

All replies

  • User217889999 posted
    I strongly recommend you read this excellent series of articles (Asp.Net 1.x and 2.0 alike) for a good primer on Localization:
    Thursday, December 1, 2005 8:12 PM
  • User1183903743 posted

    I was contemplating using XML files to pull my values from...

    Resx is XML.

    Resx is much more. It is design time or PRE-JIT xml abstraction.

    At runtime it is turned into .resources and satellite assemblies anyway.

    Just reading XML you would have to face some scalability decisions. System files do not scale well. Storing the xml in a db is a huge undertaking. There could be some cache solutions.

    Before you dive right into re-inventing the wheel, you might want to spend an afternoon reading this thread:

     http://forums.asp.net/688906/ShowPost.aspx

    HTH!

     

    Friday, December 2, 2005 8:12 AM