468,771 Members | 1,922 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,771 developers. It's quick & easy.

Naming convention for keys in resource files

Hi,

Microsoft provided some naming conventions for namespace, classes,
properties and etc. However I am looking for naming convention for keys in
resource files for multiple languages. Any ideas?

Thanks

Joey
Nov 17 '05 #1
2 5348
Hi Joey,

I don't know it this would help. I usually create a helper class for
extracting resources from resx files. I define an enumeration with keys for
each entry in the resx, and would pass that enumeration to a method in the
helper class, which would call the enum.ToString and fetch the required value.

In other words, the resx files keys would have the same name as that of the
enum constants. Consequently, the naming conventions for my resx entries
follow the standards for enumerations.

--
HTH,
Rakesh Rajan
MVP, MCSD
http://www.msmvps.com/rakeshrajan/

"Joey Lee" wrote:
Hi,

Microsoft provided some naming conventions for namespace, classes,
properties and etc. However I am looking for naming convention for keys in
resource files for multiple languages. Any ideas?

Thanks

Joey

Nov 17 '05 #2
Thanks for the input.

"Rakesh Rajan" <rakeshrajan {at} mvps {dot} org> wrote in message
news:64**********************************@microsof t.com...
Hi Joey,

I don't know it this would help. I usually create a helper class for
extracting resources from resx files. I define an enumeration with keys
for
each entry in the resx, and would pass that enumeration to a method in the
helper class, which would call the enum.ToString and fetch the required
value.

In other words, the resx files keys would have the same name as that of
the
enum constants. Consequently, the naming conventions for my resx entries
follow the standards for enumerations.

--
HTH,
Rakesh Rajan
MVP, MCSD
http://www.msmvps.com/rakeshrajan/

"Joey Lee" wrote:
Hi,

Microsoft provided some naming conventions for namespace, classes,
properties and etc. However I am looking for naming convention for keys
in
resource files for multiple languages. Any ideas?

Thanks

Joey

Nov 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Nobody | last post: by
27 posts views Thread by Derek | last post: by
4 posts views Thread by Mark Broadbent | last post: by
1 post views Thread by Dirc Khan-Evans | last post: by
114 posts views Thread by Jonathan Wood | last post: by
35 posts views Thread by Smithers | last post: by
23 posts views Thread by Thorsten Kampe | last post: by
1 post views Thread by CARIGAR | last post: by
1 post views Thread by Marin | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.