Tuesday, December 14, 2010

Global resource for ASP.Net localization

When adding localization resource in global resource folder, the region-language name must match the predefined ones. Otherwise, when building the project, an error will happen saying "Error 1: the namespace ??? already contains an definition of ???".
For example, adding a resource of "resource.cn.resx" in the project will cause the error. Changing the name into "resource.zh-CN.resx" will fix it.

Jonathan

No comments:

Post a Comment