Resource (.resx) file Key naming conventions?

Dawsy picture Dawsy · May 22, 2009 · Viewed 13.2k times · Source

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 the Keys in my resouce files. Has anyone tackled this before me?

Answer

bobbyalex picture bobbyalex · Jun 4, 2009

Just use Pascal naming convention. Dont attribute the key to a module or the class. Generalize it so that it can be reused.

Eg: ReadWriteWarningMessage

The dot separated convention works fine for menu items. But what about strings that are generated dynamically or user messages.