Resource (.resx) file Key naming conventions?

后端 未结 5 428
一生所求
一生所求 2020-12-30 21:13

I\'m building a C# app that will likely contain a couple resource files to store strings for use in language translation. I\'m trying to come up with a naming convention for

5条回答
  •  温柔的废话
    2020-12-30 21:39

    I try to organize it similar to the namespaces I'm using to layout the program structure. So if you have MyCompany.MyProduct.MyModule, then strings in that module would be MyModule_Blah_Blah. That way they're unique within the overall product.

提交回复
热议问题