Base solution for your next web application
Open Closed

XML versus RESX files for localization #283


User avatar
0
terry bentley created

I see that you have used XML files to define the translations for variables. I did see a brief description on how to configure the ASP.Net boiler plate to use RESX files and did get it working but it took a bit of work. I am now planning on developing a real production application using ASP.Net Zero and before I use the "standard" RESX files I would just like to know why XML files seem to be the preferred method of localization in the ASP.Net boilerplate?

Thanks... Terry


1 Answer(s)
  • User Avatar
    0
    hikalkan created
    Support Team

    Resx files has some advantages (like using in data annotations). I prefex xml since it's simpler, easy to extend (<a class="postlink" href="http://www.aspnetboilerplate.com/Pages/Documents/Localization#DocExtending">http://www.aspnetboilerplate.com/Pages/ ... cExtending</a>). Also, it can be edited/saved easier without stopping the application. Also, it can be stored in different sources. I also have written some notes in the document's colclusion section: <a class="postlink" href="http://www.aspnetboilerplate.com/Pages/Documents/Localization#DocConclusion">http://www.aspnetboilerplate.com/Pages/ ... Conclusion</a>

    But it's your choice, if you're comfortable with resx, you can go with it, no problem :)