locked
Conventions for Resource Files RRS feed

  • Question

  • User-448498195 posted

    I've noticed my resource files are getting a bit messy on my ASP.net MVC

    Does anyone have any conventions for resource files? eg naming conventions for peices of text? how they group peices of text?

    I've also found that putting HTML in resource files has helped in some situations, Are there any pitfalls with this?

    Does anyone have any tips on how to impliment resource files so that they are easy to maintain?

    Tuesday, April 12, 2011 4:23 PM

Answers

  • User-610330605 posted

    In MSDN you can find naming conventions for the Resource files but they refer to the naming of the file and not the variables inside the files. See link below.

    http://msdn.microsoft.com/en-us/library/w24xty37(v=vs.80).aspx

    For the resources in the file you can define a naming convention and use it.

    I've also found that putting HTML in resource files has helped in some situations, Are there any pitfalls with this?

    It is not advisable. Ideally HTML should be placed where it belongs.

    Does anyone have any tips on how to impliment resource files so that they are easy to maintain?

    How to use application resource files (.resx) to efficiently create a localizable ASP.NET Web application
    http://support.microsoft.com/kb/917414

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, April 13, 2011 6:03 AM